@nadohq/shared 0.1.0-alpha.13 → 0.1.0-alpha.14
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/abis/index.cjs +12 -12
- package/dist/abis/index.cjs.map +1 -1
- package/dist/abis/index.d.cts +6 -6
- package/dist/abis/index.d.ts +6 -6
- package/dist/abis/index.js +6 -6
- package/dist/abis/index.js.map +1 -1
- package/dist/eip712/eip712ValueTypes.d.cts +1 -1
- package/dist/eip712/eip712ValueTypes.d.ts +1 -1
- package/dist/eip712/getNadoEIP712Domain.cjs.map +1 -1
- package/dist/eip712/getNadoEIP712Domain.js.map +1 -1
- package/dist/eip712/index.cjs +13 -13
- package/dist/eip712/index.cjs.map +1 -1
- package/dist/eip712/index.d.cts +9 -9
- package/dist/eip712/index.d.ts +9 -9
- package/dist/eip712/index.js +6 -6
- package/dist/eip712/index.js.map +1 -1
- package/dist/index.d.cts +33 -33
- package/dist/index.d.ts +33 -33
- package/dist/types/index.cjs +7 -7
- package/dist/types/index.cjs.map +1 -1
- package/dist/types/index.d.cts +4 -4
- package/dist/types/index.d.ts +4 -4
- package/dist/types/index.js +3 -3
- package/dist/types/index.js.map +1 -1
- package/dist/utils/createDeterministicLinkedSignerPrivateKey.cjs.map +1 -1
- package/dist/utils/createDeterministicLinkedSignerPrivateKey.js.map +1 -1
- package/dist/utils/index.cjs +12 -12
- package/dist/utils/index.cjs.map +1 -1
- package/dist/utils/index.d.cts +21 -21
- package/dist/utils/index.d.ts +21 -21
- package/dist/utils/index.js +6 -6
- package/dist/utils/index.js.map +1 -1
- package/dist/utils/math/index.cjs +8 -8
- package/dist/utils/math/index.cjs.map +1 -1
- package/dist/utils/math/index.d.cts +4 -4
- package/dist/utils/math/index.d.ts +4 -4
- package/dist/utils/math/index.js +4 -4
- package/dist/utils/math/index.js.map +1 -1
- package/dist/utils/orders/appendix/index.cjs +4 -4
- package/dist/utils/orders/appendix/index.cjs.map +1 -1
- package/dist/utils/orders/appendix/index.d.cts +2 -2
- package/dist/utils/orders/appendix/index.d.ts +2 -2
- package/dist/utils/orders/appendix/index.js +2 -2
- package/dist/utils/orders/appendix/index.js.map +1 -1
- package/dist/utils/orders/index.cjs +3 -3
- package/dist/utils/orders/index.cjs.map +1 -1
- package/dist/utils/orders/index.d.cts +4 -4
- package/dist/utils/orders/index.d.ts +4 -4
- package/dist/utils/orders/index.js +1 -1
- package/dist/utils/orders/index.js.map +1 -1
- package/dist/utils/productTypeFilter.cjs.map +1 -1
- package/dist/utils/productTypeFilter.js.map +1 -1
- package/package.json +2 -2
- package/src/abis/index.ts +6 -6
- package/src/eip712/getNadoEIP712Domain.ts +1 -1
- package/src/eip712/index.ts +6 -6
- package/src/types/index.ts +3 -3
- package/src/utils/createDeterministicLinkedSignerPrivateKey.ts +1 -1
- package/src/utils/index.ts +6 -6
- package/src/utils/math/index.ts +4 -4
- package/src/utils/orders/appendix/index.ts +2 -2
- package/src/utils/orders/index.ts +1 -1
- package/src/utils/productTypeFilter.ts +2 -2
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/utils/createDeterministicLinkedSignerPrivateKey.ts"],"sourcesContent":["import { keccak256 } from 'viem';\nimport {
|
|
1
|
+
{"version":3,"sources":["../../src/utils/createDeterministicLinkedSignerPrivateKey.ts"],"sourcesContent":["import { keccak256 } from 'viem';\nimport { getNadoEIP712Domain } from '../eip712/getNadoEIP712Domain';\nimport { Subaccount } from '../types/subaccountTypes';\nimport { WalletClientWithAccount } from '../types/viemTypes';\nimport { subaccountToHex } from './bytes32';\n\ninterface Params extends Subaccount {\n walletClient: WalletClientWithAccount;\n chainId: number;\n endpointAddress: string;\n}\n\n/**\n * Deterministically creates a new private key from a predetermined EIP712 message. This is used to\n * reliably create an authorized signer delegate for the subaccount across different clients. Used on the FE in order\n * to have a consistent private key for the subaccount linked signer across different clients.\n *\n * @param params\n */\nexport async function createDeterministicLinkedSignerPrivateKey(\n params: Params,\n) {\n const {\n chainId,\n endpointAddress,\n walletClient,\n subaccountName,\n subaccountOwner,\n } = params;\n\n const signedMessage = await walletClient.signTypedData({\n domain: getNadoEIP712Domain(endpointAddress, chainId),\n types: {\n CreateLinkedSignerWallet: [{ name: 'subaccount', type: 'bytes32' }],\n },\n primaryType: 'CreateLinkedSignerWallet',\n message: {\n subaccount: subaccountToHex({\n subaccountOwner,\n subaccountName,\n }),\n },\n });\n\n return keccak256(signedMessage);\n}\n"],"mappings":";;;AAAA,SAAS,iBAAiB;AAC1B,SAAS,2BAA2B;AAGpC,SAAS,uBAAuB;AAehC,eAAsB,0CACpB,QACA;AACA,QAAM;AAAA,IACJ;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,EACF,IAAI;AAEJ,QAAM,gBAAgB,MAAM,aAAa,cAAc;AAAA,IACrD,QAAQ,oBAAoB,iBAAiB,OAAO;AAAA,IACpD,OAAO;AAAA,MACL,0BAA0B,CAAC,EAAE,MAAM,cAAc,MAAM,UAAU,CAAC;AAAA,IACpE;AAAA,IACA,aAAa;AAAA,IACb,SAAS;AAAA,MACP,YAAY,gBAAgB;AAAA,QAC1B;AAAA,QACA;AAAA,MACF,CAAC;AAAA,IACH;AAAA,EACF,CAAC;AAED,SAAO,UAAU,aAAa;AAChC;","names":[]}
|
package/dist/utils/index.cjs
CHANGED
|
@@ -17,36 +17,36 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
|
|
|
17
17
|
// src/utils/index.ts
|
|
18
18
|
var utils_exports = {};
|
|
19
19
|
module.exports = __toCommonJS(utils_exports);
|
|
20
|
-
__reExport(utils_exports, require("./
|
|
21
|
-
__reExport(utils_exports, require("./interest.cjs"), module.exports);
|
|
22
|
-
__reExport(utils_exports, require("./productTypeFilter.cjs"), module.exports);
|
|
20
|
+
__reExport(utils_exports, require("./asyncResult.cjs"), module.exports);
|
|
23
21
|
__reExport(utils_exports, require("./balanceValue.cjs"), module.exports);
|
|
24
22
|
__reExport(utils_exports, require("./bytes32.cjs"), module.exports);
|
|
25
23
|
__reExport(utils_exports, require("./createDeterministicLinkedSignerPrivateKey.cjs"), module.exports);
|
|
26
|
-
__reExport(utils_exports, require("./isWriteableContract.cjs"), module.exports);
|
|
27
24
|
__reExport(utils_exports, require("./errors/index.cjs"), module.exports);
|
|
28
|
-
__reExport(utils_exports, require("./math/index.cjs"), module.exports);
|
|
29
|
-
__reExport(utils_exports, require("./asyncResult.cjs"), module.exports);
|
|
30
25
|
__reExport(utils_exports, require("./getValidatedAddress.cjs"), module.exports);
|
|
31
26
|
__reExport(utils_exports, require("./getValidatedHex.cjs"), module.exports);
|
|
27
|
+
__reExport(utils_exports, require("./interest.cjs"), module.exports);
|
|
28
|
+
__reExport(utils_exports, require("./isWriteableContract.cjs"), module.exports);
|
|
32
29
|
__reExport(utils_exports, require("./mapValues.cjs"), module.exports);
|
|
30
|
+
__reExport(utils_exports, require("./math/index.cjs"), module.exports);
|
|
31
|
+
__reExport(utils_exports, require("./orders/index.cjs"), module.exports);
|
|
32
|
+
__reExport(utils_exports, require("./productTypeFilter.cjs"), module.exports);
|
|
33
33
|
__reExport(utils_exports, require("./time.cjs"), module.exports);
|
|
34
34
|
__reExport(utils_exports, require("./toPrintableObject.cjs"), module.exports);
|
|
35
35
|
// Annotate the CommonJS export names for ESM import in node:
|
|
36
36
|
0 && (module.exports = {
|
|
37
|
-
...require("./
|
|
38
|
-
...require("./interest.cjs"),
|
|
39
|
-
...require("./productTypeFilter.cjs"),
|
|
37
|
+
...require("./asyncResult.cjs"),
|
|
40
38
|
...require("./balanceValue.cjs"),
|
|
41
39
|
...require("./bytes32.cjs"),
|
|
42
40
|
...require("./createDeterministicLinkedSignerPrivateKey.cjs"),
|
|
43
|
-
...require("./isWriteableContract.cjs"),
|
|
44
41
|
...require("./errors/index.cjs"),
|
|
45
|
-
...require("./math/index.cjs"),
|
|
46
|
-
...require("./asyncResult.cjs"),
|
|
47
42
|
...require("./getValidatedAddress.cjs"),
|
|
48
43
|
...require("./getValidatedHex.cjs"),
|
|
44
|
+
...require("./interest.cjs"),
|
|
45
|
+
...require("./isWriteableContract.cjs"),
|
|
49
46
|
...require("./mapValues.cjs"),
|
|
47
|
+
...require("./math/index.cjs"),
|
|
48
|
+
...require("./orders/index.cjs"),
|
|
49
|
+
...require("./productTypeFilter.cjs"),
|
|
50
50
|
...require("./time.cjs"),
|
|
51
51
|
...require("./toPrintableObject.cjs")
|
|
52
52
|
});
|
package/dist/utils/index.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/utils/index.ts"],"sourcesContent":["export * from './
|
|
1
|
+
{"version":3,"sources":["../../src/utils/index.ts"],"sourcesContent":["export * from './asyncResult';\nexport * from './balanceValue';\nexport * from './bytes32';\nexport * from './createDeterministicLinkedSignerPrivateKey';\nexport * from './errors';\nexport * from './getValidatedAddress';\nexport * from './getValidatedHex';\nexport * from './interest';\nexport * from './isWriteableContract';\nexport * from './mapValues';\nexport * from './math';\nexport * from './orders';\nexport * from './productTypeFilter';\nexport * from './time';\nexport * from './toPrintableObject';\n"],"mappings":";;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA,0BAAc,8BAAd;AACA,0BAAc,+BADd;AAEA,0BAAc,0BAFd;AAGA,0BAAc,4DAHd;AAIA,0BAAc,+BAJd;AAKA,0BAAc,sCALd;AAMA,0BAAc,kCANd;AAOA,0BAAc,2BAPd;AAQA,0BAAc,sCARd;AASA,0BAAc,4BATd;AAUA,0BAAc,6BAVd;AAWA,0BAAc,+BAXd;AAYA,0BAAc,oCAZd;AAaA,0BAAc,uBAbd;AAcA,0BAAc,oCAdd;","names":[]}
|
package/dist/utils/index.d.cts
CHANGED
|
@@ -1,37 +1,37 @@
|
|
|
1
|
-
export {
|
|
2
|
-
export { getDefaultRecvTime } from './orders/recvTime.cjs';
|
|
3
|
-
export { packTwapOrderAppendixValue, unpackTwapOrderAppendixValue } from './orders/appendix/appendixTwapValue.cjs';
|
|
4
|
-
export { unpackOrderAppendix } from './orders/appendix/unpackOrderAppendix.cjs';
|
|
5
|
-
export { packOrderAppendix } from './orders/appendix/packOrderAppendix.cjs';
|
|
6
|
-
export { PackedOrderAppendixBits } from './orders/appendix/types.cjs';
|
|
7
|
-
export { bitMaskValue } from './orders/appendix/bitMaskValue.cjs';
|
|
8
|
-
export { calcBorrowRateForTimeRange, calcBorrowRatePerSecond, calcRealizedDepositRateForTimeRange, calcTotalBorrowed, calcTotalDeposited, calcUtilizationRatio } from './interest.cjs';
|
|
9
|
-
export { isPerpBalance, isPerpProduct, isSpotBalance, isSpotProduct } from './productTypeFilter.cjs';
|
|
1
|
+
export { AsyncResult, asyncResult } from './asyncResult.cjs';
|
|
10
2
|
export { calcPerpBalanceNotionalValue, calcPerpBalanceValue, calcSpotBalanceValue } from './balanceValue.cjs';
|
|
11
3
|
export { subaccountFromBytes32, subaccountFromHex, subaccountNameBytesToStr, subaccountNameToBytes12, subaccountToBytes32, subaccountToHex } from './bytes32.cjs';
|
|
12
4
|
export { createDeterministicLinkedSignerPrivateKey } from './createDeterministicLinkedSignerPrivateKey.cjs';
|
|
13
|
-
export { isWriteableContract } from './isWriteableContract.cjs';
|
|
14
5
|
export { WalletNotProvidedError } from './errors/WalletNotProvidedError.cjs';
|
|
15
|
-
export { BigDecimalish, toBigDecimal } from './math/bigDecimal.cjs';
|
|
16
|
-
export { toIntegerString } from './math/toIntegerString.cjs';
|
|
17
|
-
export { toBigInt } from './math/toBigInt.cjs';
|
|
18
|
-
export { clampBigDecimal } from './math/clamp.cjs';
|
|
19
|
-
export { sumBigDecimalBy } from './math/sumBigDecimalBy.cjs';
|
|
20
|
-
export { NADO_PRODUCT_DECIMALS, addDecimals, removeDecimals } from './math/decimalAdjustment.cjs';
|
|
21
|
-
export { BigDecimals } from './math/BigDecimals.cjs';
|
|
22
|
-
export { AsyncResult, asyncResult } from './asyncResult.cjs';
|
|
23
6
|
export { getValidatedAddress } from './getValidatedAddress.cjs';
|
|
24
7
|
export { getValidatedHex } from './getValidatedHex.cjs';
|
|
8
|
+
export { calcBorrowRateForTimeRange, calcBorrowRatePerSecond, calcRealizedDepositRateForTimeRange, calcTotalBorrowed, calcTotalDeposited, calcUtilizationRatio } from './interest.cjs';
|
|
9
|
+
export { isWriteableContract } from './isWriteableContract.cjs';
|
|
25
10
|
export { mapValues } from './mapValues.cjs';
|
|
11
|
+
export { BigDecimalish, toBigDecimal } from './math/bigDecimal.cjs';
|
|
12
|
+
export { BigDecimals } from './math/BigDecimals.cjs';
|
|
13
|
+
export { clampBigDecimal } from './math/clamp.cjs';
|
|
14
|
+
export { NADO_PRODUCT_DECIMALS, addDecimals, removeDecimals } from './math/decimalAdjustment.cjs';
|
|
15
|
+
export { sumBigDecimalBy } from './math/sumBigDecimalBy.cjs';
|
|
16
|
+
export { toBigInt } from './math/toBigInt.cjs';
|
|
17
|
+
export { toIntegerString } from './math/toIntegerString.cjs';
|
|
18
|
+
export { packTwapOrderAppendixValue, unpackTwapOrderAppendixValue } from './orders/appendix/appendixTwapValue.cjs';
|
|
19
|
+
export { bitMaskValue } from './orders/appendix/bitMaskValue.cjs';
|
|
20
|
+
export { packOrderAppendix } from './orders/appendix/packOrderAppendix.cjs';
|
|
21
|
+
export { PackedOrderAppendixBits } from './orders/appendix/types.cjs';
|
|
22
|
+
export { unpackOrderAppendix } from './orders/appendix/unpackOrderAppendix.cjs';
|
|
23
|
+
export { getOrderNonce, getRecvTimeFromOrderNonce } from './orders/orderNonce.cjs';
|
|
24
|
+
export { getDefaultRecvTime } from './orders/recvTime.cjs';
|
|
25
|
+
export { isPerpBalance, isPerpProduct, isSpotBalance, isSpotProduct } from './productTypeFilter.cjs';
|
|
26
26
|
export { TimeInSeconds, millisToSeconds, nowInSeconds } from './time.cjs';
|
|
27
27
|
export { toPrintableObject } from './toPrintableObject.cjs';
|
|
28
28
|
export { default as BigDecimal } from 'bignumber.js';
|
|
29
|
-
import '../types/orderAppendixTypes.cjs';
|
|
30
|
-
import '../types/OrderExecutionType.cjs';
|
|
31
|
-
import '../types/productTypes.cjs';
|
|
32
29
|
import '../types/balanceTypes.cjs';
|
|
33
30
|
import '../types/healthTypes.cjs';
|
|
31
|
+
import '../types/productTypes.cjs';
|
|
34
32
|
import 'viem';
|
|
35
33
|
import '../types/bytes.cjs';
|
|
36
34
|
import '../types/subaccountTypes.cjs';
|
|
37
35
|
import '../types/viemTypes.cjs';
|
|
36
|
+
import '../types/orderAppendixTypes.cjs';
|
|
37
|
+
import '../types/OrderExecutionType.cjs';
|
package/dist/utils/index.d.ts
CHANGED
|
@@ -1,37 +1,37 @@
|
|
|
1
|
-
export {
|
|
2
|
-
export { getDefaultRecvTime } from './orders/recvTime.js';
|
|
3
|
-
export { packTwapOrderAppendixValue, unpackTwapOrderAppendixValue } from './orders/appendix/appendixTwapValue.js';
|
|
4
|
-
export { unpackOrderAppendix } from './orders/appendix/unpackOrderAppendix.js';
|
|
5
|
-
export { packOrderAppendix } from './orders/appendix/packOrderAppendix.js';
|
|
6
|
-
export { PackedOrderAppendixBits } from './orders/appendix/types.js';
|
|
7
|
-
export { bitMaskValue } from './orders/appendix/bitMaskValue.js';
|
|
8
|
-
export { calcBorrowRateForTimeRange, calcBorrowRatePerSecond, calcRealizedDepositRateForTimeRange, calcTotalBorrowed, calcTotalDeposited, calcUtilizationRatio } from './interest.js';
|
|
9
|
-
export { isPerpBalance, isPerpProduct, isSpotBalance, isSpotProduct } from './productTypeFilter.js';
|
|
1
|
+
export { AsyncResult, asyncResult } from './asyncResult.js';
|
|
10
2
|
export { calcPerpBalanceNotionalValue, calcPerpBalanceValue, calcSpotBalanceValue } from './balanceValue.js';
|
|
11
3
|
export { subaccountFromBytes32, subaccountFromHex, subaccountNameBytesToStr, subaccountNameToBytes12, subaccountToBytes32, subaccountToHex } from './bytes32.js';
|
|
12
4
|
export { createDeterministicLinkedSignerPrivateKey } from './createDeterministicLinkedSignerPrivateKey.js';
|
|
13
|
-
export { isWriteableContract } from './isWriteableContract.js';
|
|
14
5
|
export { WalletNotProvidedError } from './errors/WalletNotProvidedError.js';
|
|
15
|
-
export { BigDecimalish, toBigDecimal } from './math/bigDecimal.js';
|
|
16
|
-
export { toIntegerString } from './math/toIntegerString.js';
|
|
17
|
-
export { toBigInt } from './math/toBigInt.js';
|
|
18
|
-
export { clampBigDecimal } from './math/clamp.js';
|
|
19
|
-
export { sumBigDecimalBy } from './math/sumBigDecimalBy.js';
|
|
20
|
-
export { NADO_PRODUCT_DECIMALS, addDecimals, removeDecimals } from './math/decimalAdjustment.js';
|
|
21
|
-
export { BigDecimals } from './math/BigDecimals.js';
|
|
22
|
-
export { AsyncResult, asyncResult } from './asyncResult.js';
|
|
23
6
|
export { getValidatedAddress } from './getValidatedAddress.js';
|
|
24
7
|
export { getValidatedHex } from './getValidatedHex.js';
|
|
8
|
+
export { calcBorrowRateForTimeRange, calcBorrowRatePerSecond, calcRealizedDepositRateForTimeRange, calcTotalBorrowed, calcTotalDeposited, calcUtilizationRatio } from './interest.js';
|
|
9
|
+
export { isWriteableContract } from './isWriteableContract.js';
|
|
25
10
|
export { mapValues } from './mapValues.js';
|
|
11
|
+
export { BigDecimalish, toBigDecimal } from './math/bigDecimal.js';
|
|
12
|
+
export { BigDecimals } from './math/BigDecimals.js';
|
|
13
|
+
export { clampBigDecimal } from './math/clamp.js';
|
|
14
|
+
export { NADO_PRODUCT_DECIMALS, addDecimals, removeDecimals } from './math/decimalAdjustment.js';
|
|
15
|
+
export { sumBigDecimalBy } from './math/sumBigDecimalBy.js';
|
|
16
|
+
export { toBigInt } from './math/toBigInt.js';
|
|
17
|
+
export { toIntegerString } from './math/toIntegerString.js';
|
|
18
|
+
export { packTwapOrderAppendixValue, unpackTwapOrderAppendixValue } from './orders/appendix/appendixTwapValue.js';
|
|
19
|
+
export { bitMaskValue } from './orders/appendix/bitMaskValue.js';
|
|
20
|
+
export { packOrderAppendix } from './orders/appendix/packOrderAppendix.js';
|
|
21
|
+
export { PackedOrderAppendixBits } from './orders/appendix/types.js';
|
|
22
|
+
export { unpackOrderAppendix } from './orders/appendix/unpackOrderAppendix.js';
|
|
23
|
+
export { getOrderNonce, getRecvTimeFromOrderNonce } from './orders/orderNonce.js';
|
|
24
|
+
export { getDefaultRecvTime } from './orders/recvTime.js';
|
|
25
|
+
export { isPerpBalance, isPerpProduct, isSpotBalance, isSpotProduct } from './productTypeFilter.js';
|
|
26
26
|
export { TimeInSeconds, millisToSeconds, nowInSeconds } from './time.js';
|
|
27
27
|
export { toPrintableObject } from './toPrintableObject.js';
|
|
28
28
|
export { default as BigDecimal } from 'bignumber.js';
|
|
29
|
-
import '../types/orderAppendixTypes.js';
|
|
30
|
-
import '../types/OrderExecutionType.js';
|
|
31
|
-
import '../types/productTypes.js';
|
|
32
29
|
import '../types/balanceTypes.js';
|
|
33
30
|
import '../types/healthTypes.js';
|
|
31
|
+
import '../types/productTypes.js';
|
|
34
32
|
import 'viem';
|
|
35
33
|
import '../types/bytes.js';
|
|
36
34
|
import '../types/subaccountTypes.js';
|
|
37
35
|
import '../types/viemTypes.js';
|
|
36
|
+
import '../types/orderAppendixTypes.js';
|
|
37
|
+
import '../types/OrderExecutionType.js';
|
package/dist/utils/index.js
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
// src/utils/index.ts
|
|
2
|
-
export * from "./
|
|
3
|
-
export * from "./interest.js";
|
|
4
|
-
export * from "./productTypeFilter.js";
|
|
2
|
+
export * from "./asyncResult.js";
|
|
5
3
|
export * from "./balanceValue.js";
|
|
6
4
|
export * from "./bytes32.js";
|
|
7
5
|
export * from "./createDeterministicLinkedSignerPrivateKey.js";
|
|
8
|
-
export * from "./isWriteableContract.js";
|
|
9
6
|
export * from "./errors/index.js";
|
|
10
|
-
export * from "./math/index.js";
|
|
11
|
-
export * from "./asyncResult.js";
|
|
12
7
|
export * from "./getValidatedAddress.js";
|
|
13
8
|
export * from "./getValidatedHex.js";
|
|
9
|
+
export * from "./interest.js";
|
|
10
|
+
export * from "./isWriteableContract.js";
|
|
14
11
|
export * from "./mapValues.js";
|
|
12
|
+
export * from "./math/index.js";
|
|
13
|
+
export * from "./orders/index.js";
|
|
14
|
+
export * from "./productTypeFilter.js";
|
|
15
15
|
export * from "./time.js";
|
|
16
16
|
export * from "./toPrintableObject.js";
|
|
17
17
|
//# sourceMappingURL=index.js.map
|
package/dist/utils/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/utils/index.ts"],"sourcesContent":["export * from './
|
|
1
|
+
{"version":3,"sources":["../../src/utils/index.ts"],"sourcesContent":["export * from './asyncResult';\nexport * from './balanceValue';\nexport * from './bytes32';\nexport * from './createDeterministicLinkedSignerPrivateKey';\nexport * from './errors';\nexport * from './getValidatedAddress';\nexport * from './getValidatedHex';\nexport * from './interest';\nexport * from './isWriteableContract';\nexport * from './mapValues';\nexport * from './math';\nexport * from './orders';\nexport * from './productTypeFilter';\nexport * from './time';\nexport * from './toPrintableObject';\n"],"mappings":";AAAA,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;","names":[]}
|
|
@@ -18,20 +18,20 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
|
|
|
18
18
|
var math_exports = {};
|
|
19
19
|
module.exports = __toCommonJS(math_exports);
|
|
20
20
|
__reExport(math_exports, require("./bigDecimal.cjs"), module.exports);
|
|
21
|
-
__reExport(math_exports, require("./
|
|
22
|
-
__reExport(math_exports, require("./toBigInt.cjs"), module.exports);
|
|
21
|
+
__reExport(math_exports, require("./BigDecimals.cjs"), module.exports);
|
|
23
22
|
__reExport(math_exports, require("./clamp.cjs"), module.exports);
|
|
24
|
-
__reExport(math_exports, require("./sumBigDecimalBy.cjs"), module.exports);
|
|
25
23
|
__reExport(math_exports, require("./decimalAdjustment.cjs"), module.exports);
|
|
26
|
-
__reExport(math_exports, require("./
|
|
24
|
+
__reExport(math_exports, require("./sumBigDecimalBy.cjs"), module.exports);
|
|
25
|
+
__reExport(math_exports, require("./toBigInt.cjs"), module.exports);
|
|
26
|
+
__reExport(math_exports, require("./toIntegerString.cjs"), module.exports);
|
|
27
27
|
// Annotate the CommonJS export names for ESM import in node:
|
|
28
28
|
0 && (module.exports = {
|
|
29
29
|
...require("./bigDecimal.cjs"),
|
|
30
|
-
...require("./
|
|
31
|
-
...require("./toBigInt.cjs"),
|
|
30
|
+
...require("./BigDecimals.cjs"),
|
|
32
31
|
...require("./clamp.cjs"),
|
|
33
|
-
...require("./sumBigDecimalBy.cjs"),
|
|
34
32
|
...require("./decimalAdjustment.cjs"),
|
|
35
|
-
...require("./
|
|
33
|
+
...require("./sumBigDecimalBy.cjs"),
|
|
34
|
+
...require("./toBigInt.cjs"),
|
|
35
|
+
...require("./toIntegerString.cjs")
|
|
36
36
|
});
|
|
37
37
|
//# sourceMappingURL=index.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/utils/math/index.ts"],"sourcesContent":["export * from './bigDecimal';\nexport * from './
|
|
1
|
+
{"version":3,"sources":["../../../src/utils/math/index.ts"],"sourcesContent":["export * from './bigDecimal';\nexport * from './BigDecimals';\nexport * from './clamp';\nexport * from './decimalAdjustment';\nexport * from './sumBigDecimalBy';\nexport * from './toBigInt';\nexport * from './toIntegerString';\n"],"mappings":";;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA,yBAAc,6BAAd;AACA,yBAAc,8BADd;AAEA,yBAAc,wBAFd;AAGA,yBAAc,oCAHd;AAIA,yBAAc,kCAJd;AAKA,yBAAc,2BALd;AAMA,yBAAc,kCANd;","names":[]}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
export { BigDecimalish, toBigDecimal } from './bigDecimal.cjs';
|
|
2
|
-
export {
|
|
3
|
-
export { toBigInt } from './toBigInt.cjs';
|
|
2
|
+
export { BigDecimals } from './BigDecimals.cjs';
|
|
4
3
|
export { clampBigDecimal } from './clamp.cjs';
|
|
5
|
-
export { sumBigDecimalBy } from './sumBigDecimalBy.cjs';
|
|
6
4
|
export { NADO_PRODUCT_DECIMALS, addDecimals, removeDecimals } from './decimalAdjustment.cjs';
|
|
7
|
-
export {
|
|
5
|
+
export { sumBigDecimalBy } from './sumBigDecimalBy.cjs';
|
|
6
|
+
export { toBigInt } from './toBigInt.cjs';
|
|
7
|
+
export { toIntegerString } from './toIntegerString.cjs';
|
|
8
8
|
export { default as BigDecimal } from 'bignumber.js';
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
export { BigDecimalish, toBigDecimal } from './bigDecimal.js';
|
|
2
|
-
export {
|
|
3
|
-
export { toBigInt } from './toBigInt.js';
|
|
2
|
+
export { BigDecimals } from './BigDecimals.js';
|
|
4
3
|
export { clampBigDecimal } from './clamp.js';
|
|
5
|
-
export { sumBigDecimalBy } from './sumBigDecimalBy.js';
|
|
6
4
|
export { NADO_PRODUCT_DECIMALS, addDecimals, removeDecimals } from './decimalAdjustment.js';
|
|
7
|
-
export {
|
|
5
|
+
export { sumBigDecimalBy } from './sumBigDecimalBy.js';
|
|
6
|
+
export { toBigInt } from './toBigInt.js';
|
|
7
|
+
export { toIntegerString } from './toIntegerString.js';
|
|
8
8
|
export { default as BigDecimal } from 'bignumber.js';
|
package/dist/utils/math/index.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
// src/utils/math/index.ts
|
|
2
2
|
export * from "./bigDecimal.js";
|
|
3
|
-
export * from "./
|
|
4
|
-
export * from "./toBigInt.js";
|
|
3
|
+
export * from "./BigDecimals.js";
|
|
5
4
|
export * from "./clamp.js";
|
|
6
|
-
export * from "./sumBigDecimalBy.js";
|
|
7
5
|
export * from "./decimalAdjustment.js";
|
|
8
|
-
export * from "./
|
|
6
|
+
export * from "./sumBigDecimalBy.js";
|
|
7
|
+
export * from "./toBigInt.js";
|
|
8
|
+
export * from "./toIntegerString.js";
|
|
9
9
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/utils/math/index.ts"],"sourcesContent":["export * from './bigDecimal';\nexport * from './
|
|
1
|
+
{"version":3,"sources":["../../../src/utils/math/index.ts"],"sourcesContent":["export * from './bigDecimal';\nexport * from './BigDecimals';\nexport * from './clamp';\nexport * from './decimalAdjustment';\nexport * from './sumBigDecimalBy';\nexport * from './toBigInt';\nexport * from './toIntegerString';\n"],"mappings":";AAAA,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;","names":[]}
|
|
@@ -18,16 +18,16 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
|
|
|
18
18
|
var appendix_exports = {};
|
|
19
19
|
module.exports = __toCommonJS(appendix_exports);
|
|
20
20
|
__reExport(appendix_exports, require("./appendixTwapValue.cjs"), module.exports);
|
|
21
|
-
__reExport(appendix_exports, require("./
|
|
21
|
+
__reExport(appendix_exports, require("./bitMaskValue.cjs"), module.exports);
|
|
22
22
|
__reExport(appendix_exports, require("./packOrderAppendix.cjs"), module.exports);
|
|
23
23
|
__reExport(appendix_exports, require("./types.cjs"), module.exports);
|
|
24
|
-
__reExport(appendix_exports, require("./
|
|
24
|
+
__reExport(appendix_exports, require("./unpackOrderAppendix.cjs"), module.exports);
|
|
25
25
|
// Annotate the CommonJS export names for ESM import in node:
|
|
26
26
|
0 && (module.exports = {
|
|
27
27
|
...require("./appendixTwapValue.cjs"),
|
|
28
|
-
...require("./
|
|
28
|
+
...require("./bitMaskValue.cjs"),
|
|
29
29
|
...require("./packOrderAppendix.cjs"),
|
|
30
30
|
...require("./types.cjs"),
|
|
31
|
-
...require("./
|
|
31
|
+
...require("./unpackOrderAppendix.cjs")
|
|
32
32
|
});
|
|
33
33
|
//# sourceMappingURL=index.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../../src/utils/orders/appendix/index.ts"],"sourcesContent":["export * from './appendixTwapValue';\nexport * from './
|
|
1
|
+
{"version":3,"sources":["../../../../src/utils/orders/appendix/index.ts"],"sourcesContent":["export * from './appendixTwapValue';\nexport * from './bitMaskValue';\nexport * from './packOrderAppendix';\nexport * from './types';\nexport * from './unpackOrderAppendix';\n"],"mappings":";;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA,6BAAc,oCAAd;AACA,6BAAc,+BADd;AAEA,6BAAc,oCAFd;AAGA,6BAAc,wBAHd;AAIA,6BAAc,sCAJd;","names":[]}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
export { packTwapOrderAppendixValue, unpackTwapOrderAppendixValue } from './appendixTwapValue.cjs';
|
|
2
|
-
export {
|
|
2
|
+
export { bitMaskValue } from './bitMaskValue.cjs';
|
|
3
3
|
export { packOrderAppendix } from './packOrderAppendix.cjs';
|
|
4
4
|
export { PackedOrderAppendixBits } from './types.cjs';
|
|
5
|
-
export {
|
|
5
|
+
export { unpackOrderAppendix } from './unpackOrderAppendix.cjs';
|
|
6
6
|
import '../../../types/orderAppendixTypes.cjs';
|
|
7
7
|
import '../../math/bigDecimal.cjs';
|
|
8
8
|
import 'bignumber.js';
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
export { packTwapOrderAppendixValue, unpackTwapOrderAppendixValue } from './appendixTwapValue.js';
|
|
2
|
-
export {
|
|
2
|
+
export { bitMaskValue } from './bitMaskValue.js';
|
|
3
3
|
export { packOrderAppendix } from './packOrderAppendix.js';
|
|
4
4
|
export { PackedOrderAppendixBits } from './types.js';
|
|
5
|
-
export {
|
|
5
|
+
export { unpackOrderAppendix } from './unpackOrderAppendix.js';
|
|
6
6
|
import '../../../types/orderAppendixTypes.js';
|
|
7
7
|
import '../../math/bigDecimal.js';
|
|
8
8
|
import 'bignumber.js';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// src/utils/orders/appendix/index.ts
|
|
2
2
|
export * from "./appendixTwapValue.js";
|
|
3
|
-
export * from "./
|
|
3
|
+
export * from "./bitMaskValue.js";
|
|
4
4
|
export * from "./packOrderAppendix.js";
|
|
5
5
|
export * from "./types.js";
|
|
6
|
-
export * from "./
|
|
6
|
+
export * from "./unpackOrderAppendix.js";
|
|
7
7
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../../src/utils/orders/appendix/index.ts"],"sourcesContent":["export * from './appendixTwapValue';\nexport * from './
|
|
1
|
+
{"version":3,"sources":["../../../../src/utils/orders/appendix/index.ts"],"sourcesContent":["export * from './appendixTwapValue';\nexport * from './bitMaskValue';\nexport * from './packOrderAppendix';\nexport * from './types';\nexport * from './unpackOrderAppendix';\n"],"mappings":";AAAA,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;","names":[]}
|
|
@@ -17,13 +17,13 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
|
|
|
17
17
|
// src/utils/orders/index.ts
|
|
18
18
|
var orders_exports = {};
|
|
19
19
|
module.exports = __toCommonJS(orders_exports);
|
|
20
|
+
__reExport(orders_exports, require("./appendix/index.cjs"), module.exports);
|
|
20
21
|
__reExport(orders_exports, require("./orderNonce.cjs"), module.exports);
|
|
21
22
|
__reExport(orders_exports, require("./recvTime.cjs"), module.exports);
|
|
22
|
-
__reExport(orders_exports, require("./appendix/index.cjs"), module.exports);
|
|
23
23
|
// Annotate the CommonJS export names for ESM import in node:
|
|
24
24
|
0 && (module.exports = {
|
|
25
|
+
...require("./appendix/index.cjs"),
|
|
25
26
|
...require("./orderNonce.cjs"),
|
|
26
|
-
...require("./recvTime.cjs")
|
|
27
|
-
...require("./appendix/index.cjs")
|
|
27
|
+
...require("./recvTime.cjs")
|
|
28
28
|
});
|
|
29
29
|
//# sourceMappingURL=index.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/utils/orders/index.ts"],"sourcesContent":["export * from './
|
|
1
|
+
{"version":3,"sources":["../../../src/utils/orders/index.ts"],"sourcesContent":["export * from './appendix';\nexport * from './orderNonce';\nexport * from './recvTime';\n"],"mappings":";;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA,2BAAc,iCAAd;AACA,2BAAc,6BADd;AAEA,2BAAc,2BAFd;","names":[]}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
export { getOrderNonce, getRecvTimeFromOrderNonce } from './orderNonce.cjs';
|
|
2
|
-
export { getDefaultRecvTime } from './recvTime.cjs';
|
|
3
1
|
export { packTwapOrderAppendixValue, unpackTwapOrderAppendixValue } from './appendix/appendixTwapValue.cjs';
|
|
4
|
-
export {
|
|
2
|
+
export { bitMaskValue } from './appendix/bitMaskValue.cjs';
|
|
5
3
|
export { packOrderAppendix } from './appendix/packOrderAppendix.cjs';
|
|
6
4
|
export { PackedOrderAppendixBits } from './appendix/types.cjs';
|
|
7
|
-
export {
|
|
5
|
+
export { unpackOrderAppendix } from './appendix/unpackOrderAppendix.cjs';
|
|
6
|
+
export { getOrderNonce, getRecvTimeFromOrderNonce } from './orderNonce.cjs';
|
|
7
|
+
export { getDefaultRecvTime } from './recvTime.cjs';
|
|
8
8
|
import '../../types/orderAppendixTypes.cjs';
|
|
9
9
|
import '../math/bigDecimal.cjs';
|
|
10
10
|
import 'bignumber.js';
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
export { getOrderNonce, getRecvTimeFromOrderNonce } from './orderNonce.js';
|
|
2
|
-
export { getDefaultRecvTime } from './recvTime.js';
|
|
3
1
|
export { packTwapOrderAppendixValue, unpackTwapOrderAppendixValue } from './appendix/appendixTwapValue.js';
|
|
4
|
-
export {
|
|
2
|
+
export { bitMaskValue } from './appendix/bitMaskValue.js';
|
|
5
3
|
export { packOrderAppendix } from './appendix/packOrderAppendix.js';
|
|
6
4
|
export { PackedOrderAppendixBits } from './appendix/types.js';
|
|
7
|
-
export {
|
|
5
|
+
export { unpackOrderAppendix } from './appendix/unpackOrderAppendix.js';
|
|
6
|
+
export { getOrderNonce, getRecvTimeFromOrderNonce } from './orderNonce.js';
|
|
7
|
+
export { getDefaultRecvTime } from './recvTime.js';
|
|
8
8
|
import '../../types/orderAppendixTypes.js';
|
|
9
9
|
import '../math/bigDecimal.js';
|
|
10
10
|
import 'bignumber.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/utils/orders/index.ts"],"sourcesContent":["export * from './
|
|
1
|
+
{"version":3,"sources":["../../../src/utils/orders/index.ts"],"sourcesContent":["export * from './appendix';\nexport * from './orderNonce';\nexport * from './recvTime';\n"],"mappings":";AAAA,cAAc;AACd,cAAc;AACd,cAAc;","names":[]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/utils/productTypeFilter.ts"],"sourcesContent":["import { Balance, PerpBalance, SpotBalance } from '../types/balanceTypes';\nimport {\n
|
|
1
|
+
{"version":3,"sources":["../../src/utils/productTypeFilter.ts"],"sourcesContent":["import { Balance, PerpBalance, SpotBalance } from '../types/balanceTypes';\nimport {\n PerpProduct,\n Product,\n ProductEngineType,\n SpotProduct,\n} from '../types/productTypes';\n\nexport function isSpotProduct(product: Product): product is SpotProduct {\n return product.type === ProductEngineType.SPOT;\n}\n\nexport function isSpotBalance(balance: Balance): balance is SpotBalance {\n return balance.type === ProductEngineType.SPOT;\n}\n\nexport function isPerpProduct(product: Product): product is PerpProduct {\n return product.type === ProductEngineType.PERP;\n}\n\nexport function isPerpBalance(balance: Balance): balance is PerpBalance {\n return balance.type === ProductEngineType.PERP;\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AACA,0BAKO;AAEA,SAAS,cAAc,SAA0C;AACtE,SAAO,QAAQ,SAAS,sCAAkB;AAC5C;AAEO,SAAS,cAAc,SAA0C;AACtE,SAAO,QAAQ,SAAS,sCAAkB;AAC5C;AAEO,SAAS,cAAc,SAA0C;AACtE,SAAO,QAAQ,SAAS,sCAAkB;AAC5C;AAEO,SAAS,cAAc,SAA0C;AACtE,SAAO,QAAQ,SAAS,sCAAkB;AAC5C;","names":[]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/utils/productTypeFilter.ts"],"sourcesContent":["import { Balance, PerpBalance, SpotBalance } from '../types/balanceTypes';\nimport {\n
|
|
1
|
+
{"version":3,"sources":["../../src/utils/productTypeFilter.ts"],"sourcesContent":["import { Balance, PerpBalance, SpotBalance } from '../types/balanceTypes';\nimport {\n PerpProduct,\n Product,\n ProductEngineType,\n SpotProduct,\n} from '../types/productTypes';\n\nexport function isSpotProduct(product: Product): product is SpotProduct {\n return product.type === ProductEngineType.SPOT;\n}\n\nexport function isSpotBalance(balance: Balance): balance is SpotBalance {\n return balance.type === ProductEngineType.SPOT;\n}\n\nexport function isPerpProduct(product: Product): product is PerpProduct {\n return product.type === ProductEngineType.PERP;\n}\n\nexport function isPerpBalance(balance: Balance): balance is PerpBalance {\n return balance.type === ProductEngineType.PERP;\n}\n"],"mappings":";;;AACA;AAAA,EAGE;AAAA,OAEK;AAEA,SAAS,cAAc,SAA0C;AACtE,SAAO,QAAQ,SAAS,kBAAkB;AAC5C;AAEO,SAAS,cAAc,SAA0C;AACtE,SAAO,QAAQ,SAAS,kBAAkB;AAC5C;AAEO,SAAS,cAAc,SAA0C;AACtE,SAAO,QAAQ,SAAS,kBAAkB;AAC5C;AAEO,SAAS,cAAc,SAA0C;AACtE,SAAO,QAAQ,SAAS,kBAAkB;AAC5C;","names":[]}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nadohq/shared",
|
|
3
|
-
"version": "0.1.0-alpha.
|
|
3
|
+
"version": "0.1.0-alpha.14",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"sideEffects": false,
|
|
6
6
|
"description": "Shared utilities, types, and contract helpers for Nado SDK",
|
|
@@ -45,5 +45,5 @@
|
|
|
45
45
|
"bignumber.js": "^9.3.0",
|
|
46
46
|
"viem": "*"
|
|
47
47
|
},
|
|
48
|
-
"gitHead": "
|
|
48
|
+
"gitHead": "cbd6f620e9c9789baeb196c46ffc5b00a47fe606"
|
|
49
49
|
}
|
package/src/abis/index.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
+
export * from './Clearinghouse';
|
|
2
|
+
export * from './Endpoint';
|
|
1
3
|
export * from './ERC20';
|
|
2
4
|
export * from './MockERC20';
|
|
3
|
-
export * from './WithdrawPool';
|
|
4
|
-
export * from './SpotEngine';
|
|
5
|
-
export * from './Querier';
|
|
6
|
-
export * from './PerpEngine';
|
|
7
|
-
export * from './Endpoint';
|
|
8
|
-
export * from './Clearinghouse';
|
|
9
5
|
export * from './nadoAbis';
|
|
6
|
+
export * from './PerpEngine';
|
|
7
|
+
export * from './Querier';
|
|
8
|
+
export * from './SpotEngine';
|
|
9
|
+
export * from './WithdrawPool';
|
package/src/eip712/index.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
export * from './
|
|
2
|
-
export * from './getNadoEIP712Values';
|
|
3
|
-
export * from './getNadoEIP712Types';
|
|
4
|
-
export * from './getNadoEIP712PrimaryType';
|
|
1
|
+
export * from './eip712ValueTypes';
|
|
5
2
|
export * from './getNadoEIP712Domain';
|
|
3
|
+
export * from './getNadoEIP712PrimaryType';
|
|
4
|
+
export * from './getNadoEIP712Types';
|
|
5
|
+
export * from './getNadoEIP712Values';
|
|
6
|
+
export * from './getOrderVerifyingAddress';
|
|
7
|
+
export * from './getSignedTransactionRequest';
|
|
6
8
|
export * from './orderDigest';
|
|
7
9
|
export * from './signableRequestType';
|
|
8
10
|
export * from './signatureParamTypes';
|
|
9
|
-
export * from './eip712ValueTypes';
|
|
10
|
-
export * from './getOrderVerifyingAddress';
|
package/src/types/index.ts
CHANGED
|
@@ -3,9 +3,9 @@ export * from './bytes';
|
|
|
3
3
|
export * from './ChainEnv';
|
|
4
4
|
export * from './healthTypes';
|
|
5
5
|
export * from './marketTypes';
|
|
6
|
+
export * from './nadoContractTypes';
|
|
7
|
+
export * from './orderAppendixTypes';
|
|
8
|
+
export * from './OrderExecutionType';
|
|
6
9
|
export * from './productTypes';
|
|
7
10
|
export * from './subaccountTypes';
|
|
8
|
-
export * from './nadoContractTypes';
|
|
9
11
|
export * from './viemTypes';
|
|
10
|
-
export * from './OrderExecutionType';
|
|
11
|
-
export * from './orderAppendixTypes';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { keccak256 } from 'viem';
|
|
2
|
+
import { getNadoEIP712Domain } from '../eip712/getNadoEIP712Domain';
|
|
2
3
|
import { Subaccount } from '../types/subaccountTypes';
|
|
3
4
|
import { WalletClientWithAccount } from '../types/viemTypes';
|
|
4
|
-
import { getNadoEIP712Domain } from '../eip712/getNadoEIP712Domain';
|
|
5
5
|
import { subaccountToHex } from './bytes32';
|
|
6
6
|
|
|
7
7
|
interface Params extends Subaccount {
|
package/src/utils/index.ts
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
export * from './
|
|
2
|
-
export * from './interest';
|
|
3
|
-
export * from './productTypeFilter';
|
|
1
|
+
export * from './asyncResult';
|
|
4
2
|
export * from './balanceValue';
|
|
5
3
|
export * from './bytes32';
|
|
6
4
|
export * from './createDeterministicLinkedSignerPrivateKey';
|
|
7
|
-
export * from './isWriteableContract';
|
|
8
5
|
export * from './errors';
|
|
9
|
-
export * from './math';
|
|
10
|
-
export * from './asyncResult';
|
|
11
6
|
export * from './getValidatedAddress';
|
|
12
7
|
export * from './getValidatedHex';
|
|
8
|
+
export * from './interest';
|
|
9
|
+
export * from './isWriteableContract';
|
|
13
10
|
export * from './mapValues';
|
|
11
|
+
export * from './math';
|
|
12
|
+
export * from './orders';
|
|
13
|
+
export * from './productTypeFilter';
|
|
14
14
|
export * from './time';
|
|
15
15
|
export * from './toPrintableObject';
|
package/src/utils/math/index.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export * from './bigDecimal';
|
|
2
|
-
export * from './
|
|
3
|
-
export * from './toBigInt';
|
|
2
|
+
export * from './BigDecimals';
|
|
4
3
|
export * from './clamp';
|
|
5
|
-
export * from './sumBigDecimalBy';
|
|
6
4
|
export * from './decimalAdjustment';
|
|
7
|
-
export * from './
|
|
5
|
+
export * from './sumBigDecimalBy';
|
|
6
|
+
export * from './toBigInt';
|
|
7
|
+
export * from './toIntegerString';
|