@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
package/README.md
CHANGED
|
@@ -4,14 +4,6 @@ Shared utilities, types, and contract helpers for the Nado SDK. Provides ABIs, d
|
|
|
4
4
|
|
|
5
5
|
[Full SDK Documentation](https://nadohq.github.io/nado-typescript-sdk/index.html)
|
|
6
6
|
|
|
7
|
-
## Installation
|
|
8
|
-
|
|
9
|
-
```bash
|
|
10
|
-
npm install @nadohq/shared viem bignumber.js
|
|
11
|
-
```
|
|
12
|
-
|
|
13
|
-
Most apps should use `@nadohq/client` instead, which includes this package. Install `@nadohq/shared` directly when you need low-level access to contract ABIs, EIP-712 signing, or type definitions without pulling in the HTTP clients.
|
|
14
|
-
|
|
15
7
|
## Modules
|
|
16
8
|
|
|
17
9
|
### `abis`
|
package/dist/{WalletNotProvidedError-BFEw-O_V.d.cts.map → WalletNotProvidedError-BEoW-nA1.d.cts.map}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"WalletNotProvidedError-
|
|
1
|
+
{"version":3,"file":"WalletNotProvidedError-BEoW-nA1.d.cts","names":[],"sources":["../src/utils/errors/src/utils/errors/WalletNotProvidedError.ts"],"mappings":";cAAa,sBAAA,SAA+B,KAAK;EAAL,WAAA,CAAA;AAAA"}
|
package/dist/{WalletNotProvidedError-B7hy83Dp.d.ts.map → WalletNotProvidedError-v1a959kl.d.ts.map}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"WalletNotProvidedError-
|
|
1
|
+
{"version":3,"file":"WalletNotProvidedError-v1a959kl.d.ts","names":[],"sources":["../src/utils/errors/src/utils/errors/WalletNotProvidedError.ts"],"mappings":";cAAa,sBAAA,SAA+B,KAAK;EAAL,WAAA,CAAA;AAAA"}
|
|
@@ -28,4 +28,4 @@ declare function packTwapOrderAppendixValue({
|
|
|
28
28
|
declare function unpackTwapOrderAppendixValue(value: bigint): OrderAppendixTwapFields;
|
|
29
29
|
//#endregion
|
|
30
30
|
export { unpackTwapOrderAppendixValue as n, packTwapOrderAppendixValue as t };
|
|
31
|
-
//# sourceMappingURL=appendixTwapValue-
|
|
31
|
+
//# sourceMappingURL=appendixTwapValue-DIqDV7Z7.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"appendixTwapValue-
|
|
1
|
+
{"version":3,"file":"appendixTwapValue-DIqDV7Z7.d.cts","names":[],"sources":["../src/utils/orders/appendix/src/utils/orders/appendix/appendixTwapValue.ts"],"mappings":";;;;;AAeA;;;;;;;;;;iBAAgB,0BAAA,CAAA;EACd,SAAA;EACA;AAAA,GACC,uBAAA;;;;AAAuB;AAiB1B;;;;iBAAgB,4BAAA,CACd,KAAA,WACC,uBAAuB"}
|
|
@@ -28,4 +28,4 @@ declare function packTwapOrderAppendixValue({
|
|
|
28
28
|
declare function unpackTwapOrderAppendixValue(value: bigint): OrderAppendixTwapFields;
|
|
29
29
|
//#endregion
|
|
30
30
|
export { unpackTwapOrderAppendixValue as n, packTwapOrderAppendixValue as t };
|
|
31
|
-
//# sourceMappingURL=appendixTwapValue-
|
|
31
|
+
//# sourceMappingURL=appendixTwapValue-DPsC1hXX.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"appendixTwapValue-
|
|
1
|
+
{"version":3,"file":"appendixTwapValue-DPsC1hXX.d.ts","names":[],"sources":["../src/utils/orders/appendix/src/utils/orders/appendix/appendixTwapValue.ts"],"mappings":";;;;;AAeA;;;;;;;;;;iBAAgB,0BAAA,CAAA;EACd,SAAA;EACA;AAAA,GACC,uBAAA;;;;AAAuB;AAiB1B;;;;iBAAgB,4BAAA,CACd,KAAA,WACC,uBAAuB"}
|
package/dist/{approveDepositAllowance-DzLfrUa1.d.cts → approveDepositAllowance-BbqDck6c.d.cts}
RENAMED
|
@@ -17,4 +17,4 @@ declare function approveDepositAllowance({
|
|
|
17
17
|
}: WithContract<'endpoint', ApproveDepositAllowanceParams>): Promise<`0x${string}`>;
|
|
18
18
|
//#endregion
|
|
19
19
|
export { approveDepositAllowance as n, ApproveDepositAllowanceParams as t };
|
|
20
|
-
//# sourceMappingURL=approveDepositAllowance-
|
|
20
|
+
//# sourceMappingURL=approveDepositAllowance-BbqDck6c.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"approveDepositAllowance-
|
|
1
|
+
{"version":3,"file":"approveDepositAllowance-BbqDck6c.d.cts","names":[],"sources":["../src/execute/src/execute/approveDepositAllowance.ts"],"mappings":";;;;;UAKiB,6BAAA;EACf,MAAA,EAAQ,YAAA;EACR,aAAA,EAAe,yBAAA,QAAiC,SAAA;AAAA;;;;iBAMlC,uBAAA,CAAA;EACd,QAAA;EACA,MAAA;EACA;AAAA,GACC,YAAA,aAAyB,6BAAA,IAA8B,OAAA"}
|
package/dist/{approveDepositAllowance-Dc7stdrU.d.ts → approveDepositAllowance-ChasXUS7.d.ts}
RENAMED
|
@@ -17,4 +17,4 @@ declare function approveDepositAllowance({
|
|
|
17
17
|
}: WithContract<'endpoint', ApproveDepositAllowanceParams>): Promise<`0x${string}`>;
|
|
18
18
|
//#endregion
|
|
19
19
|
export { approveDepositAllowance as n, ApproveDepositAllowanceParams as t };
|
|
20
|
-
//# sourceMappingURL=approveDepositAllowance-
|
|
20
|
+
//# sourceMappingURL=approveDepositAllowance-ChasXUS7.d.ts.map
|
package/dist/{approveDepositAllowance-Dc7stdrU.d.ts.map → approveDepositAllowance-ChasXUS7.d.ts.map}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"approveDepositAllowance-
|
|
1
|
+
{"version":3,"file":"approveDepositAllowance-ChasXUS7.d.ts","names":[],"sources":["../src/execute/src/execute/approveDepositAllowance.ts"],"mappings":";;;;;UAKiB,6BAAA;EACf,MAAA,EAAQ,YAAA;EACR,aAAA,EAAe,yBAAA,QAAiC,SAAA;AAAA;;;;iBAMlC,uBAAA,CAAA;EACd,QAAA;EACA,MAAA;EACA;AAAA,GACC,YAAA,aAAyB,6BAAA,IAA8B,OAAA"}
|
|
@@ -3,4 +3,4 @@ type AsyncResult<TData, TError> = [data: undefined, error: TError] | [data: TDat
|
|
|
3
3
|
declare function asyncResult<TData, TError = unknown>(promise: Promise<TData>): Promise<AsyncResult<TData, TError>>;
|
|
4
4
|
//#endregion
|
|
5
5
|
export { asyncResult as n, AsyncResult as t };
|
|
6
|
-
//# sourceMappingURL=asyncResult-
|
|
6
|
+
//# sourceMappingURL=asyncResult-B8ly8lP_.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"asyncResult-
|
|
1
|
+
{"version":3,"file":"asyncResult-B8ly8lP_.d.cts","names":[],"sources":["../src/utils/src/utils/asyncResult.ts"],"mappings":";KAAY,WAAA,mBACP,IAAA,aAAiB,KAAA,EAAO,MAAA,KACxB,IAAA,EAAM,KAAK,EAAE,KAAA;AAAA,iBAEF,WAAA,yBAAA,CACd,OAAA,EAAS,OAAA,CAAQ,KAAA,IAChB,OAAA,CAAQ,WAAA,CAAY,KAAA,EAAO,MAAA"}
|
|
@@ -3,4 +3,4 @@ type AsyncResult<TData, TError> = [data: undefined, error: TError] | [data: TDat
|
|
|
3
3
|
declare function asyncResult<TData, TError = unknown>(promise: Promise<TData>): Promise<AsyncResult<TData, TError>>;
|
|
4
4
|
//#endregion
|
|
5
5
|
export { asyncResult as n, AsyncResult as t };
|
|
6
|
-
//# sourceMappingURL=asyncResult-
|
|
6
|
+
//# sourceMappingURL=asyncResult-CrfiRFh5.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"asyncResult-
|
|
1
|
+
{"version":3,"file":"asyncResult-CrfiRFh5.d.ts","names":[],"sources":["../src/utils/src/utils/asyncResult.ts"],"mappings":";KAAY,WAAA,mBACP,IAAA,aAAiB,KAAA,EAAO,MAAA,KACxB,IAAA,EAAM,KAAK,EAAE,KAAA;AAAA,iBAEF,WAAA,yBAAA,CACd,OAAA,EAAS,OAAA,CAAQ,KAAA,IAChB,OAAA,CAAQ,WAAA,CAAY,KAAA,EAAO,MAAA"}
|
|
@@ -22,4 +22,4 @@ declare function calcPerpBalanceNotionalValue(balanceWithProduct: PerpBalanceWit
|
|
|
22
22
|
declare function calcPerpBalanceValue(balanceWithProduct: PerpBalanceWithProduct): BigNumber;
|
|
23
23
|
//#endregion
|
|
24
24
|
export { calcPerpBalanceValue as n, calcSpotBalanceValue as r, calcPerpBalanceNotionalValue as t };
|
|
25
|
-
//# sourceMappingURL=balanceValue-
|
|
25
|
+
//# sourceMappingURL=balanceValue-CT4Q7W0T.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"balanceValue-
|
|
1
|
+
{"version":3,"file":"balanceValue-CT4Q7W0T.d.cts","names":[],"sources":["../src/utils/src/utils/balanceValue.ts"],"mappings":";;;;;;AAWA;;;iBAAgB,oBAAA,CACd,kBAAA,EAAoB,sBAAA,GACnB,SAAS;;;;;AAAA;iBASI,4BAAA,CACd,kBAAA,EAAoB,sBAAA,GACnB,SAAS;;;;;;iBAWI,oBAAA,CACd,kBAAA,EAAoB,sBAAA,GACnB,SAAS"}
|
|
@@ -22,4 +22,4 @@ declare function calcPerpBalanceNotionalValue(balanceWithProduct: PerpBalanceWit
|
|
|
22
22
|
declare function calcPerpBalanceValue(balanceWithProduct: PerpBalanceWithProduct): BigNumber;
|
|
23
23
|
//#endregion
|
|
24
24
|
export { calcPerpBalanceValue as n, calcSpotBalanceValue as r, calcPerpBalanceNotionalValue as t };
|
|
25
|
-
//# sourceMappingURL=balanceValue-
|
|
25
|
+
//# sourceMappingURL=balanceValue-bkwkBhFu.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"balanceValue-
|
|
1
|
+
{"version":3,"file":"balanceValue-bkwkBhFu.d.ts","names":[],"sources":["../src/utils/src/utils/balanceValue.ts"],"mappings":";;;;;;AAWA;;;iBAAgB,oBAAA,CACd,kBAAA,EAAoB,sBAAA,GACnB,SAAS;;;;;AAAA;iBASI,4BAAA,CACd,kBAAA,EAAoB,sBAAA,GACnB,SAAS;;;;;;iBAWI,oBAAA,CACd,kBAAA,EAAoB,sBAAA,GACnB,SAAS"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"bitMaskValue-
|
|
1
|
+
{"version":3,"file":"bitMaskValue-CDz7vtPM.d.cts","names":[],"sources":["../src/utils/orders/appendix/src/utils/orders/appendix/bitMaskValue.ts"],"mappings":";;AAOA;;;;AAAqE;;iBAArD,YAAA,CAAa,KAAA,mBAAwB,QAAgB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"bitMaskValue-
|
|
1
|
+
{"version":3,"file":"bitMaskValue-qyWUOgv1.d.ts","names":[],"sources":["../src/utils/orders/appendix/src/utils/orders/appendix/bitMaskValue.ts"],"mappings":";;AAOA;;;;AAAqE;;iBAArD,YAAA,CAAa,KAAA,mBAAwB,QAAgB"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as Bytes } from "./bytes-Bv66A6U8.js";
|
|
2
|
-
import { n as SubaccountBytes32, r as SubaccountNameBytes12, t as Subaccount } from "./subaccountTypes-
|
|
2
|
+
import { n as SubaccountBytes32, r as SubaccountNameBytes12, t as Subaccount } from "./subaccountTypes-BuzrDicU.js";
|
|
3
3
|
import { Hex } from "viem";
|
|
4
4
|
|
|
5
5
|
//#region src/utils/bytes32.d.ts
|
|
@@ -46,4 +46,4 @@ declare function subaccountFromHex(subaccount: string): Subaccount;
|
|
|
46
46
|
declare function subaccountNameBytesToStr(input: Bytes): string;
|
|
47
47
|
//#endregion
|
|
48
48
|
export { subaccountToBytes32 as a, subaccountNameToBytes12 as i, subaccountFromHex as n, subaccountToHex as o, subaccountNameBytesToStr as r, subaccountFromBytes32 as t };
|
|
49
|
-
//# sourceMappingURL=bytes32-
|
|
49
|
+
//# sourceMappingURL=bytes32-D-tn3XZy.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"bytes32-
|
|
1
|
+
{"version":3,"file":"bytes32-D-tn3XZy.d.ts","names":[],"sources":["../src/utils/src/utils/bytes32.ts"],"mappings":";;;;;;;AAaA;;;iBAAgB,mBAAA,CAAoB,UAAA,EAAY,UAAA,GAAa,iBAAiB;;;;;AAAA;iBAyB9D,qBAAA,CAAsB,KAAA,EAAO,iBAAA,GAAoB,UAAU;;;;;;;;iBA6B3D,uBAAA,CAAwB,IAAA,WAAe,qBAAqB;AAA5E;;;;AAA4E;AAa5E;;AAbA,iBAagB,eAAA,CAAgB,UAAA,EAAY,UAAA,GAAa,GAAG;;;;;;iBAS5C,iBAAA,CAAkB,UAAA,WAAqB,UAAU;AAAjE;;;;AAAiE;AAUjE;AAVA,iBAUgB,wBAAA,CAAyB,KAAY,EAAL,KAAK"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as Bytes } from "./bytes-DAhqCt_o.cjs";
|
|
2
|
-
import { n as SubaccountBytes32, r as SubaccountNameBytes12, t as Subaccount } from "./subaccountTypes-
|
|
2
|
+
import { n as SubaccountBytes32, r as SubaccountNameBytes12, t as Subaccount } from "./subaccountTypes-DCl5hh9_.cjs";
|
|
3
3
|
import { Hex } from "viem";
|
|
4
4
|
|
|
5
5
|
//#region src/utils/bytes32.d.ts
|
|
@@ -46,4 +46,4 @@ declare function subaccountFromHex(subaccount: string): Subaccount;
|
|
|
46
46
|
declare function subaccountNameBytesToStr(input: Bytes): string;
|
|
47
47
|
//#endregion
|
|
48
48
|
export { subaccountToBytes32 as a, subaccountNameToBytes12 as i, subaccountFromHex as n, subaccountToHex as o, subaccountNameBytesToStr as r, subaccountFromBytes32 as t };
|
|
49
|
-
//# sourceMappingURL=bytes32-
|
|
49
|
+
//# sourceMappingURL=bytes32-klqLJUFN.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"bytes32-
|
|
1
|
+
{"version":3,"file":"bytes32-klqLJUFN.d.cts","names":[],"sources":["../src/utils/src/utils/bytes32.ts"],"mappings":";;;;;;;AAaA;;;iBAAgB,mBAAA,CAAoB,UAAA,EAAY,UAAA,GAAa,iBAAiB;;;;;AAAA;iBAyB9D,qBAAA,CAAsB,KAAA,EAAO,iBAAA,GAAoB,UAAU;;;;;;;;iBA6B3D,uBAAA,CAAwB,IAAA,WAAe,qBAAqB;AAA5E;;;;AAA4E;AAa5E;;AAbA,iBAagB,eAAA,CAAgB,UAAA,EAAY,UAAA,GAAa,GAAG;;;;;;iBAS5C,iBAAA,CAAkB,UAAA,WAAqB,UAAU;AAAjE;;;;AAAiE;AAUjE;AAVA,iBAUgB,wBAAA,CAAyB,KAAY,EAAL,KAAK"}
|
|
@@ -699,4 +699,4 @@ declare const CHAIN_ENV_TO_CHAIN: {
|
|
|
699
699
|
declare const CHAIN_ID_TO_CHAIN_ENV: Record<number, ChainEnv>;
|
|
700
700
|
//#endregion
|
|
701
701
|
export { CHAIN_ID_TO_CHAIN_ENV as n, CHAIN_ENV_TO_CHAIN as t };
|
|
702
|
-
//# sourceMappingURL=chainEnvToChain-
|
|
702
|
+
//# sourceMappingURL=chainEnvToChain-DdLczNYZ.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"chainEnvToChain-
|
|
1
|
+
{"version":3,"file":"chainEnvToChain-DdLczNYZ.d.cts","names":[],"sources":["../src/consts/src/consts/chainEnvToChain.ts"],"mappings":";;cAIa,kBAAA;EAAA;;;;;;;;;;;;;;;;;;mCAYwH,aAAA;4CAAmF,aAAA;kCAAyE,aAAA;uCAA8E,aAAA;IAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;uCAAu+F,UAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;uCAAiE,UAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAN14G,qBAAA,EAKR,MAAM,SAAS,QAAA"}
|
|
@@ -699,4 +699,4 @@ declare const CHAIN_ENV_TO_CHAIN: {
|
|
|
699
699
|
declare const CHAIN_ID_TO_CHAIN_ENV: Record<number, ChainEnv>;
|
|
700
700
|
//#endregion
|
|
701
701
|
export { CHAIN_ID_TO_CHAIN_ENV as n, CHAIN_ENV_TO_CHAIN as t };
|
|
702
|
-
//# sourceMappingURL=chainEnvToChain-
|
|
702
|
+
//# sourceMappingURL=chainEnvToChain-DpBYNlnk.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"chainEnvToChain-
|
|
1
|
+
{"version":3,"file":"chainEnvToChain-DpBYNlnk.d.ts","names":[],"sources":["../src/consts/src/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{ CHAIN_ENV_TO_CHAIN, CHAIN_ID_TO_CHAIN_ENV };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as CHAIN_ID_TO_CHAIN_ENV, t as CHAIN_ENV_TO_CHAIN } from "../chainEnvToChain-
|
|
1
|
+
import { n as CHAIN_ID_TO_CHAIN_ENV, t as CHAIN_ENV_TO_CHAIN } from "../chainEnvToChain-DpBYNlnk.js";
|
|
2
2
|
export { CHAIN_ENV_TO_CHAIN, CHAIN_ID_TO_CHAIN_ENV };
|
package/dist/consts/index.d.cts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { n as CHAIN_ID_TO_CHAIN_ENV, t as CHAIN_ENV_TO_CHAIN } from "../chainEnvToChain-
|
|
2
|
-
import { n as QUOTE_PRODUCT_ID, t as NLP_PRODUCT_ID } from "../productIds-
|
|
1
|
+
import { n as CHAIN_ID_TO_CHAIN_ENV, t as CHAIN_ENV_TO_CHAIN } from "../chainEnvToChain-DdLczNYZ.cjs";
|
|
2
|
+
import { n as QUOTE_PRODUCT_ID, t as NLP_PRODUCT_ID } from "../productIds-CePkYUZH.cjs";
|
|
3
3
|
export { CHAIN_ENV_TO_CHAIN, CHAIN_ID_TO_CHAIN_ENV, NLP_PRODUCT_ID, QUOTE_PRODUCT_ID };
|
package/dist/consts/index.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { n as CHAIN_ID_TO_CHAIN_ENV, t as CHAIN_ENV_TO_CHAIN } from "../chainEnvToChain-
|
|
2
|
-
import { n as QUOTE_PRODUCT_ID, t as NLP_PRODUCT_ID } from "../productIds-
|
|
1
|
+
import { n as CHAIN_ID_TO_CHAIN_ENV, t as CHAIN_ENV_TO_CHAIN } from "../chainEnvToChain-DpBYNlnk.js";
|
|
2
|
+
import { n as QUOTE_PRODUCT_ID, t as NLP_PRODUCT_ID } from "../productIds-BZeKoHcK.js";
|
|
3
3
|
export { CHAIN_ENV_TO_CHAIN, CHAIN_ID_TO_CHAIN_ENV, NLP_PRODUCT_ID, QUOTE_PRODUCT_ID };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as QUOTE_PRODUCT_ID, t as NLP_PRODUCT_ID } from "../productIds-
|
|
1
|
+
import { n as QUOTE_PRODUCT_ID, t as NLP_PRODUCT_ID } from "../productIds-CePkYUZH.cjs";
|
|
2
2
|
export { NLP_PRODUCT_ID, QUOTE_PRODUCT_ID };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as QUOTE_PRODUCT_ID, t as NLP_PRODUCT_ID } from "../productIds-
|
|
1
|
+
import { n as QUOTE_PRODUCT_ID, t as NLP_PRODUCT_ID } from "../productIds-BZeKoHcK.js";
|
|
2
2
|
export { NLP_PRODUCT_ID, QUOTE_PRODUCT_ID };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { r as WalletClientWithAccount } from "./viemTypes-D3kRC8jF.js";
|
|
2
|
-
import { t as Subaccount } from "./subaccountTypes-
|
|
2
|
+
import { t as Subaccount } from "./subaccountTypes-BuzrDicU.js";
|
|
3
3
|
|
|
4
4
|
//#region src/utils/createDeterministicLinkedSignerPrivateKey.d.ts
|
|
5
5
|
interface Params extends Subaccount {
|
|
@@ -17,4 +17,4 @@ interface Params extends Subaccount {
|
|
|
17
17
|
declare function createDeterministicLinkedSignerPrivateKey(params: Params): Promise<`0x${string}`>;
|
|
18
18
|
//#endregion
|
|
19
19
|
export { createDeterministicLinkedSignerPrivateKey as t };
|
|
20
|
-
//# sourceMappingURL=createDeterministicLinkedSignerPrivateKey-
|
|
20
|
+
//# sourceMappingURL=createDeterministicLinkedSignerPrivateKey-47pkYOE0.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"createDeterministicLinkedSignerPrivateKey-47pkYOE0.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,5 +1,5 @@
|
|
|
1
1
|
import { r as WalletClientWithAccount } from "./viemTypes-Mjfxe2ou.cjs";
|
|
2
|
-
import { t as Subaccount } from "./subaccountTypes-
|
|
2
|
+
import { t as Subaccount } from "./subaccountTypes-DCl5hh9_.cjs";
|
|
3
3
|
|
|
4
4
|
//#region src/utils/createDeterministicLinkedSignerPrivateKey.d.ts
|
|
5
5
|
interface Params extends Subaccount {
|
|
@@ -17,4 +17,4 @@ interface Params extends Subaccount {
|
|
|
17
17
|
declare function createDeterministicLinkedSignerPrivateKey(params: Params): Promise<`0x${string}`>;
|
|
18
18
|
//#endregion
|
|
19
19
|
export { createDeterministicLinkedSignerPrivateKey as t };
|
|
20
|
-
//# sourceMappingURL=createDeterministicLinkedSignerPrivateKey-
|
|
20
|
+
//# sourceMappingURL=createDeterministicLinkedSignerPrivateKey-CcJhRSf7.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"createDeterministicLinkedSignerPrivateKey-
|
|
1
|
+
{"version":3,"file":"createDeterministicLinkedSignerPrivateKey-CcJhRSf7.d.cts","names":[],"sources":["../src/utils/src/utils/createDeterministicLinkedSignerPrivateKey.ts"],"mappings":";;;;UAMU,MAAA,SAAe,UAAU;EACjC,YAAA,EAAc,uBAAA;EACd,OAAA;EACA,eAAA;AAAA;;;;;;;;iBAUoB,yCAAA,CACpB,MAAA,EAAQ,MAAA,GAAM,OAAA"}
|
|
@@ -21,4 +21,4 @@ declare function depositCollateral({
|
|
|
21
21
|
}: WithContract<'endpoint', DepositCollateralParams>): Promise<`0x${string}`>;
|
|
22
22
|
//#endregion
|
|
23
23
|
export { depositCollateral as n, DepositCollateralParams as t };
|
|
24
|
-
//# sourceMappingURL=depositCollateral-
|
|
24
|
+
//# sourceMappingURL=depositCollateral-BZOXvr6h.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"depositCollateral-
|
|
1
|
+
{"version":3,"file":"depositCollateral-BZOXvr6h.d.ts","names":[],"sources":["../src/execute/src/execute/depositCollateral.ts"],"mappings":";;;UAIiB,uBAAA;EACf,cAAA;EACA,SAAA;EACA,MAAA,EAAQ,YAAY;EACpB,YAAA;AAAA;;;;;;iBAQoB,iBAAA,CAAA;EACpB,QAAA;EACA,cAAA;EACA,SAAA;EACA,MAAA;EACA;AAAA,GACC,YAAA,aAAyB,uBAAA,IAAwB,OAAA"}
|
|
@@ -21,4 +21,4 @@ declare function depositCollateral({
|
|
|
21
21
|
}: WithContract<'endpoint', DepositCollateralParams>): Promise<`0x${string}`>;
|
|
22
22
|
//#endregion
|
|
23
23
|
export { depositCollateral as n, DepositCollateralParams as t };
|
|
24
|
-
//# sourceMappingURL=depositCollateral-
|
|
24
|
+
//# sourceMappingURL=depositCollateral-C3mp2GTo.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"depositCollateral-
|
|
1
|
+
{"version":3,"file":"depositCollateral-C3mp2GTo.d.cts","names":[],"sources":["../src/execute/src/execute/depositCollateral.ts"],"mappings":";;;UAIiB,uBAAA;EACf,cAAA;EACA,SAAA;EACA,MAAA,EAAQ,YAAY;EACpB,YAAA;AAAA;;;;;;iBAQoB,iBAAA,CAAA;EACpB,QAAA;EACA,cAAA;EACA,SAAA;EACA,MAAA;EACA;AAAA,GACC,YAAA,aAAyB,uBAAA,IAAwB,OAAA"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as EIP712ListTriggerOrdersValues, c as
|
|
2
|
-
export { EIP712BurnNlpValues, EIP712LeaderboardAuthenticationValues, EIP712LinkSignerValues, EIP712LiquidateSubaccountValues, EIP712ListTriggerOrdersValues, EIP712MintNlpValues, EIP712OrderCancellationValues, EIP712OrderValues, EIP712ProductOrdersCancellationValues, EIP712SocialAuthenticationValues, EIP712TransferQuoteValues, EIP712UpdateDependencyValues, EIP712WithdrawCollateralV2Values, EIP712WithdrawCollateralValues, SignableRequestTypeToEIP712Values };
|
|
1
|
+
import { a as EIP712ListTriggerOrdersValues, c as EIP712OrderCancellationValues, d as EIP712SocialAuthenticationValues, f as EIP712TransferQuoteValues, g as SignableRequestTypeToEIP712Values, h as EIP712WithdrawCollateralValues, i as EIP712LiquidateSubaccountValues, l as EIP712OrderValues, m as EIP712WithdrawCollateralV2Values, n as EIP712LeaderboardAuthenticationValues, o as EIP712MintNlpValues, p as EIP712UpdateDependencyValues, r as EIP712LinkSignerValues, s as EIP712NadoAuthenticationValues, t as EIP712BurnNlpValues, u as EIP712ProductOrdersCancellationValues } from "../eip712ValueTypes-B7SUNimi.cjs";
|
|
2
|
+
export { EIP712BurnNlpValues, EIP712LeaderboardAuthenticationValues, EIP712LinkSignerValues, EIP712LiquidateSubaccountValues, EIP712ListTriggerOrdersValues, EIP712MintNlpValues, EIP712NadoAuthenticationValues, EIP712OrderCancellationValues, EIP712OrderValues, EIP712ProductOrdersCancellationValues, EIP712SocialAuthenticationValues, EIP712TransferQuoteValues, EIP712UpdateDependencyValues, EIP712WithdrawCollateralV2Values, EIP712WithdrawCollateralValues, SignableRequestTypeToEIP712Values };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as EIP712ListTriggerOrdersValues, c as
|
|
2
|
-
export { EIP712BurnNlpValues, EIP712LeaderboardAuthenticationValues, EIP712LinkSignerValues, EIP712LiquidateSubaccountValues, EIP712ListTriggerOrdersValues, EIP712MintNlpValues, EIP712OrderCancellationValues, EIP712OrderValues, EIP712ProductOrdersCancellationValues, EIP712SocialAuthenticationValues, EIP712TransferQuoteValues, EIP712UpdateDependencyValues, EIP712WithdrawCollateralV2Values, EIP712WithdrawCollateralValues, SignableRequestTypeToEIP712Values };
|
|
1
|
+
import { a as EIP712ListTriggerOrdersValues, c as EIP712OrderCancellationValues, d as EIP712SocialAuthenticationValues, f as EIP712TransferQuoteValues, g as SignableRequestTypeToEIP712Values, h as EIP712WithdrawCollateralValues, i as EIP712LiquidateSubaccountValues, l as EIP712OrderValues, m as EIP712WithdrawCollateralV2Values, n as EIP712LeaderboardAuthenticationValues, o as EIP712MintNlpValues, p as EIP712UpdateDependencyValues, r as EIP712LinkSignerValues, s as EIP712NadoAuthenticationValues, t as EIP712BurnNlpValues, u as EIP712ProductOrdersCancellationValues } from "../eip712ValueTypes-Bx73DiwJ.js";
|
|
2
|
+
export { EIP712BurnNlpValues, EIP712LeaderboardAuthenticationValues, EIP712LinkSignerValues, EIP712LiquidateSubaccountValues, EIP712ListTriggerOrdersValues, EIP712MintNlpValues, EIP712NadoAuthenticationValues, EIP712OrderCancellationValues, EIP712OrderValues, EIP712ProductOrdersCancellationValues, EIP712SocialAuthenticationValues, EIP712TransferQuoteValues, EIP712UpdateDependencyValues, EIP712WithdrawCollateralV2Values, EIP712WithdrawCollateralValues, SignableRequestTypeToEIP712Values };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as getNadoEIP712Domain } from "../getNadoEIP712Domain-
|
|
1
|
+
import { t as getNadoEIP712Domain } from "../getNadoEIP712Domain-CbvRaSxS.cjs";
|
|
2
2
|
export { getNadoEIP712Domain };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as getNadoEIP712Domain } from "../getNadoEIP712Domain-
|
|
1
|
+
import { t as getNadoEIP712Domain } from "../getNadoEIP712Domain-kTOBSTeO.js";
|
|
2
2
|
export { getNadoEIP712Domain };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as getNadoEIP712PrimaryType } from "../getNadoEIP712PrimaryType-
|
|
1
|
+
import { t as getNadoEIP712PrimaryType } from "../getNadoEIP712PrimaryType-DxmJJfz2.cjs";
|
|
2
2
|
export { getNadoEIP712PrimaryType };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as getNadoEIP712PrimaryType } from "../getNadoEIP712PrimaryType-
|
|
1
|
+
import { t as getNadoEIP712PrimaryType } from "../getNadoEIP712PrimaryType-BcdZPTeT.js";
|
|
2
2
|
export { getNadoEIP712PrimaryType };
|
|
@@ -248,6 +248,24 @@ function getNadoEIP712Types(requestType) {
|
|
|
248
248
|
type: "uint64"
|
|
249
249
|
}
|
|
250
250
|
] };
|
|
251
|
+
case "nado_authentication": return { NadoAuthentication: [
|
|
252
|
+
{
|
|
253
|
+
name: "method",
|
|
254
|
+
type: "string"
|
|
255
|
+
},
|
|
256
|
+
{
|
|
257
|
+
name: "sender",
|
|
258
|
+
type: "bytes32"
|
|
259
|
+
},
|
|
260
|
+
{
|
|
261
|
+
name: "payloadHash",
|
|
262
|
+
type: "bytes32"
|
|
263
|
+
},
|
|
264
|
+
{
|
|
265
|
+
name: "nonce",
|
|
266
|
+
type: "uint64"
|
|
267
|
+
}
|
|
268
|
+
] };
|
|
251
269
|
}
|
|
252
270
|
}
|
|
253
271
|
//#endregion
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getNadoEIP712Types.cjs","names":[],"sources":["../../src/eip712/getNadoEIP712Types.ts"],"sourcesContent":["import { SignableRequestType } from './signableRequestType';\n\ninterface TypedDataField {\n name: string;\n type: string;\n}\n\n/**\n * Return the EIP712 types for a given request\n *\n * @param requestType\n */\nexport function getNadoEIP712Types(\n requestType: SignableRequestType,\n): Record<string, Array<TypedDataField>> {\n switch (requestType) {\n case 'withdraw_collateral':\n return {\n WithdrawCollateral: [\n { name: 'sender', type: 'bytes32' },\n { name: 'productId', type: 'uint32' },\n { name: 'amount', type: 'uint128' },\n { name: 'nonce', type: 'uint64' },\n ],\n };\n case 'withdraw_collateral_v2':\n return {\n WithdrawCollateralV2: [\n { name: 'sender', type: 'bytes32' },\n { name: 'productId', type: 'uint32' },\n { name: 'amount', type: 'uint128' },\n { name: 'nonce', type: 'uint64' },\n { name: 'sendTo', type: 'address' },\n { name: 'appendix', type: 'uint128' },\n ],\n };\n case 'place_order':\n return {\n Order: [\n { name: 'sender', type: 'bytes32' },\n { name: 'priceX18', type: 'int128' },\n { name: 'amount', type: 'int128' },\n { name: 'expiration', type: 'uint64' },\n { name: 'nonce', type: 'uint64' },\n { name: 'appendix', type: 'uint128' },\n ],\n };\n case 'list_trigger_orders':\n return {\n ListTriggerOrders: [\n { name: 'sender', type: 'bytes32' },\n { name: 'recvTime', type: 'uint64' },\n ],\n };\n case 'update_dependency':\n return {\n DependencyUpdate: [\n { name: 'sender', type: 'bytes32' },\n { name: 'oldDigest', type: 'bytes32' },\n { name: 'newDigest', type: 'bytes32' },\n { name: 'nonce', type: 'uint64' },\n ],\n };\n case 'cancel_orders':\n return {\n Cancellation: [\n { name: 'sender', type: 'bytes32' },\n { name: 'productIds', type: 'uint32[]' },\n { name: 'digests', type: 'bytes32[]' },\n { name: 'nonce', type: 'uint64' },\n ],\n };\n case 'cancel_product_orders':\n return {\n CancellationProducts: [\n { name: 'sender', type: 'bytes32' },\n { name: 'productIds', type: 'uint32[]' },\n { name: 'nonce', type: 'uint64' },\n ],\n };\n case 'liquidate_subaccount':\n return {\n LiquidateSubaccount: [\n { name: 'sender', type: 'bytes32' },\n { name: 'liquidatee', type: 'bytes32' },\n { name: 'mode', type: 'uint8' },\n { name: 'healthGroup', type: 'uint32' },\n { name: 'amount', type: 'int128' },\n { name: 'nonce', type: 'uint64' },\n ],\n };\n case 'link_signer':\n return {\n LinkSigner: [\n { name: 'sender', type: 'bytes32' },\n { name: 'signer', type: 'bytes32' },\n { name: 'nonce', type: 'uint64' },\n ],\n };\n case 'transfer_quote':\n return {\n TransferQuote: [\n { name: 'sender', type: 'bytes32' },\n { name: 'recipient', type: 'bytes32' },\n { name: 'amount', type: 'uint128' },\n { name: 'nonce', type: 'uint64' },\n ],\n };\n case 'leaderboard_authentication':\n return {\n LeaderboardAuthentication: [\n { name: 'sender', type: 'bytes32' },\n { name: 'expiration', type: 'uint64' },\n { name: 'contestIds', type: 'uint32[]' },\n ],\n };\n case 'social_authentication':\n return {\n SocialAuthentication: [\n { name: 'sender', type: 'bytes32' },\n { name: 'expiration', type: 'uint64' },\n { name: 'provider', type: 'string' },\n ],\n };\n case 'mint_nlp':\n return {\n MintNlp: [\n { name: 'sender', type: 'bytes32' },\n { name: 'quoteAmount', type: 'uint128' },\n { name: 'nonce', type: 'uint64' },\n ],\n };\n case 'burn_nlp':\n return {\n BurnNlp: [\n { name: 'sender', type: 'bytes32' },\n { name: 'nlpAmount', type: 'uint128' },\n { name: 'nonce', type: 'uint64' },\n ],\n };\n }\n}\n"],"mappings":";;;;;;;AAYA,SAAgB,mBACd,aACuC;CACvC,QAAQ,aAAR;EACE,KAAK,uBACH,OAAO,EACL,oBAAoB;GAClB;IAAE,MAAM;IAAU,MAAM;GAAU;GAClC;IAAE,MAAM;IAAa,MAAM;GAAS;GACpC;IAAE,MAAM;IAAU,MAAM;GAAU;GAClC;IAAE,MAAM;IAAS,MAAM;GAAS;EAClC,EACF;EACF,KAAK,0BACH,OAAO,EACL,sBAAsB;GACpB;IAAE,MAAM;IAAU,MAAM;GAAU;GAClC;IAAE,MAAM;IAAa,MAAM;GAAS;GACpC;IAAE,MAAM;IAAU,MAAM;GAAU;GAClC;IAAE,MAAM;IAAS,MAAM;GAAS;GAChC;IAAE,MAAM;IAAU,MAAM;GAAU;GAClC;IAAE,MAAM;IAAY,MAAM;GAAU;EACtC,EACF;EACF,KAAK,eACH,OAAO,EACL,OAAO;GACL;IAAE,MAAM;IAAU,MAAM;GAAU;GAClC;IAAE,MAAM;IAAY,MAAM;GAAS;GACnC;IAAE,MAAM;IAAU,MAAM;GAAS;GACjC;IAAE,MAAM;IAAc,MAAM;GAAS;GACrC;IAAE,MAAM;IAAS,MAAM;GAAS;GAChC;IAAE,MAAM;IAAY,MAAM;GAAU;EACtC,EACF;EACF,KAAK,uBACH,OAAO,EACL,mBAAmB,CACjB;GAAE,MAAM;GAAU,MAAM;EAAU,GAClC;GAAE,MAAM;GAAY,MAAM;EAAS,CACrC,EACF;EACF,KAAK,qBACH,OAAO,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IAAE,MAAM;IAAc,MAAM;GAAW;EACzC,EACF;EACF,KAAK,yBACH,OAAO,EACL,sBAAsB;GACpB;IAAE,MAAM;IAAU,MAAM;GAAU;GAClC;IAAE,MAAM;IAAc,MAAM;GAAS;GACrC;IAAE,MAAM;IAAY,MAAM;GAAS;EACrC,EACF;EACF,KAAK,YACH,OAAO,EACL,SAAS;GACP;IAAE,MAAM;IAAU,MAAM;GAAU;GAClC;IAAE,MAAM;IAAe,MAAM;GAAU;GACvC;IAAE,MAAM;IAAS,MAAM;GAAS;EAClC,EACF;EACF,KAAK,YACH,OAAO,EACL,SAAS;GACP;IAAE,MAAM;IAAU,MAAM;GAAU;GAClC;IAAE,MAAM;IAAa,MAAM;GAAU;GACrC;IAAE,MAAM;IAAS,MAAM;GAAS;EAClC,EACF;CACJ;AACF"}
|
|
1
|
+
{"version":3,"file":"getNadoEIP712Types.cjs","names":[],"sources":["../../src/eip712/getNadoEIP712Types.ts"],"sourcesContent":["import { SignableRequestType } from './signableRequestType';\n\ninterface TypedDataField {\n name: string;\n type: string;\n}\n\n/**\n * Return the EIP712 types for a given request\n *\n * @param requestType\n */\nexport function getNadoEIP712Types(\n requestType: SignableRequestType,\n): Record<string, Array<TypedDataField>> {\n switch (requestType) {\n case 'withdraw_collateral':\n return {\n WithdrawCollateral: [\n { name: 'sender', type: 'bytes32' },\n { name: 'productId', type: 'uint32' },\n { name: 'amount', type: 'uint128' },\n { name: 'nonce', type: 'uint64' },\n ],\n };\n case 'withdraw_collateral_v2':\n return {\n WithdrawCollateralV2: [\n { name: 'sender', type: 'bytes32' },\n { name: 'productId', type: 'uint32' },\n { name: 'amount', type: 'uint128' },\n { name: 'nonce', type: 'uint64' },\n { name: 'sendTo', type: 'address' },\n { name: 'appendix', type: 'uint128' },\n ],\n };\n case 'place_order':\n return {\n Order: [\n { name: 'sender', type: 'bytes32' },\n { name: 'priceX18', type: 'int128' },\n { name: 'amount', type: 'int128' },\n { name: 'expiration', type: 'uint64' },\n { name: 'nonce', type: 'uint64' },\n { name: 'appendix', type: 'uint128' },\n ],\n };\n case 'list_trigger_orders':\n return {\n ListTriggerOrders: [\n { name: 'sender', type: 'bytes32' },\n { name: 'recvTime', type: 'uint64' },\n ],\n };\n case 'update_dependency':\n return {\n DependencyUpdate: [\n { name: 'sender', type: 'bytes32' },\n { name: 'oldDigest', type: 'bytes32' },\n { name: 'newDigest', type: 'bytes32' },\n { name: 'nonce', type: 'uint64' },\n ],\n };\n case 'cancel_orders':\n return {\n Cancellation: [\n { name: 'sender', type: 'bytes32' },\n { name: 'productIds', type: 'uint32[]' },\n { name: 'digests', type: 'bytes32[]' },\n { name: 'nonce', type: 'uint64' },\n ],\n };\n case 'cancel_product_orders':\n return {\n CancellationProducts: [\n { name: 'sender', type: 'bytes32' },\n { name: 'productIds', type: 'uint32[]' },\n { name: 'nonce', type: 'uint64' },\n ],\n };\n case 'liquidate_subaccount':\n return {\n LiquidateSubaccount: [\n { name: 'sender', type: 'bytes32' },\n { name: 'liquidatee', type: 'bytes32' },\n { name: 'mode', type: 'uint8' },\n { name: 'healthGroup', type: 'uint32' },\n { name: 'amount', type: 'int128' },\n { name: 'nonce', type: 'uint64' },\n ],\n };\n case 'link_signer':\n return {\n LinkSigner: [\n { name: 'sender', type: 'bytes32' },\n { name: 'signer', type: 'bytes32' },\n { name: 'nonce', type: 'uint64' },\n ],\n };\n case 'transfer_quote':\n return {\n TransferQuote: [\n { name: 'sender', type: 'bytes32' },\n { name: 'recipient', type: 'bytes32' },\n { name: 'amount', type: 'uint128' },\n { name: 'nonce', type: 'uint64' },\n ],\n };\n case 'leaderboard_authentication':\n return {\n LeaderboardAuthentication: [\n { name: 'sender', type: 'bytes32' },\n { name: 'expiration', type: 'uint64' },\n { name: 'contestIds', type: 'uint32[]' },\n ],\n };\n case 'social_authentication':\n return {\n SocialAuthentication: [\n { name: 'sender', type: 'bytes32' },\n { name: 'expiration', type: 'uint64' },\n { name: 'provider', type: 'string' },\n ],\n };\n case 'mint_nlp':\n return {\n MintNlp: [\n { name: 'sender', type: 'bytes32' },\n { name: 'quoteAmount', type: 'uint128' },\n { name: 'nonce', type: 'uint64' },\n ],\n };\n case 'burn_nlp':\n return {\n BurnNlp: [\n { name: 'sender', type: 'bytes32' },\n { name: 'nlpAmount', type: 'uint128' },\n { name: 'nonce', type: 'uint64' },\n ],\n };\n case 'nado_authentication':\n return {\n NadoAuthentication: [\n { name: 'method', type: 'string' },\n { name: 'sender', type: 'bytes32' },\n { name: 'payloadHash', type: 'bytes32' },\n { name: 'nonce', type: 'uint64' },\n ],\n };\n }\n}\n"],"mappings":";;;;;;;AAYA,SAAgB,mBACd,aACuC;CACvC,QAAQ,aAAR;EACE,KAAK,uBACH,OAAO,EACL,oBAAoB;GAClB;IAAE,MAAM;IAAU,MAAM;GAAU;GAClC;IAAE,MAAM;IAAa,MAAM;GAAS;GACpC;IAAE,MAAM;IAAU,MAAM;GAAU;GAClC;IAAE,MAAM;IAAS,MAAM;GAAS;EAClC,EACF;EACF,KAAK,0BACH,OAAO,EACL,sBAAsB;GACpB;IAAE,MAAM;IAAU,MAAM;GAAU;GAClC;IAAE,MAAM;IAAa,MAAM;GAAS;GACpC;IAAE,MAAM;IAAU,MAAM;GAAU;GAClC;IAAE,MAAM;IAAS,MAAM;GAAS;GAChC;IAAE,MAAM;IAAU,MAAM;GAAU;GAClC;IAAE,MAAM;IAAY,MAAM;GAAU;EACtC,EACF;EACF,KAAK,eACH,OAAO,EACL,OAAO;GACL;IAAE,MAAM;IAAU,MAAM;GAAU;GAClC;IAAE,MAAM;IAAY,MAAM;GAAS;GACnC;IAAE,MAAM;IAAU,MAAM;GAAS;GACjC;IAAE,MAAM;IAAc,MAAM;GAAS;GACrC;IAAE,MAAM;IAAS,MAAM;GAAS;GAChC;IAAE,MAAM;IAAY,MAAM;GAAU;EACtC,EACF;EACF,KAAK,uBACH,OAAO,EACL,mBAAmB,CACjB;GAAE,MAAM;GAAU,MAAM;EAAU,GAClC;GAAE,MAAM;GAA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GAAU;GAClC;IAAE,MAAM;IAAc,MAAM;GAAS;GACrC;IAAE,MAAM;IAAc,MAAM;GAAW;EACzC,EACF;EACF,KAAK,yBACH,OAAO,EACL,sBAAsB;GACpB;IAAE,MAAM;IAAU,MAAM;GAAU;GAClC;IAAE,MAAM;IAAc,MAAM;GAAS;GACrC;IAAE,MAAM;IAAY,MAAM;GAAS;EACrC,EACF;EACF,KAAK,YACH,OAAO,EACL,SAAS;GACP;IAAE,MAAM;IAAU,MAAM;GAAU;GAClC;IAAE,MAAM;IAAe,MAAM;GAAU;GACvC;IAAE,MAAM;IAAS,MAAM;GAAS;EAClC,EACF;EACF,KAAK,YACH,OAAO,EACL,SAAS;GACP;IAAE,MAAM;IAAU,MAAM;GAAU;GAClC;IAAE,MAAM;IAAa,MAAM;GAAU;GACrC;IAAE,MAAM;IAAS,MAAM;GAAS;EAClC,EACF;EACF,KAAK,uBACH,OAAO,EACL,oBAAoB;GAClB;IAAE,MAAM;IAAU,MAAM;GAAS;GACjC;IAAE,MAAM;IAAU,MAAM;GAAU;GAClC;IAAE,MAAM;IAAe,MAAM;GAAU;GACvC;IAAE,MAAM;IAAS,MAAM;GAAS;EAClC,EACF;CACJ;AACF"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as getNadoEIP712Types } from "../getNadoEIP712Types-
|
|
1
|
+
import { t as getNadoEIP712Types } from "../getNadoEIP712Types-CJFATDaU.cjs";
|
|
2
2
|
export { getNadoEIP712Types };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as getNadoEIP712Types } from "../getNadoEIP712Types-
|
|
1
|
+
import { t as getNadoEIP712Types } from "../getNadoEIP712Types-DUE5ujkf.js";
|
|
2
2
|
export { getNadoEIP712Types };
|
|
@@ -247,6 +247,24 @@ function getNadoEIP712Types(requestType) {
|
|
|
247
247
|
type: "uint64"
|
|
248
248
|
}
|
|
249
249
|
] };
|
|
250
|
+
case "nado_authentication": return { NadoAuthentication: [
|
|
251
|
+
{
|
|
252
|
+
name: "method",
|
|
253
|
+
type: "string"
|
|
254
|
+
},
|
|
255
|
+
{
|
|
256
|
+
name: "sender",
|
|
257
|
+
type: "bytes32"
|
|
258
|
+
},
|
|
259
|
+
{
|
|
260
|
+
name: "payloadHash",
|
|
261
|
+
type: "bytes32"
|
|
262
|
+
},
|
|
263
|
+
{
|
|
264
|
+
name: "nonce",
|
|
265
|
+
type: "uint64"
|
|
266
|
+
}
|
|
267
|
+
] };
|
|
250
268
|
}
|
|
251
269
|
}
|
|
252
270
|
//#endregion
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getNadoEIP712Types.js","names":[],"sources":["../../src/eip712/getNadoEIP712Types.ts"],"sourcesContent":["import { SignableRequestType } from './signableRequestType';\n\ninterface TypedDataField {\n name: string;\n type: string;\n}\n\n/**\n * Return the EIP712 types for a given request\n *\n * @param requestType\n */\nexport function getNadoEIP712Types(\n requestType: SignableRequestType,\n): Record<string, Array<TypedDataField>> {\n switch (requestType) {\n case 'withdraw_collateral':\n return {\n WithdrawCollateral: [\n { name: 'sender', type: 'bytes32' },\n { name: 'productId', type: 'uint32' },\n { name: 'amount', type: 'uint128' },\n { name: 'nonce', type: 'uint64' },\n ],\n };\n case 'withdraw_collateral_v2':\n return {\n WithdrawCollateralV2: [\n { name: 'sender', type: 'bytes32' },\n { name: 'productId', type: 'uint32' },\n { name: 'amount', type: 'uint128' },\n { name: 'nonce', type: 'uint64' },\n { name: 'sendTo', type: 'address' },\n { name: 'appendix', type: 'uint128' },\n ],\n };\n case 'place_order':\n return {\n Order: [\n { name: 'sender', type: 'bytes32' },\n { name: 'priceX18', type: 'int128' },\n { name: 'amount', type: 'int128' },\n { name: 'expiration', type: 'uint64' },\n { name: 'nonce', type: 'uint64' },\n { name: 'appendix', type: 'uint128' },\n ],\n };\n case 'list_trigger_orders':\n return {\n ListTriggerOrders: [\n { name: 'sender', type: 'bytes32' },\n { name: 'recvTime', type: 'uint64' },\n ],\n };\n case 'update_dependency':\n return {\n DependencyUpdate: [\n { name: 'sender', type: 'bytes32' },\n { name: 'oldDigest', type: 'bytes32' },\n { name: 'newDigest', type: 'bytes32' },\n { name: 'nonce', type: 'uint64' },\n ],\n };\n case 'cancel_orders':\n return {\n Cancellation: [\n { name: 'sender', type: 'bytes32' },\n { name: 'productIds', type: 'uint32[]' },\n { name: 'digests', type: 'bytes32[]' },\n { name: 'nonce', type: 'uint64' },\n ],\n };\n case 'cancel_product_orders':\n return {\n CancellationProducts: [\n { name: 'sender', type: 'bytes32' },\n { name: 'productIds', type: 'uint32[]' },\n { name: 'nonce', type: 'uint64' },\n ],\n };\n case 'liquidate_subaccount':\n return {\n LiquidateSubaccount: [\n { name: 'sender', type: 'bytes32' },\n { name: 'liquidatee', type: 'bytes32' },\n { name: 'mode', type: 'uint8' },\n { name: 'healthGroup', type: 'uint32' },\n { name: 'amount', type: 'int128' },\n { name: 'nonce', type: 'uint64' },\n ],\n };\n case 'link_signer':\n return {\n LinkSigner: [\n { name: 'sender', type: 'bytes32' },\n { name: 'signer', type: 'bytes32' },\n { name: 'nonce', type: 'uint64' },\n ],\n };\n case 'transfer_quote':\n return {\n TransferQuote: [\n { name: 'sender', type: 'bytes32' },\n { name: 'recipient', type: 'bytes32' },\n { name: 'amount', type: 'uint128' },\n { name: 'nonce', type: 'uint64' },\n ],\n };\n case 'leaderboard_authentication':\n return {\n LeaderboardAuthentication: [\n { name: 'sender', type: 'bytes32' },\n { name: 'expiration', type: 'uint64' },\n { name: 'contestIds', type: 'uint32[]' },\n ],\n };\n case 'social_authentication':\n return {\n SocialAuthentication: [\n { name: 'sender', type: 'bytes32' },\n { name: 'expiration', type: 'uint64' },\n { name: 'provider', type: 'string' },\n ],\n };\n case 'mint_nlp':\n return {\n MintNlp: [\n { name: 'sender', type: 'bytes32' },\n { name: 'quoteAmount', type: 'uint128' },\n { name: 'nonce', type: 'uint64' },\n ],\n };\n case 'burn_nlp':\n return {\n BurnNlp: [\n { name: 'sender', type: 'bytes32' },\n { name: 'nlpAmount', type: 'uint128' },\n { name: 'nonce', type: 'uint64' },\n ],\n };\n }\n}\n"],"mappings":";;;;;;AAYA,SAAgB,mBACd,aACuC;CACvC,QAAQ,aAAR;EACE,KAAK,uBACH,OAAO,EACL,oBAAoB;GAClB;IAAE,MAAM;IAAU,MAAM;GAAU;GAClC;IAAE,MAAM;IAAa,MAAM;GAAS;GACpC;IAAE,MAAM;IAAU,MAAM;GAAU;GAClC;IAAE,MAAM;IAAS,MAAM;GAAS;EAClC,EACF;EACF,KAAK,0BACH,OAAO,EACL,sBAAsB;GACpB;IAAE,MAAM;IAAU,MAAM;GAAU;GAClC;IAAE,MAAM;IAAa,MAAM;GAAS;GACpC;IAAE,MAAM;IAAU,MAAM;GAAU;GAClC;IAAE,MAAM;IAAS,MAAM;GAAS;GAChC;IAAE,MAAM;IAAU,MAAM;GAAU;GAClC;IAAE,MAAM;IAAY,MAAM;GAAU;EACtC,EACF;EACF,KAAK,eACH,OAAO,EACL,OAAO;GACL;IAAE,MAAM;IAAU,MAAM;GAAU;GAClC;IAAE,MAAM;IAAY,MAAM;GAAS;GACnC;IAAE,MAAM;IAAU,MAAM;GAAS;GACjC;IAAE,MAAM;IAAc,MAAM;GAAS;GACrC;IAAE,MAAM;IAAS,MAAM;GAAS;GAChC;IAAE,MAAM;IAAY,MAAM;GAAU;EACtC,EACF;EACF,KAAK,uBACH,OAAO,EACL,mBAAmB,CACjB;GAAE,MAAM;GAAU,MAAM;EAAU,GAClC;GAAE,MAAM;GAAY,MAAM;EAAS,CACrC,EACF;EACF,KAAK,qBACH,OAAO,EACL,kBAAkB;GAChB;IAAE,MAAM;IAAU,MAAM;GAAU;GAClC;IAAE,MAAM;IAAa,MAAM;GAAU;GACrC;IAAE,MAAM;IAAa,MAAM;GAAU;GACrC;IAAE,MAAM;IAAS,MAAM;GAAS;EAClC,EACF;EACF,KAAK,iBACH,OAAO,EACL,cAAc;GACZ;IAAE,MAAM;IAAU,MAAM;GAAU;GAClC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M;IAAU,MAAM;GAAU;GAClC;IAAE,MAAM;IAAe,MAAM;GAAU;GACvC;IAAE,MAAM;IAAS,MAAM;GAAS;EAClC,EACF;EACF,KAAK,YACH,OAAO,EACL,SAAS;GACP;IAAE,MAAM;IAAU,MAAM;GAAU;GAClC;IAAE,MAAM;IAAa,MAAM;GAAU;GACrC;IAAE,MAAM;IAAS,MAAM;GAAS;EAClC,EACF;CACJ;AACF"}
|
|
1
|
+
{"version":3,"file":"getNadoEIP712Types.js","names":[],"sources":["../../src/eip712/getNadoEIP712Types.ts"],"sourcesContent":["import { SignableRequestType } from './signableRequestType';\n\ninterface TypedDataField {\n name: string;\n type: string;\n}\n\n/**\n * Return the EIP712 types for a given request\n *\n * @param requestType\n */\nexport function getNadoEIP712Types(\n requestType: SignableRequestType,\n): Record<string, Array<TypedDataField>> {\n switch (requestType) {\n case 'withdraw_collateral':\n return {\n WithdrawCollateral: [\n { name: 'sender', type: 'bytes32' },\n { name: 'productId', type: 'uint32' },\n { name: 'amount', type: 'uint128' },\n { name: 'nonce', type: 'uint64' },\n ],\n };\n case 'withdraw_collateral_v2':\n return {\n WithdrawCollateralV2: [\n { name: 'sender', type: 'bytes32' },\n { name: 'productId', type: 'uint32' },\n { name: 'amount', type: 'uint128' },\n { name: 'nonce', type: 'uint64' },\n { name: 'sendTo', type: 'address' },\n { name: 'appendix', type: 'uint128' },\n ],\n };\n case 'place_order':\n return {\n Order: [\n { name: 'sender', type: 'bytes32' },\n { name: 'priceX18', type: 'int128' },\n { name: 'amount', type: 'int128' },\n { name: 'expiration', type: 'uint64' },\n { name: 'nonce', type: 'uint64' },\n { name: 'appendix', type: 'uint128' },\n ],\n };\n case 'list_trigger_orders':\n return {\n ListTriggerOrders: [\n { name: 'sender', type: 'bytes32' },\n { name: 'recvTime', type: 'uint64' },\n ],\n };\n case 'update_dependency':\n return {\n DependencyUpdate: [\n { name: 'sender', type: 'bytes32' },\n { name: 'oldDigest', type: 'bytes32' },\n { name: 'newDigest', type: 'bytes32' },\n { name: 'nonce', type: 'uint64' },\n ],\n };\n case 'cancel_orders':\n return {\n Cancellation: [\n { name: 'sender', type: 'bytes32' },\n { name: 'productIds', type: 'uint32[]' },\n { name: 'digests', type: 'bytes32[]' },\n { name: 'nonce', type: 'uint64' },\n ],\n };\n case 'cancel_product_orders':\n return {\n CancellationProducts: [\n { name: 'sender', type: 'bytes32' },\n { name: 'productIds', type: 'uint32[]' },\n { name: 'nonce', type: 'uint64' },\n ],\n };\n case 'liquidate_subaccount':\n return {\n LiquidateSubaccount: [\n { name: 'sender', type: 'bytes32' },\n { name: 'liquidatee', type: 'bytes32' },\n { name: 'mode', type: 'uint8' },\n { name: 'healthGroup', type: 'uint32' },\n { name: 'amount', type: 'int128' },\n { name: 'nonce', type: 'uint64' },\n ],\n };\n case 'link_signer':\n return {\n LinkSigner: [\n { name: 'sender', type: 'bytes32' },\n { name: 'signer', type: 'bytes32' },\n { name: 'nonce', type: 'uint64' },\n ],\n };\n case 'transfer_quote':\n return {\n TransferQuote: [\n { name: 'sender', type: 'bytes32' },\n { name: 'recipient', type: 'bytes32' },\n { name: 'amount', type: 'uint128' },\n { name: 'nonce', type: 'uint64' },\n ],\n };\n case 'leaderboard_authentication':\n return {\n LeaderboardAuthentication: [\n { name: 'sender', type: 'bytes32' },\n { name: 'expiration', type: 'uint64' },\n { name: 'contestIds', type: 'uint32[]' },\n ],\n };\n case 'social_authentication':\n return {\n SocialAuthentication: [\n { name: 'sender', type: 'bytes32' },\n { name: 'expiration', type: 'uint64' },\n { name: 'provider', type: 'string' },\n ],\n };\n case 'mint_nlp':\n return {\n MintNlp: [\n { name: 'sender', type: 'bytes32' },\n { name: 'quoteAmount', type: 'uint128' },\n { name: 'nonce', type: 'uint64' },\n ],\n };\n case 'burn_nlp':\n return {\n BurnNlp: [\n { name: 'sender', type: 'bytes32' },\n { name: 'nlpAmount', type: 'uint128' },\n { name: 'nonce', type: 'uint64' },\n ],\n };\n case 'nado_authentication':\n return {\n NadoAuthentication: [\n { name: 'method', type: 'string' },\n { name: 'sender', type: 'bytes32' },\n { name: 'payloadHash', type: 'bytes32' },\n { name: 'nonce', type: 'uint64' },\n ],\n };\n }\n}\n"],"mappings":";;;;;;AAYA,SAAgB,mBACd,aACuC;CACvC,QAAQ,aAAR;EACE,KAAK,uBACH,OAAO,EACL,oBAAoB;GAClB;IAAE,MAAM;IAAU,MAAM;GAAU;GAClC;IAAE,MAAM;IAAa,MAAM;GAAS;GACpC;IAAE,MAAM;IAAU,MAAM;GAAU;GAClC;IAAE,MAAM;IAAS,MAAM;GAAS;EAClC,EACF;EACF,KAAK,0BACH,OAAO,EACL,sBAAsB;GACpB;IAAE,MAAM;IAAU,MAAM;GAAU;GAClC;IAAE,MAAM;IAAa,MAAM;GAAS;GACpC;IAAE,MAAM;IAAU,MAAM;GAAU;GAClC;IAAE,MAAM;IAAS,MAAM;GAAS;GAChC;IAAE,MAAM;IAAU,MAAM;GAAU;GAClC;IAAE,MAAM;IAAY,MAAM;GAAU;EACtC,EACF;EACF,KAAK,eACH,OAAO,EACL,OAAO;GACL;IAAE,MAAM;IAAU,MAAM;GAAU;GAClC;IAAE,MAAM;IAAY,MAAM;GAAS;GACnC;IAAE,MAAM;IAAU,MAAM;GAAS;GACjC;IAAE,MAAM;IAAc,MAAM;GAAS;GACrC;IAAE,MAAM;IAAS,MAAM;GAAS;GAChC;IAAE,MAAM;IAAY,MAAM;GAAU;EACtC,EACF;EACF,KAAK,uBACH,OAAO,EACL,mBAAmB,CACjB;GAAE,MAAM;GAAU,MAAM;EAAU,GAClC;GAAE,MAAM;GAAY,MAAM;EAAS,CACrC,EACF;EACF,KAAK,qBACH,OAAO,EACL,kBAAkB;GAChB;IAAE,MAAM;IAAU,MAAM;GAAU;GAClC;IAAE,MAAM;IAAa,MAAM;GAAU;GACrC;IAAE,MAAM;IAAa,MAAM;GAAU;GACrC;IAAE,MAAM;IAAS,MAAM;GAAS;EAClC,EACF;EACF,KAAK,iBACH,OAAO,EACL,cA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F,KAAK,YACH,OAAO,EACL,SAAS;GACP;IAAE,MAAM;IAAU,MAAM;GAAU;GAClC;IAAE,MAAM;IAAe,MAAM;GAAU;GACvC;IAAE,MAAM;IAAS,MAAM;GAAS;EAClC,EACF;EACF,KAAK,YACH,OAAO,EACL,SAAS;GACP;IAAE,MAAM;IAAU,MAAM;GAAU;GAClC;IAAE,MAAM;IAAa,MAAM;GAAU;GACrC;IAAE,MAAM;IAAS,MAAM;GAAS;EAClC,EACF;EACF,KAAK,uBACH,OAAO,EACL,oBAAoB;GAClB;IAAE,MAAM;IAAU,MAAM;GAAS;GACjC;IAAE,MAAM;IAAU,MAAM;GAAU;GAClC;IAAE,MAAM;IAAe,MAAM;GAAU;GACvC;IAAE,MAAM;IAAS,MAAM;GAAS;EAClC,EACF;CACJ;AACF"}
|
|
@@ -56,6 +56,9 @@ function getNadoEIP712Values(requestType, params) {
|
|
|
56
56
|
case "burn_nlp":
|
|
57
57
|
values = getBurnNlpValues(params);
|
|
58
58
|
break;
|
|
59
|
+
case "nado_authentication":
|
|
60
|
+
values = getNadoAuthenticationValues(params);
|
|
61
|
+
break;
|
|
59
62
|
default: throw new Error(`Unsupported request type: ${requestType}`);
|
|
60
63
|
}
|
|
61
64
|
return values;
|
|
@@ -218,6 +221,17 @@ function getBurnNlpValues(params) {
|
|
|
218
221
|
nonce: params.nonce
|
|
219
222
|
};
|
|
220
223
|
}
|
|
224
|
+
function getNadoAuthenticationValues(params) {
|
|
225
|
+
return {
|
|
226
|
+
method: params.method,
|
|
227
|
+
sender: require_utils_bytes32.subaccountToHex({
|
|
228
|
+
subaccountOwner: params.subaccountOwner,
|
|
229
|
+
subaccountName: params.subaccountName
|
|
230
|
+
}),
|
|
231
|
+
payloadHash: params.payloadHash,
|
|
232
|
+
nonce: params.nonce
|
|
233
|
+
};
|
|
234
|
+
}
|
|
221
235
|
//#endregion
|
|
222
236
|
exports.getNadoEIP712Values = getNadoEIP712Values;
|
|
223
237
|
|