@berachain/berajs 0.2.8-beta.8 → 0.2.9
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/{BeraError-_mQdkanr.d.cts → BeraError-7-A5JYy_.d.ts} +31 -2
- package/dist/{HoneyConfigProvider-DVP_9KZn.d.ts → HoneyConfigProvider-Dkj-_a5x.d.ts} +1 -1
- package/dist/RequestError-DBOIV65x.d.ts +144 -0
- package/dist/abi/exports.mjs +3 -4
- package/dist/actions/clients/exports.d.ts +2 -0
- package/dist/actions/clients/exports.mjs +12 -0
- package/dist/actions/exports.d.ts +108 -187
- package/dist/actions/exports.mjs +97 -158
- package/dist/actions/governance/exports.d.ts +140 -0
- package/dist/actions/governance/exports.mjs +226 -0
- package/dist/actions/server/exports.d.ts +13 -0
- package/dist/actions/server/exports.mjs +27 -0
- package/dist/{chunk-VA3BQ34H.mjs → chunk-3EARVV7K.mjs} +20 -9
- package/dist/chunk-4Z4AK6SH.mjs +211 -0
- package/dist/chunk-75M6TF7M.mjs +25 -0
- package/dist/chunk-AFN4CVD3.mjs +326 -0
- package/dist/{chunk-7TFV6UKF.mjs → chunk-BGMRHTBQ.mjs} +0 -1
- package/dist/{chunk-3M47ZRXT.mjs → chunk-CDFWPU2R.mjs} +73 -17
- package/dist/{chunk-GWSTVITN.mjs → chunk-CDK4YV3D.mjs} +0 -1
- package/dist/{chunk-KL6YZ5VR.mjs → chunk-DKMAIU74.mjs} +0 -1
- package/dist/chunk-EXIUPSFN.mjs +86 -0
- package/dist/{chunk-VA5L5FDG.mjs → chunk-FFB5LFDW.mjs} +2 -3
- package/dist/{chunk-ZCEFC2TK.mjs → chunk-HQCOU6GY.mjs} +0 -1
- package/dist/{chunk-SGZP4O6R.mjs → chunk-HSSJKHZ4.mjs} +11 -11
- package/dist/{chunk-7QKRRIHI.mjs → chunk-J5I45WGQ.mjs} +77 -152
- package/dist/chunk-KQUMKB66.mjs +89 -0
- package/dist/{chunk-JA4DHMTG.mjs → chunk-NBYLMO2L.mjs} +0 -1
- package/dist/{chunk-4GFN4LEP.mjs → chunk-NPBQLVL3.mjs} +4 -21
- package/dist/{chunk-I3FTWD6I.mjs → chunk-O2NQFKJK.mjs} +1 -1
- package/dist/{chunk-2R73G2PO.mjs → chunk-QJIXTYTZ.mjs} +121 -765
- package/dist/{chunk-GLWPRM33.mjs → chunk-SGIJVHZO.mjs} +0 -1
- package/dist/chunk-SZ5C44L5.mjs +35 -0
- package/dist/{chunk-5NMATIH4.mjs → chunk-WXXOISTU.mjs} +1 -35
- package/dist/chunk-XIYN6AL6.mjs +160 -0
- package/dist/contexts/exports.d.ts +2 -2
- package/dist/contexts/exports.mjs +11 -9
- package/dist/enum/exports.d.ts +1 -1
- package/dist/enum/exports.mjs +3 -16
- package/dist/enum/governance/exports.d.ts +60 -0
- package/dist/enum/governance/exports.mjs +14 -0
- package/dist/errors/exports.d.ts +5 -90
- package/dist/errors/exports.mjs +19 -10
- package/dist/exports-BcUTGFUb.d.ts +40 -0
- package/dist/{getValidatorQueuedOperatorAddress-BcyxE9uw.d.ts → getValidatorQueuedOperatorAddress-Dw5KN5sh.d.ts} +2 -2
- package/dist/{global.d-5w_lvl2J.d.ts → global.d-BuGDKh4k.d.ts} +4 -240
- package/dist/hooks/exports.d.ts +80 -236
- package/dist/hooks/exports.mjs +609 -1508
- package/dist/hooks/governance/exports.d.ts +181 -0
- package/dist/hooks/governance/exports.mjs +888 -0
- package/dist/pol.d-CqPA9K6m.d.ts +142 -0
- package/dist/{txnEnum-7_o92X3N.d.cts → txnEnum-ByI5dtDi.d.ts} +2 -60
- package/dist/types/exports.d.ts +9 -9
- package/dist/types/exports.mjs +0 -1
- package/dist/types/governance/exports.d.ts +109 -0
- package/dist/types/governance/exports.mjs +0 -0
- package/dist/{useHoneySwapState-B494PQDl.d.ts → useHoneySwapState-vFmuFF0g.d.ts} +1 -1
- package/dist/utils/exports.d.ts +24 -7
- package/dist/utils/exports.mjs +49 -11
- package/package.json +60 -13
- package/src/actions/__test/transports.ts +61 -0
- package/src/actions/clients/BeraApolloClient.ts +9 -0
- package/src/actions/clients/exports.ts +4 -0
- package/src/actions/clients/getApolloClient.ts +70 -25
- package/src/actions/clients/getEnsoClient.ts +20 -9
- package/src/actions/dex/aggregators/base.ts +1 -1
- package/src/actions/dex/aggregators/enso/enso.ts +27 -17
- package/src/actions/dex/aggregators/enso/ensoErc4626.ts +2 -2
- package/src/actions/dex/aggregators/kyberswap.ts +18 -23
- package/src/actions/enso/__tests__/getEnsoUserTokensWithBalances.debug.test.ts +3 -6
- package/src/actions/exports.ts +5 -10
- package/src/actions/governance/exports.ts +9 -0
- package/src/actions/governance/getAllProposals.ts +10 -65
- package/src/actions/governance/getProposalDetails.ts +6 -33
- package/src/actions/governance/getProposalVotes.ts +8 -15
- package/src/actions/honey/getChartData.ts +27 -21
- package/src/actions/honey/getHoney24hVolume.ts +27 -0
- package/src/actions/pol/getAutoclaimedIncentives.ts +30 -0
- package/src/actions/pol/getBeraTokenTotalSupply.ts +45 -0
- package/src/actions/pol/getBgtIncentiveDistributorPaused.ts +35 -0
- package/src/actions/pol/getEarnedStakedBeraVault.ts +15 -9
- package/src/actions/pol/getGlobalData.ts +1 -0
- package/src/actions/pol/getHeroEarnVaults.ts +62 -0
- package/src/actions/pol/getIncentiveFeeClaimStats.ts +19 -38
- package/src/actions/pol/getSWBeraVaultMetadata.ts +1 -1
- package/src/actions/pol/getStakingDailyAssets.ts +11 -8
- package/src/actions/server/exports.ts +1 -0
- package/src/actions/server/getDailyValidatorBlockStats.ts +33 -0
- package/src/actions/tokens/getWalletBalances.integration.test.ts +3 -6
- package/src/actions/transactions/beraWriteContract.integration.test.ts +3 -6
- package/src/actions/validators/getDailyValidatorBlockStats.ts +25 -24
- package/src/actions/validators/getValidatorAnalytics.ts +20 -21
- package/src/actions/validators/getValidatorIncentiveDistribution.ts +33 -0
- package/src/data/contracts.ts +5 -0
- package/src/enum/contracts.ts +1 -0
- package/src/enum/exports.ts +0 -1
- package/src/enum/governance/exports.ts +1 -0
- package/src/errors/BeraError.ts +47 -7
- package/src/errors/BeraTracing.unit.test.ts +65 -0
- package/src/errors/RequestError.ts +15 -2
- package/src/errors/exports.ts +5 -0
- package/src/errors/getRevertReason.integration.test.ts +3 -3
- package/src/errors/spanStatus.ts +78 -0
- package/src/errors/spanStatus.unit.test.ts +62 -0
- package/src/hooks/dex/useCreatePool.ts +1 -88
- package/src/hooks/dex/useOnChainPoolData.ts +27 -2
- package/src/hooks/dex/usePriceImpact.ts +12 -5
- package/src/hooks/enso/useBendDemultiply.ts +9 -1
- package/src/hooks/enso/useBendMultiply.ts +9 -1
- package/src/hooks/enso/useBendZapSupply.ts +26 -7
- package/src/hooks/enso/useEnsoSwapBundle.ts +17 -3
- package/src/hooks/enso/useEnsoUserTokensWithBalances.ts +13 -2
- package/src/hooks/exports.ts +3 -16
- package/src/hooks/governance/exports.ts +14 -0
- package/src/hooks/honey/useHoney24hVolume.ts +16 -0
- package/src/hooks/pol/useAutoclaimedIncentives.ts +49 -0
- package/src/hooks/pol/useStakedAPR.ts +2 -2
- package/src/hooks/pol/useStakedSnapshots.ts +5 -9
- package/src/hooks/validators/useValidator.ts +2 -0
- package/src/hooks/validators/useValidatorIncentiveDistribution.ts +39 -0
- package/src/types/bribe-boost.d.ts +8 -0
- package/src/types/exports.ts +0 -1
- package/src/types/governance/exports.ts +1 -0
- package/src/utils/beraFetch.ts +76 -15
- package/src/utils/exports.ts +1 -0
- package/src/utils/getServerSideClient.ts +4 -2
- package/src/utils/sanitizeRpcUrl.ts +22 -0
- package/src/utils/tracedTransport.ts +35 -0
- package/dist/BeraError-_mQdkanr.d.ts +0 -94
- package/dist/BexStatusProvider-DRymVlQf.d.cts +0 -70
- package/dist/HoneyConfigProvider-DfkjmzEf.d.cts +0 -390
- package/dist/RequestError-A8XJ6QR9.d.cts +0 -57
- package/dist/RequestError-Dk97z8rm.d.ts +0 -57
- package/dist/abi/exports.cjs +0 -4453
- package/dist/abi/exports.cjs.map +0 -1
- package/dist/abi/exports.d.cts +0 -6574
- package/dist/abi/exports.mjs.map +0 -1
- package/dist/actions/exports.cjs +0 -914
- package/dist/actions/exports.cjs.map +0 -1
- package/dist/actions/exports.d.cts +0 -1644
- package/dist/actions/exports.mjs.map +0 -1
- package/dist/chunk-2R73G2PO.mjs.map +0 -1
- package/dist/chunk-3M47ZRXT.mjs.map +0 -1
- package/dist/chunk-4GFN4LEP.mjs.map +0 -1
- package/dist/chunk-5N7QQS55.cjs +0 -130
- package/dist/chunk-5N7QQS55.cjs.map +0 -1
- package/dist/chunk-5NMATIH4.mjs.map +0 -1
- package/dist/chunk-7QKRRIHI.mjs.map +0 -1
- package/dist/chunk-7TFV6UKF.mjs.map +0 -1
- package/dist/chunk-A4FPM7U3.cjs +0 -63
- package/dist/chunk-A4FPM7U3.cjs.map +0 -1
- package/dist/chunk-BDHINMWQ.cjs +0 -417
- package/dist/chunk-BDHINMWQ.cjs.map +0 -1
- package/dist/chunk-BEHP54S3.cjs +0 -24
- package/dist/chunk-BEHP54S3.cjs.map +0 -1
- package/dist/chunk-EGDXV2PT.cjs +0 -36
- package/dist/chunk-EGDXV2PT.cjs.map +0 -1
- package/dist/chunk-EWBKSMPG.cjs +0 -13
- package/dist/chunk-EWBKSMPG.cjs.map +0 -1
- package/dist/chunk-F6ZW7ZDD.cjs +0 -403
- package/dist/chunk-F6ZW7ZDD.cjs.map +0 -1
- package/dist/chunk-FTXTRUYT.cjs +0 -170
- package/dist/chunk-FTXTRUYT.cjs.map +0 -1
- package/dist/chunk-GLWPRM33.mjs.map +0 -1
- package/dist/chunk-GWSTVITN.mjs.map +0 -1
- package/dist/chunk-H3Z37RYU.cjs +0 -15
- package/dist/chunk-H3Z37RYU.cjs.map +0 -1
- package/dist/chunk-I3FTWD6I.mjs.map +0 -1
- package/dist/chunk-JA4DHMTG.mjs.map +0 -1
- package/dist/chunk-KL6YZ5VR.mjs.map +0 -1
- package/dist/chunk-MXWPP6MS.cjs +0 -572
- package/dist/chunk-MXWPP6MS.cjs.map +0 -1
- package/dist/chunk-SGZP4O6R.mjs.map +0 -1
- package/dist/chunk-TDW5SPXR.cjs +0 -244
- package/dist/chunk-TDW5SPXR.cjs.map +0 -1
- package/dist/chunk-TGK3IXDN.cjs +0 -169
- package/dist/chunk-TGK3IXDN.cjs.map +0 -1
- package/dist/chunk-TJEW6YCJ.cjs +0 -97
- package/dist/chunk-TJEW6YCJ.cjs.map +0 -1
- package/dist/chunk-VA3BQ34H.mjs.map +0 -1
- package/dist/chunk-VA5L5FDG.mjs.map +0 -1
- package/dist/chunk-XSGCRLSD.cjs +0 -1844
- package/dist/chunk-XSGCRLSD.cjs.map +0 -1
- package/dist/chunk-XV3GG3HC.cjs +0 -135
- package/dist/chunk-XV3GG3HC.cjs.map +0 -1
- package/dist/chunk-Y5B224UX.cjs +0 -4698
- package/dist/chunk-Y5B224UX.cjs.map +0 -1
- package/dist/chunk-ZBTRKBSI.mjs +0 -169
- package/dist/chunk-ZBTRKBSI.mjs.map +0 -1
- package/dist/chunk-ZCEFC2TK.mjs.map +0 -1
- package/dist/contexts/exports.cjs +0 -83
- package/dist/contexts/exports.cjs.map +0 -1
- package/dist/contexts/exports.d.cts +0 -66
- package/dist/contexts/exports.mjs.map +0 -1
- package/dist/defaultFlags-D6KfkTZx.d.cts +0 -10
- package/dist/dex-C_BB0b0O.d.cts +0 -37
- package/dist/enum/exports.cjs +0 -59
- package/dist/enum/exports.cjs.map +0 -1
- package/dist/enum/exports.d.cts +0 -23
- package/dist/enum/exports.mjs.map +0 -1
- package/dist/errors/exports.cjs +0 -39
- package/dist/errors/exports.cjs.map +0 -1
- package/dist/errors/exports.d.cts +0 -413
- package/dist/errors/exports.mjs.map +0 -1
- package/dist/getValidatorQueuedOperatorAddress-Cql_D50j.d.cts +0 -562
- package/dist/global.d-B7IeayVX.d.cts +0 -474
- package/dist/honey-CYm0RWf4.d.cts +0 -14
- package/dist/hooks/exports.cjs +0 -8333
- package/dist/hooks/exports.cjs.map +0 -1
- package/dist/hooks/exports.d.cts +0 -1748
- package/dist/hooks/exports.mjs.map +0 -1
- package/dist/polling-BKnyavLI.d.cts +0 -8
- package/dist/txnEnum-7_o92X3N.d.ts +0 -164
- package/dist/types/exports.cjs +0 -1
- package/dist/types/exports.cjs.map +0 -1
- package/dist/types/exports.d.cts +0 -90
- package/dist/types/exports.mjs.map +0 -1
- package/dist/useHoneySwapState-D6vpv19r.d.cts +0 -32
- package/dist/utils/exports.cjs +0 -787
- package/dist/utils/exports.cjs.map +0 -1
- package/dist/utils/exports.d.cts +0 -412
- package/dist/utils/exports.mjs.map +0 -1
- package/src/actions/dex/getIsTokenExploited.ts +0 -63
- package/src/actions/honey/getHoneyGlobalData.ts +0 -21
- package/src/hooks/dex/useExploitedTokens.ts +0 -57
- package/src/hooks/honey/useHoneyGlobalData.ts +0 -23
|
@@ -1,164 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Maps the proposal state from the governor contract to a more human-readable format.
|
|
3
|
-
* Don't edit this enum manually, it's synced with the governor contract.
|
|
4
|
-
*
|
|
5
|
-
* @see https://github.com/OpenZeppelin/openzeppelin-contracts/blob/master/contracts/governance/IGovernor.sol
|
|
6
|
-
*/
|
|
7
|
-
declare enum ProposalState {
|
|
8
|
-
Pending = 0,
|
|
9
|
-
Active = 1,
|
|
10
|
-
Canceled = 2,
|
|
11
|
-
Defeated = 3,
|
|
12
|
-
Succeeded = 4,
|
|
13
|
-
Queued = 5,
|
|
14
|
-
Expired = 6,
|
|
15
|
-
Executed = 7
|
|
16
|
-
}
|
|
17
|
-
declare enum VoteEnum {
|
|
18
|
-
AGAINST = "no",
|
|
19
|
-
FOR = "yes",
|
|
20
|
-
ABSTAIN = "abstain"
|
|
21
|
-
}
|
|
22
|
-
declare enum ProposalErrorCodes {
|
|
23
|
-
REQUIRED = "Required",
|
|
24
|
-
INVALID_AMOUNT = "Invalid amount",
|
|
25
|
-
NEGATIVE_AMOUNT = "Negative amount",
|
|
26
|
-
INVALID_ADDRESS = "Invalid address",
|
|
27
|
-
INVALID_ACTION = "Invalid action",
|
|
28
|
-
INVALID_ABI = "Invalid ABI",
|
|
29
|
-
MUST_BE_HTTPS = "Must be HTTPS",
|
|
30
|
-
MUST_BE_HTTPS_OR_IPFS = "Must be HTTPS or IPFS",
|
|
31
|
-
INVALID_BASEPATH = "Must be a berachain forum link",
|
|
32
|
-
/**
|
|
33
|
-
* Mainly used when it's not a reward vault
|
|
34
|
-
*/
|
|
35
|
-
INVALID_CONTRACT = "This is not a valid contract"
|
|
36
|
-
}
|
|
37
|
-
declare enum ProposalTypeEnum {
|
|
38
|
-
CUSTOM_PROPOSAL = "custom-action",
|
|
39
|
-
WHITELIST_REWARD_VAULT = "whitelist-reward-vault",
|
|
40
|
-
BLACKLIST_REWARD_VAULT = "blacklist-reward-vault",
|
|
41
|
-
ERC20_TRANSFER = "erc20-transfer",
|
|
42
|
-
WHITELIST_REWARD_VAULT_INCENTIVE = "whitelist-reward-vault-incentive"
|
|
43
|
-
}
|
|
44
|
-
declare const VoteColorMap: {
|
|
45
|
-
readonly yes: "#059669";
|
|
46
|
-
readonly 1: "#059669";
|
|
47
|
-
readonly no: "#DC2629";
|
|
48
|
-
readonly 2: "#DC2629";
|
|
49
|
-
readonly veto: "#0284C7";
|
|
50
|
-
readonly 4: "#0284C7";
|
|
51
|
-
readonly abstain: "#78716c";
|
|
52
|
-
readonly 3: "#78716c";
|
|
53
|
-
readonly yes_secondary: "#ECFDF5";
|
|
54
|
-
readonly no_secondary: "#FEF2F2";
|
|
55
|
-
readonly veto_secondary: "#F0F9FF";
|
|
56
|
-
readonly abstain_secondary: "#E7E5E4";
|
|
57
|
-
readonly default: "#57534e";
|
|
58
|
-
};
|
|
59
|
-
|
|
60
|
-
/**
|
|
61
|
-
* A list of contract names that are not mapped in the devrel's contract mapping or that are generated by factories (e.g. RewardVault).
|
|
62
|
-
*/
|
|
63
|
-
declare enum ContractName {
|
|
64
|
-
ENSO_ROUTER = "enso.router",
|
|
65
|
-
POL_REWARD_VAULT = "pol.rewardVault",
|
|
66
|
-
BEX_POOL = "bex.pool",
|
|
67
|
-
ERC20 = "others.erc20",
|
|
68
|
-
ERC4626 = "others.erc4626",
|
|
69
|
-
POL_STAKE_VAULT = "pol.stakeVault",
|
|
70
|
-
BEX_EXPLOITED_FUND_DISTRIBUTOR = "bex.exploitedFundDistributor",
|
|
71
|
-
TW_MINIMAL_ACCOUNT = "thirdweb.minimalAccount"
|
|
72
|
-
}
|
|
73
|
-
|
|
74
|
-
declare enum TransactionActionType {
|
|
75
|
-
/**
|
|
76
|
-
* Used for testing purposes.
|
|
77
|
-
*/
|
|
78
|
-
TEST = "Test",
|
|
79
|
-
SEND = "Send tokens",
|
|
80
|
-
APPROVAL = "Approval",
|
|
81
|
-
SWAP = "Swap",
|
|
82
|
-
WRAP = "Wrap",
|
|
83
|
-
UNWRAP = "Unwrap",
|
|
84
|
-
CREATE_POOL = "Create Pool",
|
|
85
|
-
ADD_LIQUIDITY = "Add Liquidity",
|
|
86
|
-
WITHDRAW_LIQUIDITY = "Withdraw Liquidity",
|
|
87
|
-
DELEGATE = "Delegate",
|
|
88
|
-
REDELEGATE = "Redelegate",
|
|
89
|
-
QUEUE_BOOST = "Queue Boost",
|
|
90
|
-
ACTIVATE_BOOST = "Activate Boost",
|
|
91
|
-
QUEUE_UNBOOSTING_ALL = "Queue Drop Boost All",
|
|
92
|
-
UNBOOST = "Drop Boost",
|
|
93
|
-
QUEUE_UNBOOST = "Queue Drop Boost",
|
|
94
|
-
CANCEL_UNBOOST = "Cancel Drop Boost",
|
|
95
|
-
CANCEL_BOOST = "Cancel Boost",
|
|
96
|
-
UNBONDING = "Unbonding",
|
|
97
|
-
CANCEL_UNBONDING = "Cancel Unbonding",
|
|
98
|
-
SUBMIT_PROPOSAL = "Submit Proposal",
|
|
99
|
-
CANCEL_PROPOSAL = "Cancel Proposal",
|
|
100
|
-
EXECUTE_PROPOSAL = "Execute Proposal",
|
|
101
|
-
QUEUE_PROPOSAL = "Queue Proposal",
|
|
102
|
-
VOTE = "Vote",
|
|
103
|
-
MODIFY_REWARD_DURATION = "Change Reward Duration",
|
|
104
|
-
MODIFY_REWARD_RATE = "Change Reward Rate",
|
|
105
|
-
RESET_REWARD_MODE = "Reset Reward Mode",
|
|
106
|
-
CREATE_BRIBE = "Add Incentives",
|
|
107
|
-
CLAIMING_BRIBES = "Claiming Incentives",// claiming others
|
|
108
|
-
CLAIMING_REWARDS = "Claiming BGT",
|
|
109
|
-
CLAIM_ALL_REWARDS = "Claim All Rewards",
|
|
110
|
-
RECOVER_FUNDS = "Recover Bex Funds",
|
|
111
|
-
REDEEM_BGT = "Redeem BGT",
|
|
112
|
-
MINT_HONEY = "Mint Honey",
|
|
113
|
-
REDEEM_HONEY = "Redeem Honey",
|
|
114
|
-
SUPPLY = "Supply",
|
|
115
|
-
WITHDRAW = "Withdraw",
|
|
116
|
-
BORROW = "Borrow",
|
|
117
|
-
REPAY = "Repay",
|
|
118
|
-
STAKE = "Stake",
|
|
119
|
-
UNSTAKE = "Unstake",
|
|
120
|
-
ENSO_ROUTE = "Enso Route",
|
|
121
|
-
MARKET_LONG = "Market Long",
|
|
122
|
-
MARKET_SHORT = "Market Short",
|
|
123
|
-
LIMIT_LONG = "Limit Long",
|
|
124
|
-
LIMIT_SHORT = "Limit Short",
|
|
125
|
-
CANCEL_ORDER = "Cancel Order",
|
|
126
|
-
CANCEL_ALL_ORDERS = "Cancel All Orders",
|
|
127
|
-
EDIT_PERPS_ORDER = "Edit Perps Order",
|
|
128
|
-
DEPOSIT_HONEY = "Deposit Honey",
|
|
129
|
-
START_WITHDRAW_REQUEST = "Start Withdraw Request",
|
|
130
|
-
CANCEL_WITHDRAW_REQUEST = "Cancel Withdraw Request",
|
|
131
|
-
WITHDRAW_HONEY = "Withdraw Honey",
|
|
132
|
-
DELEGATE_OCT = "Delegate",
|
|
133
|
-
REVOKE_OCT = "Revoke",
|
|
134
|
-
REFER = "Refer",
|
|
135
|
-
CREATE_REWARDS_VAULT = "Create Reward Vault",
|
|
136
|
-
APPLYING_REWARD_ALLOCATION = "Apply Reward Allocation",
|
|
137
|
-
APPLYING_OPERATOR_CHANGE = "Apply Operator Change",
|
|
138
|
-
CANCELING_OPERATOR_CHANGE = "Cancel Operator Change",
|
|
139
|
-
REQUEST_OPERATOR_CHANGE = "Request Operator Change",
|
|
140
|
-
APPLYING_REWARD_ALLOCATOR_CHANGE = "Apply Reward Allocator Change",
|
|
141
|
-
APPLYING_COMMISSION_CHANGE = "Apply Commission Change",
|
|
142
|
-
BONDING_BERA = "Stake BERA",
|
|
143
|
-
ZAP_STAKE_BERA = "Zap Stake BERA",
|
|
144
|
-
UNBONDING_BERA = "Unstake BERA",
|
|
145
|
-
QUEUE_UNBONDING_BERA = "Queue Unstake BERA",
|
|
146
|
-
BEND_MARKET_REPAY_AND_WITHDRAW_COLLATERAL = "Bend Market Repay and Withdraw Collateral",
|
|
147
|
-
BEND_MARKET_SUPPLY_COLLATERAL_AND_BORROW = "Bend Market Supply Collateral and Borrow",
|
|
148
|
-
BEND_MARKET_MULTIPLY = "Bend Market Multiply",
|
|
149
|
-
BEND_MARKET_DEMULTIPLY = "Bend Market Demultiply",
|
|
150
|
-
BEND_VAULT_SUPPLY = "Bend Vault Supply",
|
|
151
|
-
BEND_VAULT_WITHDRAW = "Bend Vault Withdraw",
|
|
152
|
-
BEND_CURATOR_REALLOCATE = "Bend Curator Reallocate",
|
|
153
|
-
BEND_CURATOR_UPDATE_MARKET_SUPPLY_CAP = "Bend Curator Update Market Supply Cap",
|
|
154
|
-
BEND_CURATOR_REVOKE_PENDING_SUPPLY_CAP = "Bend Curator Revoke Pending Supply Cap",
|
|
155
|
-
BEND_CURATOR_ACCEPT_PENDING_SUPPLY_CAP = "Bend Curator Accept Pending Supply Cap",
|
|
156
|
-
BEND_CURATOR_UPDATE_SUPPLY_QUEUE = "Bend Curator Update Supply Queue",
|
|
157
|
-
BEND_CURATOR_UPDATE_WITHDRAW_QUEUE = "Bend Curator Update Withdraw Queue",
|
|
158
|
-
BEND_CURATOR_TRANSFER_OWNER = "Bend Curator Transfer Owner",
|
|
159
|
-
BEND_CURATOR_CHANGE_GUARDIAN = "Bend Curator Change Guardian",
|
|
160
|
-
BEND_CURATOR_SET_CURATOR = "Bend Curator Set Curator",
|
|
161
|
-
BEND_CURATOR_SET_ALLOCATOR = "Bend Curator Set Allocator"
|
|
162
|
-
}
|
|
163
|
-
|
|
164
|
-
export { ContractName as C, ProposalErrorCodes as P, TransactionActionType as T, VoteColorMap as V, ProposalState as a, ProposalTypeEnum as b, VoteEnum as c };
|
package/dist/types/exports.cjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";//# sourceMappingURL=exports.cjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["/Users/pong/coding/monobera/packages/berajs/dist/types/exports.cjs"],"names":[],"mappings":"AAAA","file":"/Users/pong/coding/monobera/packages/berajs/dist/types/exports.cjs"}
|
package/dist/types/exports.d.cts
DELETED
|
@@ -1,90 +0,0 @@
|
|
|
1
|
-
export { A as AggregatedTokenTotals, g as BribeBoostReward, b as BribeBoostRewardItem, B as BribeBoostRewardProof, h as BribeBoostValidatorApr, i as ClaimedIncentives, j as ClaimedIncentivesLocalState, C as CustomProposal, k as CustomProposalActionErrors, a as CustomProposalErrors, D as DefaultHookOptions, c as DefaultHookReturnType, G as GovernanceTopic, I as IContractWrite, l as IContractWriteFn, m as IncentiveReward, n as IncentiveRewardChunksWithValidatorData, o as PROPOSAL_GENRE, p as Proposal, q as ProposalAction, r as ProposalVotes, P as ProtocolMetadata, s as SafeProposalAction, d as StakedBeraAsset, S as StakingConfig, U as UserVaultInfo, V as VerifiedAbi, t as Vote, u as Voter } from '../global.d-B7IeayVX.cjs';
|
|
2
|
-
import { M as MinimalERC20 } from '../HoneyConfigProvider-DfkjmzEf.cjs';
|
|
3
|
-
export { A as AllowanceQueryItem, j as AllowanceToken, B as BalanceToken, y as BexStatus, w as Calldata, H as HoneySwapActions, I as IAggregatorArgs, z as IAggregatorQuote, g as IRawAggregatorQuote, v as IUserPosition, h as PythPriceFeedMap, S as SwapRequest, b as Token, i as TokenCurrentPriceMap, x as TokenPriceInfo, t as TokenWithAmount, a as TokenWithMetadata, D as TokenWithPrice } from '../HoneyConfigProvider-DfkjmzEf.cjs';
|
|
4
|
-
import { BundleData, EnsoClient } from '@ensofinance/sdk';
|
|
5
|
-
import { TransactionRequest, Address, Hex, PublicClient } from 'viem';
|
|
6
|
-
import '@berachain/graphql/governance';
|
|
7
|
-
import '../txnEnum-7_o92X3N.cjs';
|
|
8
|
-
import '@berachain/graphql/pol/api';
|
|
9
|
-
import '@wagmi/core';
|
|
10
|
-
import 'swr';
|
|
11
|
-
import '@berachain/config';
|
|
12
|
-
import '../BeraError-_mQdkanr.cjs';
|
|
13
|
-
import 'react/jsx-runtime';
|
|
14
|
-
import 'react';
|
|
15
|
-
import '@berachain-foundation/berancer-sdk';
|
|
16
|
-
import '../honey-CYm0RWf4.cjs';
|
|
17
|
-
|
|
18
|
-
type Quantity = string | number;
|
|
19
|
-
type ActionOutputReference<T> = T | StrictOutputReference<T>;
|
|
20
|
-
type StrictOutputReference<T> = {
|
|
21
|
-
useOutputOfCallAt: number;
|
|
22
|
-
index?: number;
|
|
23
|
-
};
|
|
24
|
-
|
|
25
|
-
interface GetEnsoSwapBundleArgs {
|
|
26
|
-
fromAddress: Address;
|
|
27
|
-
amountIn: Quantity;
|
|
28
|
-
tokenIn: Address;
|
|
29
|
-
tokenOut: Address;
|
|
30
|
-
chainId: number;
|
|
31
|
-
ensoClient: EnsoClient;
|
|
32
|
-
slippage: number;
|
|
33
|
-
destinationChainId?: number;
|
|
34
|
-
publicClient: PublicClient;
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
type GetZapTransaction = TransactionRequest & {
|
|
38
|
-
to: Address;
|
|
39
|
-
data: Hex;
|
|
40
|
-
value?: bigint;
|
|
41
|
-
gasLimit?: bigint;
|
|
42
|
-
};
|
|
43
|
-
type GetZapTransactions = GetZapTransaction[];
|
|
44
|
-
interface GetZapTransactionsArgs {
|
|
45
|
-
fromAddress: Address;
|
|
46
|
-
amountIn: Quantity;
|
|
47
|
-
tokenIn: Address;
|
|
48
|
-
chainId: number;
|
|
49
|
-
ensoClient: EnsoClient;
|
|
50
|
-
bundle: BundleData;
|
|
51
|
-
publicClient: PublicClient;
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
interface GetEnsoWalletTransactionsWithApprovalArgs {
|
|
55
|
-
fromAddress: Address;
|
|
56
|
-
amountIn: Quantity;
|
|
57
|
-
tokenIn: MinimalERC20;
|
|
58
|
-
bundle: BundleData;
|
|
59
|
-
publicClient: PublicClient;
|
|
60
|
-
}
|
|
61
|
-
interface GetZapTransactionResponse {
|
|
62
|
-
bundle: BundleData;
|
|
63
|
-
transactions: GetZapTransactions;
|
|
64
|
-
}
|
|
65
|
-
|
|
66
|
-
interface BendPositionEstimate {
|
|
67
|
-
/**
|
|
68
|
-
* Collateral amount in human-readable format.
|
|
69
|
-
* For multiply: total collateral after leveraging.
|
|
70
|
-
* For demultiply: collateral reduction from unwinding.
|
|
71
|
-
*/
|
|
72
|
-
finalCollateral: string;
|
|
73
|
-
/**
|
|
74
|
-
* Borrow amount in loan tokens (human-readable).
|
|
75
|
-
* For multiply: total debt after leveraging.
|
|
76
|
-
* For demultiply: debt reduction from unwinding.
|
|
77
|
-
*/
|
|
78
|
-
totalBorrow: string;
|
|
79
|
-
}
|
|
80
|
-
|
|
81
|
-
interface BendMultiplyBundleResponse extends GetZapTransactionResponse {
|
|
82
|
-
positionEstimate: BendPositionEstimate;
|
|
83
|
-
}
|
|
84
|
-
|
|
85
|
-
interface BendDemultiplyBundleResponse
|
|
86
|
-
extends GetZapTransactionResponse {
|
|
87
|
-
positionEstimate: BendPositionEstimate;
|
|
88
|
-
}
|
|
89
|
-
|
|
90
|
-
export { type ActionOutputReference, type BendDemultiplyBundleResponse, type BendMultiplyBundleResponse, type GetEnsoSwapBundleArgs, type GetEnsoWalletTransactionsWithApprovalArgs, type GetZapTransaction, type GetZapTransactionResponse, type GetZapTransactions, type GetZapTransactionsArgs, MinimalERC20, type Quantity };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
import * as react from 'react';
|
|
2
|
-
import { T as TokenWithOrder, H as HoneySwapActions } from './HoneyConfigProvider-DfkjmzEf.cjs';
|
|
3
|
-
|
|
4
|
-
interface IHoneySwapState {
|
|
5
|
-
actionType: "mint" | "redeem";
|
|
6
|
-
/**
|
|
7
|
-
* List of current collaterals
|
|
8
|
-
*/
|
|
9
|
-
collaterals: TokenWithOrder[];
|
|
10
|
-
fromAmount: string[];
|
|
11
|
-
toAmount: string[];
|
|
12
|
-
isBasketModeEnabled: boolean | undefined;
|
|
13
|
-
isTyping: boolean;
|
|
14
|
-
isSubmitting: boolean;
|
|
15
|
-
isLoading: boolean;
|
|
16
|
-
}
|
|
17
|
-
declare function reducer(state: IHoneySwapState, action: HoneySwapActions): IHoneySwapState;
|
|
18
|
-
declare const useHoneySwapState: () => {
|
|
19
|
-
state: {
|
|
20
|
-
collaterals: TokenWithOrder[];
|
|
21
|
-
actionType: "mint" | "redeem";
|
|
22
|
-
fromAmount: string[];
|
|
23
|
-
toAmount: string[];
|
|
24
|
-
isBasketModeEnabled: boolean | undefined;
|
|
25
|
-
isTyping: boolean;
|
|
26
|
-
isSubmitting: boolean;
|
|
27
|
-
isLoading: boolean;
|
|
28
|
-
};
|
|
29
|
-
dispatch: react.ActionDispatch<[action: HoneySwapActions]>;
|
|
30
|
-
};
|
|
31
|
-
|
|
32
|
-
export { type IHoneySwapState as I, reducer as r, useHoneySwapState as u };
|