@berachain/berajs 0.2.8-beta.6 → 0.2.8-beta.8
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/abi/exports.cjs +4452 -1
- package/dist/abi/exports.cjs.map +1 -1
- package/dist/abi/exports.mjs +4452 -1
- package/dist/abi/exports.mjs.map +1 -1
- package/dist/actions/exports.cjs +913 -1
- package/dist/actions/exports.cjs.map +1 -1
- package/dist/actions/exports.d.cts +95 -50
- package/dist/actions/exports.d.ts +95 -50
- package/dist/actions/exports.mjs +913 -1
- package/dist/actions/exports.mjs.map +1 -1
- package/dist/chunk-2R73G2PO.mjs +4698 -0
- package/dist/chunk-2R73G2PO.mjs.map +1 -0
- package/dist/chunk-3M47ZRXT.mjs +417 -0
- package/dist/{chunk-ESAVA5OD.mjs.map → chunk-3M47ZRXT.mjs.map} +1 -1
- package/dist/chunk-4GFN4LEP.mjs +97 -0
- package/dist/{chunk-5W7UKRHX.mjs.map → chunk-4GFN4LEP.mjs.map} +1 -1
- package/dist/chunk-5N7QQS55.cjs +130 -0
- package/dist/chunk-5N7QQS55.cjs.map +1 -0
- package/dist/chunk-5NMATIH4.mjs +130 -0
- package/dist/{chunk-SSPFPAWX.mjs.map → chunk-5NMATIH4.mjs.map} +1 -1
- package/dist/chunk-7QKRRIHI.mjs +1844 -0
- package/dist/{chunk-RSDCKN4Q.mjs.map → chunk-7QKRRIHI.mjs.map} +1 -1
- package/dist/chunk-7TFV6UKF.mjs +24 -0
- package/dist/{chunk-MK5NS5B5.mjs.map → chunk-7TFV6UKF.mjs.map} +1 -1
- package/dist/chunk-A4FPM7U3.cjs +63 -0
- package/dist/chunk-A4FPM7U3.cjs.map +1 -0
- package/dist/chunk-BDHINMWQ.cjs +417 -0
- package/dist/chunk-BDHINMWQ.cjs.map +1 -0
- package/dist/chunk-BEHP54S3.cjs +24 -0
- package/dist/chunk-BEHP54S3.cjs.map +1 -0
- package/dist/chunk-EGDXV2PT.cjs +36 -0
- package/dist/chunk-EGDXV2PT.cjs.map +1 -0
- package/dist/chunk-EWBKSMPG.cjs +13 -0
- package/dist/chunk-EWBKSMPG.cjs.map +1 -0
- package/dist/chunk-F6ZW7ZDD.cjs +403 -0
- package/dist/chunk-F6ZW7ZDD.cjs.map +1 -0
- package/dist/chunk-FTXTRUYT.cjs +170 -0
- package/dist/chunk-FTXTRUYT.cjs.map +1 -0
- package/dist/chunk-GLWPRM33.mjs +13 -0
- package/dist/{chunk-575OK77P.mjs.map → chunk-GLWPRM33.mjs.map} +1 -1
- package/dist/chunk-GWSTVITN.mjs +572 -0
- package/dist/{chunk-NLVWRMGD.mjs.map → chunk-GWSTVITN.mjs.map} +1 -1
- package/dist/chunk-H3Z37RYU.cjs +15 -0
- package/dist/chunk-H3Z37RYU.cjs.map +1 -0
- package/dist/chunk-I3FTWD6I.mjs +170 -0
- package/dist/{chunk-T5FSQ3YE.mjs.map → chunk-I3FTWD6I.mjs.map} +1 -1
- package/dist/chunk-JA4DHMTG.mjs +15 -0
- package/dist/{chunk-OGBD5YOG.mjs.map → chunk-JA4DHMTG.mjs.map} +1 -1
- package/dist/chunk-KL6YZ5VR.mjs +63 -0
- package/dist/{chunk-OGJMSGB2.mjs.map → chunk-KL6YZ5VR.mjs.map} +1 -1
- package/dist/chunk-MXWPP6MS.cjs +572 -0
- package/dist/chunk-MXWPP6MS.cjs.map +1 -0
- package/dist/chunk-SGZP4O6R.mjs +135 -0
- package/dist/{chunk-G4CNETLS.mjs.map → chunk-SGZP4O6R.mjs.map} +1 -1
- package/dist/chunk-TDW5SPXR.cjs +244 -0
- package/dist/chunk-TDW5SPXR.cjs.map +1 -0
- package/dist/chunk-TGK3IXDN.cjs +169 -0
- package/dist/chunk-TGK3IXDN.cjs.map +1 -0
- package/dist/chunk-TJEW6YCJ.cjs +97 -0
- package/dist/chunk-TJEW6YCJ.cjs.map +1 -0
- package/dist/chunk-VA3BQ34H.mjs +403 -0
- package/dist/{chunk-S5VOCVBR.mjs.map → chunk-VA3BQ34H.mjs.map} +1 -1
- package/dist/chunk-VA5L5FDG.mjs +36 -0
- package/dist/{chunk-3MZ7MLKF.mjs.map → chunk-VA5L5FDG.mjs.map} +1 -1
- package/dist/chunk-XSGCRLSD.cjs +1844 -0
- package/dist/chunk-XSGCRLSD.cjs.map +1 -0
- package/dist/chunk-XV3GG3HC.cjs +135 -0
- package/dist/chunk-XV3GG3HC.cjs.map +1 -0
- package/dist/chunk-Y5B224UX.cjs +4698 -0
- package/dist/chunk-Y5B224UX.cjs.map +1 -0
- package/dist/chunk-ZBTRKBSI.mjs +169 -0
- package/dist/{chunk-CWKDFUFR.mjs.map → chunk-ZBTRKBSI.mjs.map} +1 -1
- package/dist/chunk-ZCEFC2TK.mjs +244 -0
- package/dist/{chunk-NAXAZJJY.mjs.map → chunk-ZCEFC2TK.mjs.map} +1 -1
- package/dist/contexts/exports.cjs +82 -1
- package/dist/contexts/exports.cjs.map +1 -1
- package/dist/contexts/exports.mjs +82 -1
- package/dist/contexts/exports.mjs.map +1 -1
- package/dist/enum/exports.cjs +58 -1
- package/dist/enum/exports.cjs.map +1 -1
- package/dist/enum/exports.d.cts +1 -1
- package/dist/enum/exports.d.ts +1 -1
- package/dist/enum/exports.mjs +58 -1
- package/dist/enum/exports.mjs.map +1 -1
- package/dist/errors/exports.cjs +38 -1
- package/dist/errors/exports.cjs.map +1 -1
- package/dist/errors/exports.mjs +38 -1
- package/dist/{getValidatorQueuedOperatorAddress-DUZOmxLV.d.ts → getValidatorQueuedOperatorAddress-BcyxE9uw.d.ts} +2 -2
- package/dist/{getValidatorQueuedOperatorAddress-BQXkSFd9.d.cts → getValidatorQueuedOperatorAddress-Cql_D50j.d.cts} +2 -2
- package/dist/{global.d-SU9Epq0M.d.ts → global.d-5w_lvl2J.d.ts} +1 -1
- package/dist/{global.d-6aSWIkV_.d.cts → global.d-B7IeayVX.d.cts} +1 -1
- package/dist/hooks/exports.cjs +8332 -3
- package/dist/hooks/exports.cjs.map +1 -1
- package/dist/hooks/exports.d.cts +4 -4
- package/dist/hooks/exports.d.ts +4 -4
- package/dist/hooks/exports.mjs +8332 -3
- package/dist/hooks/exports.mjs.map +1 -1
- package/dist/{txnEnum-CCuQUFlh.d.cts → txnEnum-7_o92X3N.d.cts} +2 -0
- package/dist/{txnEnum-CCuQUFlh.d.ts → txnEnum-7_o92X3N.d.ts} +2 -0
- package/dist/types/exports.d.cts +2 -2
- package/dist/types/exports.d.ts +2 -2
- package/dist/utils/exports.cjs +786 -1
- package/dist/utils/exports.cjs.map +1 -1
- package/dist/utils/exports.mjs +786 -1
- package/dist/utils/exports.mjs.map +1 -1
- package/package.json +4 -4
- package/src/actions/clients/getApolloClient.ts +11 -4
- package/src/actions/dex/getOnChainPool.ts +1 -1
- package/src/actions/enso/getBendMultiplyBundle.ts +9 -2
- package/src/actions/enso/util.ts +6 -8
- package/src/actions/governance/checkProposalField.ts +108 -54
- package/src/actions/governance/computeActualStatus.ts +7 -3
- package/src/actions/governance/getAllProposals.ts +15 -8
- package/src/actions/governance/getBodyErrors.ts +13 -5
- package/src/actions/governance/getDecodedFunctionData.ts +27 -19
- package/src/actions/governance/getProposalDetails.ts +8 -4
- package/src/actions/governance/getProposalFromTx.ts +19 -10
- package/src/actions/governance/getProposalParams.ts +17 -17
- package/src/actions/governance/getProposalVotes.ts +7 -3
- package/src/actions/governance/getQuorum.ts +7 -7
- package/src/actions/governance/parseProposalBody.ts +19 -9
- package/src/actions/pol/getRewardVaultIncentives.ts +2 -2
- package/src/actions/tokens/getTokenInformation.ts +8 -15
- package/src/enum/txnEnum.ts +2 -0
- package/dist/chunk-3MZ7MLKF.mjs +0 -2
- package/dist/chunk-53TSJM6P.cjs +0 -2
- package/dist/chunk-53TSJM6P.cjs.map +0 -1
- package/dist/chunk-575OK77P.mjs +0 -2
- package/dist/chunk-5NDYN2IB.mjs +0 -4
- package/dist/chunk-5NDYN2IB.mjs.map +0 -1
- package/dist/chunk-5W7UKRHX.mjs +0 -2
- package/dist/chunk-7EAKCNQT.cjs +0 -2
- package/dist/chunk-7EAKCNQT.cjs.map +0 -1
- package/dist/chunk-CWKDFUFR.mjs +0 -2
- package/dist/chunk-DDEQFR3M.cjs +0 -2
- package/dist/chunk-DDEQFR3M.cjs.map +0 -1
- package/dist/chunk-DKY4QPWU.cjs +0 -2
- package/dist/chunk-DKY4QPWU.cjs.map +0 -1
- package/dist/chunk-DTBJO6VT.cjs +0 -2
- package/dist/chunk-DTBJO6VT.cjs.map +0 -1
- package/dist/chunk-E32UP4GV.cjs +0 -2
- package/dist/chunk-E32UP4GV.cjs.map +0 -1
- package/dist/chunk-ESAVA5OD.mjs +0 -2
- package/dist/chunk-G4CNETLS.mjs +0 -2
- package/dist/chunk-I7M43BB4.cjs +0 -2
- package/dist/chunk-I7M43BB4.cjs.map +0 -1
- package/dist/chunk-KT6L4K4K.cjs +0 -2
- package/dist/chunk-KT6L4K4K.cjs.map +0 -1
- package/dist/chunk-MK5NS5B5.mjs +0 -2
- package/dist/chunk-NAXAZJJY.mjs +0 -2
- package/dist/chunk-NLVWRMGD.mjs +0 -2
- package/dist/chunk-OGBD5YOG.mjs +0 -2
- package/dist/chunk-OGJMSGB2.mjs +0 -2
- package/dist/chunk-OIYXOKTT.cjs +0 -2
- package/dist/chunk-OIYXOKTT.cjs.map +0 -1
- package/dist/chunk-OUD27MU7.cjs +0 -2
- package/dist/chunk-OUD27MU7.cjs.map +0 -1
- package/dist/chunk-QFLDL4UV.cjs +0 -2
- package/dist/chunk-QFLDL4UV.cjs.map +0 -1
- package/dist/chunk-RSDCKN4Q.mjs +0 -2
- package/dist/chunk-RWOICHRW.cjs +0 -2
- package/dist/chunk-RWOICHRW.cjs.map +0 -1
- package/dist/chunk-S5VOCVBR.mjs +0 -2
- package/dist/chunk-SSPFPAWX.mjs +0 -2
- package/dist/chunk-T5FSQ3YE.mjs +0 -2
- package/dist/chunk-WD4B3SXS.cjs +0 -4
- package/dist/chunk-WD4B3SXS.cjs.map +0 -1
- package/dist/chunk-WRFDB3QJ.cjs +0 -2
- package/dist/chunk-WRFDB3QJ.cjs.map +0 -1
- package/dist/chunk-XNJLSA6P.cjs +0 -2
- package/dist/chunk-XNJLSA6P.cjs.map +0 -1
- package/dist/chunk-ZYXVUXFQ.cjs +0 -2
- package/dist/chunk-ZYXVUXFQ.cjs.map +0 -1
|
@@ -1,2 +1,83 @@
|
|
|
1
|
-
"use client";
|
|
1
|
+
"use client";
|
|
2
|
+
import {
|
|
3
|
+
BeraFlagsProvider,
|
|
4
|
+
BexStateContext,
|
|
5
|
+
BexStatusProvider,
|
|
6
|
+
BlockTimeContext,
|
|
7
|
+
BlockTimeProvider,
|
|
8
|
+
HoneyConfigContext,
|
|
9
|
+
HoneyConfigProvider,
|
|
10
|
+
TokenContext,
|
|
11
|
+
TokensProvider,
|
|
12
|
+
useBeraFlag,
|
|
13
|
+
useBeraFlags,
|
|
14
|
+
useBexStatus,
|
|
15
|
+
useBlockTime,
|
|
16
|
+
useHoneyConfig
|
|
17
|
+
} from "../chunk-VA3BQ34H.mjs";
|
|
18
|
+
import "../chunk-SGZP4O6R.mjs";
|
|
19
|
+
import "../chunk-ZCEFC2TK.mjs";
|
|
20
|
+
import "../chunk-GLWPRM33.mjs";
|
|
21
|
+
import {
|
|
22
|
+
BeraMonitoring
|
|
23
|
+
} from "../chunk-ZBTRKBSI.mjs";
|
|
24
|
+
import "../chunk-7TFV6UKF.mjs";
|
|
25
|
+
import "../chunk-4GFN4LEP.mjs";
|
|
26
|
+
import {
|
|
27
|
+
BeraError
|
|
28
|
+
} from "../chunk-7QKRRIHI.mjs";
|
|
29
|
+
|
|
30
|
+
// src/contexts/SwrFallback.tsx
|
|
31
|
+
import { useEffect } from "react";
|
|
32
|
+
import { SWRConfig } from "swr";
|
|
33
|
+
import { jsx } from "react/jsx-runtime";
|
|
34
|
+
function SWRFallback({
|
|
35
|
+
fallback,
|
|
36
|
+
children
|
|
37
|
+
}) {
|
|
38
|
+
useEffect(() => {
|
|
39
|
+
Object.entries(fallback).some(([key, value]) => {
|
|
40
|
+
if (!key) {
|
|
41
|
+
console.warn("SWRFallback", key, value);
|
|
42
|
+
BeraMonitoring.captureException(
|
|
43
|
+
new BeraError({
|
|
44
|
+
message: "Empty key in SWRFallback. This will lead to wrong query returns when key is null. Should be reported to SWR.",
|
|
45
|
+
level: "warning",
|
|
46
|
+
extra: {
|
|
47
|
+
key,
|
|
48
|
+
value
|
|
49
|
+
}
|
|
50
|
+
})
|
|
51
|
+
);
|
|
52
|
+
return true;
|
|
53
|
+
} else return false;
|
|
54
|
+
});
|
|
55
|
+
}, [fallback]);
|
|
56
|
+
return /* @__PURE__ */ jsx(
|
|
57
|
+
SWRConfig,
|
|
58
|
+
{
|
|
59
|
+
value: {
|
|
60
|
+
fallback
|
|
61
|
+
},
|
|
62
|
+
children
|
|
63
|
+
}
|
|
64
|
+
);
|
|
65
|
+
}
|
|
66
|
+
export {
|
|
67
|
+
BeraFlagsProvider,
|
|
68
|
+
BexStateContext,
|
|
69
|
+
BexStatusProvider,
|
|
70
|
+
BlockTimeContext,
|
|
71
|
+
BlockTimeProvider,
|
|
72
|
+
HoneyConfigContext,
|
|
73
|
+
HoneyConfigProvider,
|
|
74
|
+
SWRFallback,
|
|
75
|
+
TokenContext,
|
|
76
|
+
TokensProvider,
|
|
77
|
+
useBeraFlag,
|
|
78
|
+
useBeraFlags,
|
|
79
|
+
useBexStatus,
|
|
80
|
+
useBlockTime,
|
|
81
|
+
useHoneyConfig
|
|
82
|
+
};
|
|
2
83
|
//# sourceMappingURL=exports.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/contexts/SwrFallback.tsx"],"sourcesContent":["import type React from \"react\";\nimport { useEffect } from \"react\";\nimport { SWRConfig } from \"swr\";\n\nimport { BeraError } from \"../errors/BeraError\";\nimport { BeraMonitoring } from \"../errors/BeraMonitoring\";\n\nexport function SWRFallback({\n fallback,\n children,\n}: {\n fallback: Record<string, any>;\n children: React.ReactNode;\n}) {\n useEffect(() => {\n Object.entries(fallback).some(([key, value]) => {\n if (!key) {\n console.warn(\"SWRFallback\", key, value);\n BeraMonitoring.captureException(\n new BeraError({\n message:\n \"Empty key in SWRFallback. This will lead to wrong query returns when key is null. Should be reported to SWR.\",\n level: \"warning\",\n extra: {\n key,\n value,\n },\n }),\n );\n return true;\n } else return false;\n });\n }, [fallback]);\n\n return (\n <SWRConfig\n value={{\n fallback,\n }}\n >\n {children}\n </SWRConfig>\n );\n}\n"],"mappings":"
|
|
1
|
+
{"version":3,"sources":["../../src/contexts/SwrFallback.tsx"],"sourcesContent":["import type React from \"react\";\nimport { useEffect } from \"react\";\nimport { SWRConfig } from \"swr\";\n\nimport { BeraError } from \"../errors/BeraError\";\nimport { BeraMonitoring } from \"../errors/BeraMonitoring\";\n\nexport function SWRFallback({\n fallback,\n children,\n}: {\n fallback: Record<string, any>;\n children: React.ReactNode;\n}) {\n useEffect(() => {\n Object.entries(fallback).some(([key, value]) => {\n if (!key) {\n console.warn(\"SWRFallback\", key, value);\n BeraMonitoring.captureException(\n new BeraError({\n message:\n \"Empty key in SWRFallback. This will lead to wrong query returns when key is null. Should be reported to SWR.\",\n level: \"warning\",\n extra: {\n key,\n value,\n },\n }),\n );\n return true;\n } else return false;\n });\n }, [fallback]);\n\n return (\n <SWRConfig\n value={{\n fallback,\n }}\n >\n {children}\n </SWRConfig>\n );\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AACA,SAAS,iBAAiB;AAC1B,SAAS,iBAAiB;AAiCtB;AA5BG,SAAS,YAAY;AAAA,EAC1B;AAAA,EACA;AACF,GAGG;AACD,YAAU,MAAM;AACd,WAAO,QAAQ,QAAQ,EAAE,KAAK,CAAC,CAAC,KAAK,KAAK,MAAM;AAC9C,UAAI,CAAC,KAAK;AACR,gBAAQ,KAAK,eAAe,KAAK,KAAK;AACtC,uBAAe;AAAA,UACb,IAAI,UAAU;AAAA,YACZ,SACE;AAAA,YACF,OAAO;AAAA,YACP,OAAO;AAAA,cACL;AAAA,cACA;AAAA,YACF;AAAA,UACF,CAAC;AAAA,QACH;AACA,eAAO;AAAA,MACT,MAAO,QAAO;AAAA,IAChB,CAAC;AAAA,EACH,GAAG,CAAC,QAAQ,CAAC;AAEb,SACE;AAAA,IAAC;AAAA;AAAA,MACC,OAAO;AAAA,QACL;AAAA,MACF;AAAA,MAEC;AAAA;AAAA,EACH;AAEJ;","names":[]}
|
package/dist/enum/exports.cjs
CHANGED
|
@@ -1,2 +1,59 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
var _chunkFTXTRUYTcjs = require('../chunk-FTXTRUYT.cjs');
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
var _chunkA4FPM7U3cjs = require('../chunk-A4FPM7U3.cjs');
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
var _chunkEWBKSMPGcjs = require('../chunk-EWBKSMPG.cjs');
|
|
21
|
+
|
|
22
|
+
// src/enum/slippage.ts
|
|
23
|
+
var DEFAULT_SLIPPAGE = 0.5;
|
|
24
|
+
var SLIPPAGE_DEGEN_VALUE = 25;
|
|
25
|
+
var DEFAULT_DEADLINE = 60;
|
|
26
|
+
var SLIPPAGE_MODE = /* @__PURE__ */ ((SLIPPAGE_MODE2) => {
|
|
27
|
+
SLIPPAGE_MODE2["AUTO"] = "auto";
|
|
28
|
+
SLIPPAGE_MODE2["CUSTOM"] = "custom";
|
|
29
|
+
SLIPPAGE_MODE2["DEGEN"] = "degen";
|
|
30
|
+
return SLIPPAGE_MODE2;
|
|
31
|
+
})(SLIPPAGE_MODE || {});
|
|
32
|
+
var TRANSACTION_MODE = /* @__PURE__ */ ((TRANSACTION_MODE2) => {
|
|
33
|
+
TRANSACTION_MODE2["AUTO"] = "auto";
|
|
34
|
+
TRANSACTION_MODE2["CUSTOM"] = "custom";
|
|
35
|
+
TRANSACTION_MODE2["INFINITY"] = "infinity";
|
|
36
|
+
return TRANSACTION_MODE2;
|
|
37
|
+
})(TRANSACTION_MODE || {});
|
|
38
|
+
|
|
39
|
+
|
|
40
|
+
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
|
|
44
|
+
|
|
45
|
+
|
|
46
|
+
|
|
47
|
+
|
|
48
|
+
|
|
49
|
+
|
|
50
|
+
|
|
51
|
+
|
|
52
|
+
|
|
53
|
+
|
|
54
|
+
|
|
55
|
+
|
|
56
|
+
|
|
57
|
+
|
|
58
|
+
exports.Aggregators = _chunkFTXTRUYTcjs.Aggregators; exports.ContractName = _chunkFTXTRUYTcjs.ContractName; exports.DEFAULT_DEADLINE = DEFAULT_DEADLINE; exports.DEFAULT_SLIPPAGE = DEFAULT_SLIPPAGE; exports.HoneySwapAction = _chunkFTXTRUYTcjs.HoneySwapAction; exports.OwnershipType = _chunkFTXTRUYTcjs.OwnershipType; exports.POLLING = _chunkEWBKSMPGcjs.POLLING; exports.ParameterPreset = _chunkFTXTRUYTcjs.ParameterPreset; exports.PoolCreationStep = _chunkFTXTRUYTcjs.PoolCreationStep; exports.ProposalErrorCodes = _chunkA4FPM7U3cjs.ProposalErrorCodes; exports.ProposalState = _chunkA4FPM7U3cjs.ProposalState; exports.ProposalTypeEnum = _chunkA4FPM7U3cjs.ProposalTypeEnum; exports.SLIPPAGE_DEGEN_VALUE = SLIPPAGE_DEGEN_VALUE; exports.SLIPPAGE_MODE = SLIPPAGE_MODE; exports.SwapReferrer = _chunkFTXTRUYTcjs.SwapReferrer; exports.TRANSACTION_MODE = TRANSACTION_MODE; exports.TransactionActionType = _chunkFTXTRUYTcjs.TransactionActionType; exports.VoteColorMap = _chunkA4FPM7U3cjs.VoteColorMap; exports.VoteEnum = _chunkA4FPM7U3cjs.VoteEnum;
|
|
2
59
|
//# sourceMappingURL=exports.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["/Users/pong/coding/monobera/packages/berajs/dist/enum/exports.cjs","../../src/enum/slippage.ts"],"names":["
|
|
1
|
+
{"version":3,"sources":["/Users/pong/coding/monobera/packages/berajs/dist/enum/exports.cjs","../../src/enum/slippage.ts"],"names":["SLIPPAGE_MODE","TRANSACTION_MODE"],"mappings":"AAAA;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACF,yDAA8B;AAC9B;AACE;AACA;AACA;AACA;AACA;AACF,yDAA8B;AAC9B;AACE;AACF,yDAA8B;AAC9B;AACA;ACrBO,IAAM,iBAAA,EAAmB,GAAA;AACzB,IAAM,qBAAA,EAAuB,EAAA;AAK7B,IAAM,iBAAA,EAAmB,EAAA;AAEzB,IAAK,cAAA,kBAAL,CAAA,CAAKA,cAAAA,EAAAA,GAAL;AACL,EAAAA,cAAAA,CAAA,MAAA,EAAA,EAAO,MAAA;AACP,EAAAA,cAAAA,CAAA,QAAA,EAAA,EAAS,QAAA;AACT,EAAAA,cAAAA,CAAA,OAAA,EAAA,EAAQ,OAAA;AAHE,EAAA,OAAAA,cAAAA;AAAA,CAAA,CAAA,CAAA,cAAA,GAAA,CAAA,CAAA,CAAA;AAML,IAAK,iBAAA,kBAAL,CAAA,CAAKC,iBAAAA,EAAAA,GAAL;AACL,EAAAA,iBAAAA,CAAA,MAAA,EAAA,EAAO,MAAA;AACP,EAAAA,iBAAAA,CAAA,QAAA,EAAA,EAAS,QAAA;AACT,EAAAA,iBAAAA,CAAA,UAAA,EAAA,EAAW,UAAA;AAHD,EAAA,OAAAA,iBAAAA;AAAA,CAAA,CAAA,CAAA,iBAAA,GAAA,CAAA,CAAA,CAAA;ADuBZ;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACF,8gCAAC","file":"/Users/pong/coding/monobera/packages/berajs/dist/enum/exports.cjs","sourcesContent":[null,"export const DEFAULT_SLIPPAGE = 0.5 as const; // 2%\nexport const SLIPPAGE_DEGEN_VALUE = 25 as const; // 25%\n\n/**\n * Default\n */\nexport const DEFAULT_DEADLINE = 60 as const; // seconds\n\nexport enum SLIPPAGE_MODE {\n AUTO = \"auto\",\n CUSTOM = \"custom\",\n DEGEN = \"degen\",\n}\n\nexport enum TRANSACTION_MODE {\n AUTO = \"auto\",\n CUSTOM = \"custom\",\n INFINITY = \"infinity\",\n}\n"]}
|
package/dist/enum/exports.d.cts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { C as ContractName, P as ProposalErrorCodes, a as ProposalState, b as ProposalTypeEnum, T as TransactionActionType, V as VoteColorMap, c as VoteEnum } from '../txnEnum-
|
|
1
|
+
export { C as ContractName, P as ProposalErrorCodes, a as ProposalState, b as ProposalTypeEnum, T as TransactionActionType, V as VoteColorMap, c as VoteEnum } from '../txnEnum-7_o92X3N.cjs';
|
|
2
2
|
export { A as Aggregators, O as OwnershipType, P as ParameterPreset, a as PoolCreationStep, S as SwapReferrer } from '../dex-C_BB0b0O.cjs';
|
|
3
3
|
export { H as HoneySwapAction } from '../honey-CYm0RWf4.cjs';
|
|
4
4
|
export { P as POLLING } from '../polling-BKnyavLI.cjs';
|
package/dist/enum/exports.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { C as ContractName, P as ProposalErrorCodes, a as ProposalState, b as ProposalTypeEnum, T as TransactionActionType, V as VoteColorMap, c as VoteEnum } from '../txnEnum-
|
|
1
|
+
export { C as ContractName, P as ProposalErrorCodes, a as ProposalState, b as ProposalTypeEnum, T as TransactionActionType, V as VoteColorMap, c as VoteEnum } from '../txnEnum-7_o92X3N.js';
|
|
2
2
|
export { A as Aggregators, O as OwnershipType, P as ParameterPreset, a as PoolCreationStep, S as SwapReferrer } from '../dex-C_BB0b0O.js';
|
|
3
3
|
export { H as HoneySwapAction } from '../honey-CYm0RWf4.js';
|
|
4
4
|
export { P as POLLING } from '../polling-BKnyavLI.js';
|
package/dist/enum/exports.mjs
CHANGED
|
@@ -1,2 +1,59 @@
|
|
|
1
|
-
import
|
|
1
|
+
import {
|
|
2
|
+
Aggregators,
|
|
3
|
+
ContractName,
|
|
4
|
+
HoneySwapAction,
|
|
5
|
+
OwnershipType,
|
|
6
|
+
ParameterPreset,
|
|
7
|
+
PoolCreationStep,
|
|
8
|
+
SwapReferrer,
|
|
9
|
+
TransactionActionType
|
|
10
|
+
} from "../chunk-I3FTWD6I.mjs";
|
|
11
|
+
import {
|
|
12
|
+
ProposalErrorCodes,
|
|
13
|
+
ProposalState,
|
|
14
|
+
ProposalTypeEnum,
|
|
15
|
+
VoteColorMap,
|
|
16
|
+
VoteEnum
|
|
17
|
+
} from "../chunk-KL6YZ5VR.mjs";
|
|
18
|
+
import {
|
|
19
|
+
POLLING
|
|
20
|
+
} from "../chunk-GLWPRM33.mjs";
|
|
21
|
+
|
|
22
|
+
// src/enum/slippage.ts
|
|
23
|
+
var DEFAULT_SLIPPAGE = 0.5;
|
|
24
|
+
var SLIPPAGE_DEGEN_VALUE = 25;
|
|
25
|
+
var DEFAULT_DEADLINE = 60;
|
|
26
|
+
var SLIPPAGE_MODE = /* @__PURE__ */ ((SLIPPAGE_MODE2) => {
|
|
27
|
+
SLIPPAGE_MODE2["AUTO"] = "auto";
|
|
28
|
+
SLIPPAGE_MODE2["CUSTOM"] = "custom";
|
|
29
|
+
SLIPPAGE_MODE2["DEGEN"] = "degen";
|
|
30
|
+
return SLIPPAGE_MODE2;
|
|
31
|
+
})(SLIPPAGE_MODE || {});
|
|
32
|
+
var TRANSACTION_MODE = /* @__PURE__ */ ((TRANSACTION_MODE2) => {
|
|
33
|
+
TRANSACTION_MODE2["AUTO"] = "auto";
|
|
34
|
+
TRANSACTION_MODE2["CUSTOM"] = "custom";
|
|
35
|
+
TRANSACTION_MODE2["INFINITY"] = "infinity";
|
|
36
|
+
return TRANSACTION_MODE2;
|
|
37
|
+
})(TRANSACTION_MODE || {});
|
|
38
|
+
export {
|
|
39
|
+
Aggregators,
|
|
40
|
+
ContractName,
|
|
41
|
+
DEFAULT_DEADLINE,
|
|
42
|
+
DEFAULT_SLIPPAGE,
|
|
43
|
+
HoneySwapAction,
|
|
44
|
+
OwnershipType,
|
|
45
|
+
POLLING,
|
|
46
|
+
ParameterPreset,
|
|
47
|
+
PoolCreationStep,
|
|
48
|
+
ProposalErrorCodes,
|
|
49
|
+
ProposalState,
|
|
50
|
+
ProposalTypeEnum,
|
|
51
|
+
SLIPPAGE_DEGEN_VALUE,
|
|
52
|
+
SLIPPAGE_MODE,
|
|
53
|
+
SwapReferrer,
|
|
54
|
+
TRANSACTION_MODE,
|
|
55
|
+
TransactionActionType,
|
|
56
|
+
VoteColorMap,
|
|
57
|
+
VoteEnum
|
|
58
|
+
};
|
|
2
59
|
//# sourceMappingURL=exports.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/enum/slippage.ts"],"sourcesContent":["export const DEFAULT_SLIPPAGE = 0.5 as const; // 2%\nexport const SLIPPAGE_DEGEN_VALUE = 25 as const; // 25%\n\n/**\n * Default\n */\nexport const DEFAULT_DEADLINE = 60 as const; // seconds\n\nexport enum SLIPPAGE_MODE {\n AUTO = \"auto\",\n CUSTOM = \"custom\",\n DEGEN = \"degen\",\n}\n\nexport enum TRANSACTION_MODE {\n AUTO = \"auto\",\n CUSTOM = \"custom\",\n INFINITY = \"infinity\",\n}\n"],"mappings":"
|
|
1
|
+
{"version":3,"sources":["../../src/enum/slippage.ts"],"sourcesContent":["export const DEFAULT_SLIPPAGE = 0.5 as const; // 2%\nexport const SLIPPAGE_DEGEN_VALUE = 25 as const; // 25%\n\n/**\n * Default\n */\nexport const DEFAULT_DEADLINE = 60 as const; // seconds\n\nexport enum SLIPPAGE_MODE {\n AUTO = \"auto\",\n CUSTOM = \"custom\",\n DEGEN = \"degen\",\n}\n\nexport enum TRANSACTION_MODE {\n AUTO = \"auto\",\n CUSTOM = \"custom\",\n INFINITY = \"infinity\",\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;AAAO,IAAM,mBAAmB;AACzB,IAAM,uBAAuB;AAK7B,IAAM,mBAAmB;AAEzB,IAAK,gBAAL,kBAAKA,mBAAL;AACL,EAAAA,eAAA,UAAO;AACP,EAAAA,eAAA,YAAS;AACT,EAAAA,eAAA,WAAQ;AAHE,SAAAA;AAAA,GAAA;AAML,IAAK,mBAAL,kBAAKC,sBAAL;AACL,EAAAA,kBAAA,UAAO;AACP,EAAAA,kBAAA,YAAS;AACT,EAAAA,kBAAA,cAAW;AAHD,SAAAA;AAAA,GAAA;","names":["SLIPPAGE_MODE","TRANSACTION_MODE"]}
|
package/dist/errors/exports.cjs
CHANGED
|
@@ -1,2 +1,39 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
var _chunk5N7QQS55cjs = require('../chunk-5N7QQS55.cjs');
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
var _chunkTGK3IXDNcjs = require('../chunk-TGK3IXDN.cjs');
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
var _chunkXSGCRLSDcjs = require('../chunk-XSGCRLSD.cjs');
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
exports.BeraError = _chunkXSGCRLSDcjs.BeraError; exports.BeraMonitoring = _chunkTGK3IXDNcjs.BeraMonitoring; exports.BeraTracing = _chunk5N7QQS55cjs.BeraTracing; exports.InvalidArgumentError = _chunkXSGCRLSDcjs.InvalidArgumentError; exports.NotFoundError = _chunk5N7QQS55cjs.NotFoundError; exports.RequestError = _chunkXSGCRLSDcjs.RequestError; exports.TransactionFailedError = _chunk5N7QQS55cjs.TransactionFailedError; exports.assertAddress = _chunkTGK3IXDNcjs.assertAddress; exports.assertAmount = _chunkTGK3IXDNcjs.assertAmount; exports.assertDefined = _chunkTGK3IXDNcjs.assertDefined; exports.assertPositive = _chunkTGK3IXDNcjs.assertPositive; exports.assertPublicClient = _chunkTGK3IXDNcjs.assertPublicClient; exports.findMatchingError = _chunkXSGCRLSDcjs.findMatchingError; exports.getErrorMessage = _chunkXSGCRLSDcjs.getErrorMessage; exports.initBeraError = _chunkTGK3IXDNcjs.initBeraError;
|
|
2
39
|
//# sourceMappingURL=exports.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["/Users/pong/coding/monobera/packages/berajs/dist/errors/exports.cjs"],"names":[],"mappings":"AAAA,
|
|
1
|
+
{"version":3,"sources":["/Users/pong/coding/monobera/packages/berajs/dist/errors/exports.cjs"],"names":[],"mappings":"AAAA;AACE;AACA;AACA;AACF,yDAA8B;AAC9B;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACF,yDAA8B;AAC9B;AACE;AACA;AACA;AACA;AACA;AACF,yDAA8B;AAC9B;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACF,g4BAAC","file":"/Users/pong/coding/monobera/packages/berajs/dist/errors/exports.cjs"}
|
package/dist/errors/exports.mjs
CHANGED
|
@@ -1,2 +1,39 @@
|
|
|
1
|
-
import
|
|
1
|
+
import {
|
|
2
|
+
BeraTracing,
|
|
3
|
+
NotFoundError,
|
|
4
|
+
TransactionFailedError
|
|
5
|
+
} from "../chunk-5NMATIH4.mjs";
|
|
6
|
+
import {
|
|
7
|
+
BeraMonitoring,
|
|
8
|
+
assertAddress,
|
|
9
|
+
assertAmount,
|
|
10
|
+
assertDefined,
|
|
11
|
+
assertPositive,
|
|
12
|
+
assertPublicClient,
|
|
13
|
+
initBeraError
|
|
14
|
+
} from "../chunk-ZBTRKBSI.mjs";
|
|
15
|
+
import {
|
|
16
|
+
BeraError,
|
|
17
|
+
InvalidArgumentError,
|
|
18
|
+
RequestError,
|
|
19
|
+
findMatchingError,
|
|
20
|
+
getErrorMessage
|
|
21
|
+
} from "../chunk-7QKRRIHI.mjs";
|
|
22
|
+
export {
|
|
23
|
+
BeraError,
|
|
24
|
+
BeraMonitoring,
|
|
25
|
+
BeraTracing,
|
|
26
|
+
InvalidArgumentError,
|
|
27
|
+
NotFoundError,
|
|
28
|
+
RequestError,
|
|
29
|
+
TransactionFailedError,
|
|
30
|
+
assertAddress,
|
|
31
|
+
assertAmount,
|
|
32
|
+
assertDefined,
|
|
33
|
+
assertPositive,
|
|
34
|
+
assertPublicClient,
|
|
35
|
+
findMatchingError,
|
|
36
|
+
getErrorMessage,
|
|
37
|
+
initBeraError
|
|
38
|
+
};
|
|
2
39
|
//# sourceMappingURL=exports.mjs.map
|
|
@@ -3,7 +3,7 @@ import { BeraConfig, ChainId } from '@berachain/config/internal';
|
|
|
3
3
|
import { I as IAggregatorArgs, g as IRawAggregatorQuote, b as Token, d as HoneyConfigContextReturn, B as BalanceToken, P as PythLatestUpdates } from './HoneyConfigProvider-DVP_9KZn.js';
|
|
4
4
|
import { A as Aggregators } from './dex-C_BB0b0O.js';
|
|
5
5
|
import { GqlPoolType, GlobalDataQuery, ApiVaultFragment, GetVaultsQueryVariables, GqlChain, GetVaultHistoryQueryVariables, GetVaultHistoryQuery, ApiValidatorInListFragment } from '@berachain/graphql/pol/api';
|
|
6
|
-
import { P as ProtocolMetadata } from './global.d-
|
|
6
|
+
import { P as ProtocolMetadata } from './global.d-5w_lvl2J.js';
|
|
7
7
|
|
|
8
8
|
interface GetConvertToAssetsProps {
|
|
9
9
|
sharesAmount: bigint;
|
|
@@ -131,7 +131,7 @@ interface OnChainPool {
|
|
|
131
131
|
swapFee: string;
|
|
132
132
|
decimals: number;
|
|
133
133
|
weights: readonly string[] | undefined;
|
|
134
|
-
version:
|
|
134
|
+
version: unknown;
|
|
135
135
|
factory: Address;
|
|
136
136
|
type: GqlPoolType;
|
|
137
137
|
/**
|
|
@@ -3,7 +3,7 @@ import { BeraConfig, ChainId } from '@berachain/config/internal';
|
|
|
3
3
|
import { I as IAggregatorArgs, g as IRawAggregatorQuote, b as Token, d as HoneyConfigContextReturn, B as BalanceToken, P as PythLatestUpdates } from './HoneyConfigProvider-DfkjmzEf.cjs';
|
|
4
4
|
import { A as Aggregators } from './dex-C_BB0b0O.cjs';
|
|
5
5
|
import { GqlPoolType, GlobalDataQuery, ApiVaultFragment, GetVaultsQueryVariables, GqlChain, GetVaultHistoryQueryVariables, GetVaultHistoryQuery, ApiValidatorInListFragment } from '@berachain/graphql/pol/api';
|
|
6
|
-
import { P as ProtocolMetadata } from './global.d-
|
|
6
|
+
import { P as ProtocolMetadata } from './global.d-B7IeayVX.cjs';
|
|
7
7
|
|
|
8
8
|
interface GetConvertToAssetsProps {
|
|
9
9
|
sharesAmount: bigint;
|
|
@@ -131,7 +131,7 @@ interface OnChainPool {
|
|
|
131
131
|
swapFee: string;
|
|
132
132
|
decimals: number;
|
|
133
133
|
weights: readonly string[] | undefined;
|
|
134
|
-
version:
|
|
134
|
+
version: unknown;
|
|
135
135
|
factory: Address;
|
|
136
136
|
type: GqlPoolType;
|
|
137
137
|
/**
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Address, Hex, AbiFunction, Abi, ContractFunctionName, ContractFunctionArgs, TransactionReceipt, WalletCallReceipt, Account } from 'viem';
|
|
2
2
|
import { ProposalWithVotesFragment, ProposalVoteFragment } from '@berachain/graphql/governance';
|
|
3
|
-
import { b as ProposalTypeEnum, P as ProposalErrorCodes, T as TransactionActionType, C as ContractName } from './txnEnum-
|
|
3
|
+
import { b as ProposalTypeEnum, P as ProposalErrorCodes, T as TransactionActionType, C as ContractName } from './txnEnum-7_o92X3N.js';
|
|
4
4
|
import { a as TokenWithMetadata, b as Token } from './HoneyConfigProvider-DVP_9KZn.js';
|
|
5
5
|
import { ApiValidatorFragment } from '@berachain/graphql/pol/api';
|
|
6
6
|
import { Config, GetWalletClientReturnType } from '@wagmi/core';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Address, Hex, AbiFunction, Abi, ContractFunctionName, ContractFunctionArgs, TransactionReceipt, WalletCallReceipt, Account } from 'viem';
|
|
2
2
|
import { ProposalWithVotesFragment, ProposalVoteFragment } from '@berachain/graphql/governance';
|
|
3
|
-
import { b as ProposalTypeEnum, P as ProposalErrorCodes, T as TransactionActionType, C as ContractName } from './txnEnum-
|
|
3
|
+
import { b as ProposalTypeEnum, P as ProposalErrorCodes, T as TransactionActionType, C as ContractName } from './txnEnum-7_o92X3N.cjs';
|
|
4
4
|
import { a as TokenWithMetadata, b as Token } from './HoneyConfigProvider-DfkjmzEf.cjs';
|
|
5
5
|
import { ApiValidatorFragment } from '@berachain/graphql/pol/api';
|
|
6
6
|
import { Config, GetWalletClientReturnType } from '@wagmi/core';
|