@berachain/berajs 0.1.0-alpha.0 → 0.1.0-alpha.1
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-CfcNTfpH.d.cts +69 -0
- package/dist/BexStatusProvider-nS3NcdxI.d.cts +70 -0
- package/dist/RequestError-BPxCeq0x.d.cts +57 -0
- package/dist/abi/index.cjs +1 -0
- package/dist/abi/index.d.cts +26765 -0
- package/dist/actions/index.cjs +1 -0
- package/dist/actions/index.d.cts +1649 -0
- package/dist/actions/index.d.ts +7 -7
- package/dist/aggregatorsRouter-Cny4B_MB.d.cts +593 -0
- package/dist/chunk-33CW5NUN.cjs +1 -0
- package/dist/chunk-6PL44I45.cjs +1 -0
- package/dist/chunk-IKAE7CQU.cjs +1 -0
- package/dist/chunk-ILYYJYGV.cjs +3 -0
- package/dist/chunk-KIA6GUIN.cjs +1 -0
- package/dist/chunk-LHFVY26H.cjs +2 -0
- package/dist/chunk-LX5CM4Y6.cjs +1 -0
- package/dist/chunk-MDA4YT6J.cjs +1 -0
- package/dist/chunk-NOV7UCGA.cjs +1 -0
- package/dist/chunk-SW47CI6T.cjs +1 -0
- package/dist/chunk-YKKMWJX5.cjs +1 -0
- package/dist/contexts/index.cjs +1 -0
- package/dist/contexts/index.d.cts +81 -0
- package/dist/contexts/index.d.ts +3 -3
- package/dist/defaultFlags-V-tJs2K8.d.cts +10 -0
- package/dist/{dex-DreiokgL.d.ts → dex-D9U93Ib-.d.cts} +3 -3
- package/dist/enum/index.cjs +1 -0
- package/dist/enum/index.d.cts +31 -0
- package/dist/enum/index.d.ts +1 -1
- package/dist/errors/index.cjs +1 -0
- package/dist/errors/index.d.cts +204 -0
- package/dist/errors/index.d.ts +1 -1
- package/dist/{getValidatorQueuedOperatorAddress-DK2Xv19c.d.ts → getValidatorQueuedOperatorAddress-BbyH7asf.d.cts} +2 -2
- package/dist/hooks/index.cjs +3 -0
- package/dist/hooks/index.d.cts +1703 -0
- package/dist/hooks/index.d.ts +7 -7
- package/dist/polling-BKnyavLI.d.cts +8 -0
- package/dist/pythWrapper-CBjsmmsK.d.cts +1958 -0
- package/dist/{staking-Cggi38So.d.ts → staking-DHCsSRru.d.cts} +1 -1
- package/dist/{txnEnum-BQKDfaeH.d.ts → txnEnum-Diichv9Z.d.cts} +0 -1
- package/dist/types/index.cjs +1 -0
- package/dist/types/index.d.cts +56 -0
- package/dist/types/index.d.ts +3 -3
- package/dist/{useHoneySwapState-Ci8_c2bT.d.ts → useHoneySwapState-A9cyIoOS.d.cts} +1 -1
- package/dist/utils/index.cjs +1 -0
- package/dist/utils/index.d.cts +349 -0
- package/dist/utils/index.d.ts +3 -3
- package/package.json +3 -4
package/dist/actions/index.d.ts
CHANGED
|
@@ -1,31 +1,31 @@
|
|
|
1
|
-
import { V as ValidatorRewardAllocation } from '../getValidatorQueuedOperatorAddress
|
|
2
|
-
export { f as GetBgtAprSimulationArgs, h as GetBgtAprSimulationResult, G as GetConvertToAssetsProps, s as GetGaugeData, c as GetHoneyVaultsBalanceResponse, m as GetMarkets, q as GetRewardVaultRewardsReturn, u as GetStakedBeraSnapshotsArgs, x as GetUserVaultsResponse, z as GetVaultHistoryArgs, k as GlobalData, I as IsBadCollateralArgs, e as IsBadCollateralResponse, O as OnChainPool, P as PoolStatus, p as RewardVaultDistributionMode, R as RewardVaultIncentive, S as StakedBeraWithdrawal, D as UserBoostsOnValidator, F as UserStakingPoolPosition, U as UserVault, J as ValidatorQueuedCommission, L as ValidatorQueuedOperatorAddress, N as ValidatorRewardAllocationRaw, Q as ValidatorRewardAllocationUpdate, T as ValidatorRewardAllocationUpdateWithExpiration, B as ValidatorWithUserBoost, W as formatValidatorRewardAllocation, j as getBgtAprSimulation, g as getConvertToAssets, l as getGlobalData, d as getHoneyVaultsBalance, n as getMarkets, a as getOnChainPool, b as getPoolPausedState, o as getRewardVaultIncentives, r as getRewardVaultRewards, t as getRewardVaults, w as getSWBeraWithdrawal, v as getStakedBeraSnapshots, C as getUserActiveValidators, E as getUserBoostsOnValidator, H as getUserStakingPositions, y as getUserVaults, K as getValidatorQueuedCommission, M as getValidatorQueuedOperatorAddress, Y as getValidatorRewardAllocation, A as getVaultHistory, i as isBadCollateralAsset, X as isSameRewardAllocation } from '../getValidatorQueuedOperatorAddress
|
|
1
|
+
import { V as ValidatorRewardAllocation } from '../getValidatorQueuedOperatorAddress--AXNo9IY.js';
|
|
2
|
+
export { f as GetBgtAprSimulationArgs, h as GetBgtAprSimulationResult, G as GetConvertToAssetsProps, s as GetGaugeData, c as GetHoneyVaultsBalanceResponse, m as GetMarkets, q as GetRewardVaultRewardsReturn, u as GetStakedBeraSnapshotsArgs, x as GetUserVaultsResponse, z as GetVaultHistoryArgs, k as GlobalData, I as IsBadCollateralArgs, e as IsBadCollateralResponse, O as OnChainPool, P as PoolStatus, p as RewardVaultDistributionMode, R as RewardVaultIncentive, S as StakedBeraWithdrawal, D as UserBoostsOnValidator, F as UserStakingPoolPosition, U as UserVault, J as ValidatorQueuedCommission, L as ValidatorQueuedOperatorAddress, N as ValidatorRewardAllocationRaw, Q as ValidatorRewardAllocationUpdate, T as ValidatorRewardAllocationUpdateWithExpiration, B as ValidatorWithUserBoost, W as formatValidatorRewardAllocation, j as getBgtAprSimulation, g as getConvertToAssets, l as getGlobalData, d as getHoneyVaultsBalance, n as getMarkets, a as getOnChainPool, b as getPoolPausedState, o as getRewardVaultIncentives, r as getRewardVaultRewards, t as getRewardVaults, w as getSWBeraWithdrawal, v as getStakedBeraSnapshots, C as getUserActiveValidators, E as getUserBoostsOnValidator, H as getUserStakingPositions, y as getUserVaults, K as getValidatorQueuedCommission, M as getValidatorQueuedOperatorAddress, Y as getValidatorRewardAllocation, A as getVaultHistory, i as isBadCollateralAsset, X as isSameRewardAllocation } from '../getValidatorQueuedOperatorAddress--AXNo9IY.js';
|
|
3
3
|
import { Address, PublicClient, AbiParameter, AbiFunction, TransactionReceipt, Abi, ContractFunctionArgs, ContractFunctionName, WalletCallReceipt } from 'viem';
|
|
4
4
|
import { ApolloClient, OperationVariables, FetchPolicy } from '@apollo/client';
|
|
5
5
|
export { gql } from '@apollo/client';
|
|
6
6
|
import { ChainId, BeraConfig } from '@berachain/config/internal';
|
|
7
|
-
import { A as Aggregators, i as IAggregatorArgs, I as IRawAggregatorQuote, a as Token, P as PythLatestUpdates, b as TokenWithMetadata, T as TokenWithOrder, j as PythPriceFeedMap, k as TokenCurrentPriceMap, l as AllowanceToken, M as MinimalERC20, B as BalanceToken, m as IContractWrite } from '../dex-
|
|
8
|
-
export { C as CollateralRates, o as CollateralRatesArgs, n as HoneyFeeMap, r as HoneyPreviewArgs, q as HoneyPreviewMethod, t as HoneyPreviewReadResult, s as HoneyPreviewResult, p as getHoneyFees, v as getHoneyPreview, w as getPythLatestPrices } from '../dex-
|
|
7
|
+
import { A as Aggregators, i as IAggregatorArgs, I as IRawAggregatorQuote, a as Token, P as PythLatestUpdates, b as TokenWithMetadata, T as TokenWithOrder, j as PythPriceFeedMap, k as TokenCurrentPriceMap, l as AllowanceToken, M as MinimalERC20, B as BalanceToken, m as IContractWrite } from '../dex-BD7Bq3pJ.js';
|
|
8
|
+
export { C as CollateralRates, o as CollateralRatesArgs, n as HoneyFeeMap, r as HoneyPreviewArgs, q as HoneyPreviewMethod, t as HoneyPreviewReadResult, s as HoneyPreviewResult, p as getHoneyFees, v as getHoneyPreview, w as getPythLatestPrices } from '../dex-BD7Bq3pJ.js';
|
|
9
9
|
import { PoolState } from '@berachain-foundation/berancer-sdk';
|
|
10
10
|
export { BalancerApi } from '@berachain-foundation/berancer-sdk';
|
|
11
11
|
import * as _berachain_graphql_dex_api from '@berachain/graphql/dex/api';
|
|
12
12
|
import { GetPoolsQueryVariables, GetGlobalLiquidityAndSwapVolumeQuery, GetPoolEventsQuery, GqlChain, PoolHistoricalDataFragment, MinimalPoolFragment } from '@berachain/graphql/dex/api';
|
|
13
13
|
import { GqlPoolEventType, GqlChain as GqlChain$1, ApiVaultFragment, ApiValidatorFragment, GetValidatorsQueryVariables, GetValidatorsQuery, ApiRewardAllocationWeightFragment, GetValidatorQuery, ApiValidatorMinimalFragment } from '@berachain/graphql/pol/api';
|
|
14
|
-
import { a as ProposalErrorCodes, b as ProposalState, C as CustomProposal, G as GovernanceTopic, c as CustomProposalErrors, B as BribeBoostRewardProof, d as BribeBoostRewardItem, U as UserVaultInfo } from '../staking-
|
|
14
|
+
import { a as ProposalErrorCodes, b as ProposalState, C as CustomProposal, G as GovernanceTopic, c as CustomProposalErrors, B as BribeBoostRewardProof, d as BribeBoostRewardItem, U as UserVaultInfo } from '../staking-DYbVFigB.js';
|
|
15
15
|
import { ProposalStatus, ProposalSelectionFragment, Proposal_Filter, Proposal_OrderBy, OrderDirection, ProposalWithVotesFragment, GetProposalVotesQueryVariables, GetProposalVotesQuery } from '@berachain/graphql/governance';
|
|
16
16
|
import { GetPublicClientReturnType } from '@wagmi/core';
|
|
17
17
|
import graymatter from 'gray-matter';
|
|
18
18
|
import { GetChartDataQuery, GetGlobalDataQuery } from '@berachain/graphql/honey';
|
|
19
19
|
import { EdgeConfigSchema } from '@berachain/config/internal/edge-config';
|
|
20
20
|
import { p as pythWrapperAbi, h as honeyFactoryAbi } from '../pythWrapper-CBjsmmsK.js';
|
|
21
|
-
import { I as IHoneySwapState } from '../useHoneySwapState-
|
|
21
|
+
import { I as IHoneySwapState } from '../useHoneySwapState-CW49RVci.js';
|
|
22
22
|
import { Address as Address$1 } from '@berachain/config';
|
|
23
23
|
import { GetValidatorBlockStatsQuery, GetValidatorByAccountQuery, GetValidatorAnalyticsQuery } from '@berachain/graphql/pol/subgraph';
|
|
24
24
|
import '../aggregatorsRouter-Cny4B_MB.js';
|
|
25
25
|
import 'react/jsx-runtime';
|
|
26
26
|
import 'react';
|
|
27
27
|
import 'swr';
|
|
28
|
-
import '../txnEnum-
|
|
28
|
+
import '../txnEnum-Diichv9Z.js';
|
|
29
29
|
import '../BeraError-CfcNTfpH.js';
|
|
30
30
|
import '@sentry/nextjs';
|
|
31
31
|
|
|
@@ -0,0 +1,593 @@
|
|
|
1
|
+
declare const aggregatorsRouterAbi: readonly [{
|
|
2
|
+
readonly type: "constructor";
|
|
3
|
+
readonly inputs: readonly [{
|
|
4
|
+
readonly name: "_wbera";
|
|
5
|
+
readonly type: "address";
|
|
6
|
+
readonly internalType: "address";
|
|
7
|
+
}, {
|
|
8
|
+
readonly name: "_feeReceiver";
|
|
9
|
+
readonly type: "address";
|
|
10
|
+
readonly internalType: "address";
|
|
11
|
+
}, {
|
|
12
|
+
readonly name: "_owner";
|
|
13
|
+
readonly type: "address";
|
|
14
|
+
readonly internalType: "address";
|
|
15
|
+
}];
|
|
16
|
+
readonly stateMutability: "nonpayable";
|
|
17
|
+
}, {
|
|
18
|
+
readonly type: "receive";
|
|
19
|
+
readonly stateMutability: "payable";
|
|
20
|
+
}, {
|
|
21
|
+
readonly type: "function";
|
|
22
|
+
readonly name: "BERACHEF_ADDRESS";
|
|
23
|
+
readonly inputs: readonly [];
|
|
24
|
+
readonly outputs: readonly [{
|
|
25
|
+
readonly name: "";
|
|
26
|
+
readonly type: "address";
|
|
27
|
+
readonly internalType: "address";
|
|
28
|
+
}];
|
|
29
|
+
readonly stateMutability: "view";
|
|
30
|
+
}, {
|
|
31
|
+
readonly type: "function";
|
|
32
|
+
readonly name: "DEFAULT_ADMIN_ROLE";
|
|
33
|
+
readonly inputs: readonly [];
|
|
34
|
+
readonly outputs: readonly [{
|
|
35
|
+
readonly name: "";
|
|
36
|
+
readonly type: "bytes32";
|
|
37
|
+
readonly internalType: "bytes32";
|
|
38
|
+
}];
|
|
39
|
+
readonly stateMutability: "view";
|
|
40
|
+
}, {
|
|
41
|
+
readonly type: "function";
|
|
42
|
+
readonly name: "MANAGER_ROLE";
|
|
43
|
+
readonly inputs: readonly [];
|
|
44
|
+
readonly outputs: readonly [{
|
|
45
|
+
readonly name: "";
|
|
46
|
+
readonly type: "bytes32";
|
|
47
|
+
readonly internalType: "bytes32";
|
|
48
|
+
}];
|
|
49
|
+
readonly stateMutability: "view";
|
|
50
|
+
}, {
|
|
51
|
+
readonly type: "function";
|
|
52
|
+
readonly name: "ONE_HUNDRED_PERCENT";
|
|
53
|
+
readonly inputs: readonly [];
|
|
54
|
+
readonly outputs: readonly [{
|
|
55
|
+
readonly name: "";
|
|
56
|
+
readonly type: "uint256";
|
|
57
|
+
readonly internalType: "uint256";
|
|
58
|
+
}];
|
|
59
|
+
readonly stateMutability: "view";
|
|
60
|
+
}, {
|
|
61
|
+
readonly type: "function";
|
|
62
|
+
readonly name: "PAUSER_ROLE";
|
|
63
|
+
readonly inputs: readonly [];
|
|
64
|
+
readonly outputs: readonly [{
|
|
65
|
+
readonly name: "";
|
|
66
|
+
readonly type: "bytes32";
|
|
67
|
+
readonly internalType: "bytes32";
|
|
68
|
+
}];
|
|
69
|
+
readonly stateMutability: "view";
|
|
70
|
+
}, {
|
|
71
|
+
readonly type: "function";
|
|
72
|
+
readonly name: "SWAP_FEE_RATE";
|
|
73
|
+
readonly inputs: readonly [];
|
|
74
|
+
readonly outputs: readonly [{
|
|
75
|
+
readonly name: "";
|
|
76
|
+
readonly type: "uint256";
|
|
77
|
+
readonly internalType: "uint256";
|
|
78
|
+
}];
|
|
79
|
+
readonly stateMutability: "view";
|
|
80
|
+
}, {
|
|
81
|
+
readonly type: "function";
|
|
82
|
+
readonly name: "aggregators";
|
|
83
|
+
readonly inputs: readonly [{
|
|
84
|
+
readonly name: "";
|
|
85
|
+
readonly type: "address";
|
|
86
|
+
readonly internalType: "address";
|
|
87
|
+
}];
|
|
88
|
+
readonly outputs: readonly [{
|
|
89
|
+
readonly name: "";
|
|
90
|
+
readonly type: "bool";
|
|
91
|
+
readonly internalType: "bool";
|
|
92
|
+
}];
|
|
93
|
+
readonly stateMutability: "view";
|
|
94
|
+
}, {
|
|
95
|
+
readonly type: "function";
|
|
96
|
+
readonly name: "executor";
|
|
97
|
+
readonly inputs: readonly [];
|
|
98
|
+
readonly outputs: readonly [{
|
|
99
|
+
readonly name: "";
|
|
100
|
+
readonly type: "address";
|
|
101
|
+
readonly internalType: "contract MetaAggregatorExecutor";
|
|
102
|
+
}];
|
|
103
|
+
readonly stateMutability: "view";
|
|
104
|
+
}, {
|
|
105
|
+
readonly type: "function";
|
|
106
|
+
readonly name: "feeReceiver";
|
|
107
|
+
readonly inputs: readonly [];
|
|
108
|
+
readonly outputs: readonly [{
|
|
109
|
+
readonly name: "";
|
|
110
|
+
readonly type: "address";
|
|
111
|
+
readonly internalType: "address";
|
|
112
|
+
}];
|
|
113
|
+
readonly stateMutability: "view";
|
|
114
|
+
}, {
|
|
115
|
+
readonly type: "function";
|
|
116
|
+
readonly name: "getRoleAdmin";
|
|
117
|
+
readonly inputs: readonly [{
|
|
118
|
+
readonly name: "role";
|
|
119
|
+
readonly type: "bytes32";
|
|
120
|
+
readonly internalType: "bytes32";
|
|
121
|
+
}];
|
|
122
|
+
readonly outputs: readonly [{
|
|
123
|
+
readonly name: "";
|
|
124
|
+
readonly type: "bytes32";
|
|
125
|
+
readonly internalType: "bytes32";
|
|
126
|
+
}];
|
|
127
|
+
readonly stateMutability: "view";
|
|
128
|
+
}, {
|
|
129
|
+
readonly type: "function";
|
|
130
|
+
readonly name: "grantRole";
|
|
131
|
+
readonly inputs: readonly [{
|
|
132
|
+
readonly name: "role";
|
|
133
|
+
readonly type: "bytes32";
|
|
134
|
+
readonly internalType: "bytes32";
|
|
135
|
+
}, {
|
|
136
|
+
readonly name: "account";
|
|
137
|
+
readonly type: "address";
|
|
138
|
+
readonly internalType: "address";
|
|
139
|
+
}];
|
|
140
|
+
readonly outputs: readonly [];
|
|
141
|
+
readonly stateMutability: "nonpayable";
|
|
142
|
+
}, {
|
|
143
|
+
readonly type: "function";
|
|
144
|
+
readonly name: "hasRole";
|
|
145
|
+
readonly inputs: readonly [{
|
|
146
|
+
readonly name: "role";
|
|
147
|
+
readonly type: "bytes32";
|
|
148
|
+
readonly internalType: "bytes32";
|
|
149
|
+
}, {
|
|
150
|
+
readonly name: "account";
|
|
151
|
+
readonly type: "address";
|
|
152
|
+
readonly internalType: "address";
|
|
153
|
+
}];
|
|
154
|
+
readonly outputs: readonly [{
|
|
155
|
+
readonly name: "";
|
|
156
|
+
readonly type: "bool";
|
|
157
|
+
readonly internalType: "bool";
|
|
158
|
+
}];
|
|
159
|
+
readonly stateMutability: "view";
|
|
160
|
+
}, {
|
|
161
|
+
readonly type: "function";
|
|
162
|
+
readonly name: "pause";
|
|
163
|
+
readonly inputs: readonly [];
|
|
164
|
+
readonly outputs: readonly [];
|
|
165
|
+
readonly stateMutability: "nonpayable";
|
|
166
|
+
}, {
|
|
167
|
+
readonly type: "function";
|
|
168
|
+
readonly name: "paused";
|
|
169
|
+
readonly inputs: readonly [];
|
|
170
|
+
readonly outputs: readonly [{
|
|
171
|
+
readonly name: "";
|
|
172
|
+
readonly type: "bool";
|
|
173
|
+
readonly internalType: "bool";
|
|
174
|
+
}];
|
|
175
|
+
readonly stateMutability: "view";
|
|
176
|
+
}, {
|
|
177
|
+
readonly type: "function";
|
|
178
|
+
readonly name: "renounceRole";
|
|
179
|
+
readonly inputs: readonly [{
|
|
180
|
+
readonly name: "role";
|
|
181
|
+
readonly type: "bytes32";
|
|
182
|
+
readonly internalType: "bytes32";
|
|
183
|
+
}, {
|
|
184
|
+
readonly name: "callerConfirmation";
|
|
185
|
+
readonly type: "address";
|
|
186
|
+
readonly internalType: "address";
|
|
187
|
+
}];
|
|
188
|
+
readonly outputs: readonly [];
|
|
189
|
+
readonly stateMutability: "nonpayable";
|
|
190
|
+
}, {
|
|
191
|
+
readonly type: "function";
|
|
192
|
+
readonly name: "rescueBERA";
|
|
193
|
+
readonly inputs: readonly [];
|
|
194
|
+
readonly outputs: readonly [];
|
|
195
|
+
readonly stateMutability: "nonpayable";
|
|
196
|
+
}, {
|
|
197
|
+
readonly type: "function";
|
|
198
|
+
readonly name: "rescueTokens";
|
|
199
|
+
readonly inputs: readonly [{
|
|
200
|
+
readonly name: "token";
|
|
201
|
+
readonly type: "address";
|
|
202
|
+
readonly internalType: "address";
|
|
203
|
+
}];
|
|
204
|
+
readonly outputs: readonly [];
|
|
205
|
+
readonly stateMutability: "nonpayable";
|
|
206
|
+
}, {
|
|
207
|
+
readonly type: "function";
|
|
208
|
+
readonly name: "revokeRole";
|
|
209
|
+
readonly inputs: readonly [{
|
|
210
|
+
readonly name: "role";
|
|
211
|
+
readonly type: "bytes32";
|
|
212
|
+
readonly internalType: "bytes32";
|
|
213
|
+
}, {
|
|
214
|
+
readonly name: "account";
|
|
215
|
+
readonly type: "address";
|
|
216
|
+
readonly internalType: "address";
|
|
217
|
+
}];
|
|
218
|
+
readonly outputs: readonly [];
|
|
219
|
+
readonly stateMutability: "nonpayable";
|
|
220
|
+
}, {
|
|
221
|
+
readonly type: "function";
|
|
222
|
+
readonly name: "setFeeReceiver";
|
|
223
|
+
readonly inputs: readonly [{
|
|
224
|
+
readonly name: "_feeReceiver";
|
|
225
|
+
readonly type: "address";
|
|
226
|
+
readonly internalType: "address";
|
|
227
|
+
}];
|
|
228
|
+
readonly outputs: readonly [];
|
|
229
|
+
readonly stateMutability: "nonpayable";
|
|
230
|
+
}, {
|
|
231
|
+
readonly type: "function";
|
|
232
|
+
readonly name: "supportsInterface";
|
|
233
|
+
readonly inputs: readonly [{
|
|
234
|
+
readonly name: "interfaceId";
|
|
235
|
+
readonly type: "bytes4";
|
|
236
|
+
readonly internalType: "bytes4";
|
|
237
|
+
}];
|
|
238
|
+
readonly outputs: readonly [{
|
|
239
|
+
readonly name: "";
|
|
240
|
+
readonly type: "bool";
|
|
241
|
+
readonly internalType: "bool";
|
|
242
|
+
}];
|
|
243
|
+
readonly stateMutability: "view";
|
|
244
|
+
}, {
|
|
245
|
+
readonly type: "function";
|
|
246
|
+
readonly name: "swap";
|
|
247
|
+
readonly inputs: readonly [{
|
|
248
|
+
readonly name: "inputData";
|
|
249
|
+
readonly type: "tuple";
|
|
250
|
+
readonly internalType: "struct SwapInputData";
|
|
251
|
+
readonly components: readonly [{
|
|
252
|
+
readonly name: "tokenIn";
|
|
253
|
+
readonly type: "address";
|
|
254
|
+
readonly internalType: "address";
|
|
255
|
+
}, {
|
|
256
|
+
readonly name: "amountIn";
|
|
257
|
+
readonly type: "uint256";
|
|
258
|
+
readonly internalType: "uint256";
|
|
259
|
+
}, {
|
|
260
|
+
readonly name: "isNative";
|
|
261
|
+
readonly type: "bool";
|
|
262
|
+
readonly internalType: "bool";
|
|
263
|
+
}, {
|
|
264
|
+
readonly name: "isPermit2Approval";
|
|
265
|
+
readonly type: "bool";
|
|
266
|
+
readonly internalType: "bool";
|
|
267
|
+
}, {
|
|
268
|
+
readonly name: "permit2SpenderAddress";
|
|
269
|
+
readonly type: "address";
|
|
270
|
+
readonly internalType: "address";
|
|
271
|
+
}];
|
|
272
|
+
}, {
|
|
273
|
+
readonly name: "outputData";
|
|
274
|
+
readonly type: "tuple";
|
|
275
|
+
readonly internalType: "struct SwapOutputData";
|
|
276
|
+
readonly components: readonly [{
|
|
277
|
+
readonly name: "tokenOut";
|
|
278
|
+
readonly type: "address";
|
|
279
|
+
readonly internalType: "address";
|
|
280
|
+
}, {
|
|
281
|
+
readonly name: "receiver";
|
|
282
|
+
readonly type: "address";
|
|
283
|
+
readonly internalType: "address";
|
|
284
|
+
}, {
|
|
285
|
+
readonly name: "minAmountOut";
|
|
286
|
+
readonly type: "uint256";
|
|
287
|
+
readonly internalType: "uint256";
|
|
288
|
+
}, {
|
|
289
|
+
readonly name: "isNative";
|
|
290
|
+
readonly type: "bool";
|
|
291
|
+
readonly internalType: "bool";
|
|
292
|
+
}];
|
|
293
|
+
}, {
|
|
294
|
+
readonly name: "aggregatorData";
|
|
295
|
+
readonly type: "tuple";
|
|
296
|
+
readonly internalType: "struct AggregatorData";
|
|
297
|
+
readonly components: readonly [{
|
|
298
|
+
readonly name: "aggregator";
|
|
299
|
+
readonly type: "address";
|
|
300
|
+
readonly internalType: "address";
|
|
301
|
+
}, {
|
|
302
|
+
readonly name: "data";
|
|
303
|
+
readonly type: "bytes";
|
|
304
|
+
readonly internalType: "bytes";
|
|
305
|
+
}];
|
|
306
|
+
}, {
|
|
307
|
+
readonly name: "swapAndStakeData";
|
|
308
|
+
readonly type: "tuple";
|
|
309
|
+
readonly internalType: "struct SwapAndStakeData";
|
|
310
|
+
readonly components: readonly [{
|
|
311
|
+
readonly name: "isSwapAndStake";
|
|
312
|
+
readonly type: "bool";
|
|
313
|
+
readonly internalType: "bool";
|
|
314
|
+
}, {
|
|
315
|
+
readonly name: "rewardVault";
|
|
316
|
+
readonly type: "address";
|
|
317
|
+
readonly internalType: "address";
|
|
318
|
+
}];
|
|
319
|
+
}];
|
|
320
|
+
readonly outputs: readonly [{
|
|
321
|
+
readonly name: "amountOut";
|
|
322
|
+
readonly type: "uint256";
|
|
323
|
+
readonly internalType: "uint256";
|
|
324
|
+
}];
|
|
325
|
+
readonly stateMutability: "payable";
|
|
326
|
+
}, {
|
|
327
|
+
readonly type: "function";
|
|
328
|
+
readonly name: "unpause";
|
|
329
|
+
readonly inputs: readonly [];
|
|
330
|
+
readonly outputs: readonly [];
|
|
331
|
+
readonly stateMutability: "nonpayable";
|
|
332
|
+
}, {
|
|
333
|
+
readonly type: "function";
|
|
334
|
+
readonly name: "wbera";
|
|
335
|
+
readonly inputs: readonly [];
|
|
336
|
+
readonly outputs: readonly [{
|
|
337
|
+
readonly name: "";
|
|
338
|
+
readonly type: "address";
|
|
339
|
+
readonly internalType: "contract IWBERA";
|
|
340
|
+
}];
|
|
341
|
+
readonly stateMutability: "view";
|
|
342
|
+
}, {
|
|
343
|
+
readonly type: "function";
|
|
344
|
+
readonly name: "whitelistAggregator";
|
|
345
|
+
readonly inputs: readonly [{
|
|
346
|
+
readonly name: "aggregator";
|
|
347
|
+
readonly type: "address";
|
|
348
|
+
readonly internalType: "address";
|
|
349
|
+
}, {
|
|
350
|
+
readonly name: "whitelistStatus";
|
|
351
|
+
readonly type: "bool";
|
|
352
|
+
readonly internalType: "bool";
|
|
353
|
+
}];
|
|
354
|
+
readonly outputs: readonly [];
|
|
355
|
+
readonly stateMutability: "nonpayable";
|
|
356
|
+
}, {
|
|
357
|
+
readonly type: "event";
|
|
358
|
+
readonly name: "AggregatorWhitelisted";
|
|
359
|
+
readonly inputs: readonly [{
|
|
360
|
+
readonly name: "aggregator";
|
|
361
|
+
readonly type: "address";
|
|
362
|
+
readonly indexed: true;
|
|
363
|
+
readonly internalType: "address";
|
|
364
|
+
}, {
|
|
365
|
+
readonly name: "whitelistStatus";
|
|
366
|
+
readonly type: "bool";
|
|
367
|
+
readonly indexed: false;
|
|
368
|
+
readonly internalType: "bool";
|
|
369
|
+
}];
|
|
370
|
+
readonly anonymous: false;
|
|
371
|
+
}, {
|
|
372
|
+
readonly type: "event";
|
|
373
|
+
readonly name: "FeeReceiverSet";
|
|
374
|
+
readonly inputs: readonly [{
|
|
375
|
+
readonly name: "newFeeReceiver";
|
|
376
|
+
readonly type: "address";
|
|
377
|
+
readonly indexed: true;
|
|
378
|
+
readonly internalType: "address";
|
|
379
|
+
}, {
|
|
380
|
+
readonly name: "previousFeeReceiver";
|
|
381
|
+
readonly type: "address";
|
|
382
|
+
readonly indexed: true;
|
|
383
|
+
readonly internalType: "address";
|
|
384
|
+
}];
|
|
385
|
+
readonly anonymous: false;
|
|
386
|
+
}, {
|
|
387
|
+
readonly type: "event";
|
|
388
|
+
readonly name: "Paused";
|
|
389
|
+
readonly inputs: readonly [{
|
|
390
|
+
readonly name: "account";
|
|
391
|
+
readonly type: "address";
|
|
392
|
+
readonly indexed: false;
|
|
393
|
+
readonly internalType: "address";
|
|
394
|
+
}];
|
|
395
|
+
readonly anonymous: false;
|
|
396
|
+
}, {
|
|
397
|
+
readonly type: "event";
|
|
398
|
+
readonly name: "RoleAdminChanged";
|
|
399
|
+
readonly inputs: readonly [{
|
|
400
|
+
readonly name: "role";
|
|
401
|
+
readonly type: "bytes32";
|
|
402
|
+
readonly indexed: true;
|
|
403
|
+
readonly internalType: "bytes32";
|
|
404
|
+
}, {
|
|
405
|
+
readonly name: "previousAdminRole";
|
|
406
|
+
readonly type: "bytes32";
|
|
407
|
+
readonly indexed: true;
|
|
408
|
+
readonly internalType: "bytes32";
|
|
409
|
+
}, {
|
|
410
|
+
readonly name: "newAdminRole";
|
|
411
|
+
readonly type: "bytes32";
|
|
412
|
+
readonly indexed: true;
|
|
413
|
+
readonly internalType: "bytes32";
|
|
414
|
+
}];
|
|
415
|
+
readonly anonymous: false;
|
|
416
|
+
}, {
|
|
417
|
+
readonly type: "event";
|
|
418
|
+
readonly name: "RoleGranted";
|
|
419
|
+
readonly inputs: readonly [{
|
|
420
|
+
readonly name: "role";
|
|
421
|
+
readonly type: "bytes32";
|
|
422
|
+
readonly indexed: true;
|
|
423
|
+
readonly internalType: "bytes32";
|
|
424
|
+
}, {
|
|
425
|
+
readonly name: "account";
|
|
426
|
+
readonly type: "address";
|
|
427
|
+
readonly indexed: true;
|
|
428
|
+
readonly internalType: "address";
|
|
429
|
+
}, {
|
|
430
|
+
readonly name: "sender";
|
|
431
|
+
readonly type: "address";
|
|
432
|
+
readonly indexed: true;
|
|
433
|
+
readonly internalType: "address";
|
|
434
|
+
}];
|
|
435
|
+
readonly anonymous: false;
|
|
436
|
+
}, {
|
|
437
|
+
readonly type: "event";
|
|
438
|
+
readonly name: "RoleRevoked";
|
|
439
|
+
readonly inputs: readonly [{
|
|
440
|
+
readonly name: "role";
|
|
441
|
+
readonly type: "bytes32";
|
|
442
|
+
readonly indexed: true;
|
|
443
|
+
readonly internalType: "bytes32";
|
|
444
|
+
}, {
|
|
445
|
+
readonly name: "account";
|
|
446
|
+
readonly type: "address";
|
|
447
|
+
readonly indexed: true;
|
|
448
|
+
readonly internalType: "address";
|
|
449
|
+
}, {
|
|
450
|
+
readonly name: "sender";
|
|
451
|
+
readonly type: "address";
|
|
452
|
+
readonly indexed: true;
|
|
453
|
+
readonly internalType: "address";
|
|
454
|
+
}];
|
|
455
|
+
readonly anonymous: false;
|
|
456
|
+
}, {
|
|
457
|
+
readonly type: "event";
|
|
458
|
+
readonly name: "Swap";
|
|
459
|
+
readonly inputs: readonly [{
|
|
460
|
+
readonly name: "sender";
|
|
461
|
+
readonly type: "address";
|
|
462
|
+
readonly indexed: true;
|
|
463
|
+
readonly internalType: "address";
|
|
464
|
+
}, {
|
|
465
|
+
readonly name: "tokenIn";
|
|
466
|
+
readonly type: "address";
|
|
467
|
+
readonly indexed: false;
|
|
468
|
+
readonly internalType: "address";
|
|
469
|
+
}, {
|
|
470
|
+
readonly name: "amountIn";
|
|
471
|
+
readonly type: "uint256";
|
|
472
|
+
readonly indexed: false;
|
|
473
|
+
readonly internalType: "uint256";
|
|
474
|
+
}, {
|
|
475
|
+
readonly name: "aggregator";
|
|
476
|
+
readonly type: "address";
|
|
477
|
+
readonly indexed: true;
|
|
478
|
+
readonly internalType: "address";
|
|
479
|
+
}, {
|
|
480
|
+
readonly name: "tokenOut";
|
|
481
|
+
readonly type: "address";
|
|
482
|
+
readonly indexed: true;
|
|
483
|
+
readonly internalType: "address";
|
|
484
|
+
}, {
|
|
485
|
+
readonly name: "amountOut";
|
|
486
|
+
readonly type: "uint256";
|
|
487
|
+
readonly indexed: false;
|
|
488
|
+
readonly internalType: "uint256";
|
|
489
|
+
}, {
|
|
490
|
+
readonly name: "fees";
|
|
491
|
+
readonly type: "uint256";
|
|
492
|
+
readonly indexed: false;
|
|
493
|
+
readonly internalType: "uint256";
|
|
494
|
+
}];
|
|
495
|
+
readonly anonymous: false;
|
|
496
|
+
}, {
|
|
497
|
+
readonly type: "event";
|
|
498
|
+
readonly name: "SwapAndStake";
|
|
499
|
+
readonly inputs: readonly [{
|
|
500
|
+
readonly name: "sender";
|
|
501
|
+
readonly type: "address";
|
|
502
|
+
readonly indexed: true;
|
|
503
|
+
readonly internalType: "address";
|
|
504
|
+
}, {
|
|
505
|
+
readonly name: "receiver";
|
|
506
|
+
readonly type: "address";
|
|
507
|
+
readonly indexed: true;
|
|
508
|
+
readonly internalType: "address";
|
|
509
|
+
}, {
|
|
510
|
+
readonly name: "rewardVault";
|
|
511
|
+
readonly type: "address";
|
|
512
|
+
readonly indexed: true;
|
|
513
|
+
readonly internalType: "address";
|
|
514
|
+
}, {
|
|
515
|
+
readonly name: "amount";
|
|
516
|
+
readonly type: "uint256";
|
|
517
|
+
readonly indexed: false;
|
|
518
|
+
readonly internalType: "uint256";
|
|
519
|
+
}];
|
|
520
|
+
readonly anonymous: false;
|
|
521
|
+
}, {
|
|
522
|
+
readonly type: "event";
|
|
523
|
+
readonly name: "Unpaused";
|
|
524
|
+
readonly inputs: readonly [{
|
|
525
|
+
readonly name: "account";
|
|
526
|
+
readonly type: "address";
|
|
527
|
+
readonly indexed: false;
|
|
528
|
+
readonly internalType: "address";
|
|
529
|
+
}];
|
|
530
|
+
readonly anonymous: false;
|
|
531
|
+
}, {
|
|
532
|
+
readonly type: "error";
|
|
533
|
+
readonly name: "AccessControlBadConfirmation";
|
|
534
|
+
readonly inputs: readonly [];
|
|
535
|
+
}, {
|
|
536
|
+
readonly type: "error";
|
|
537
|
+
readonly name: "AccessControlUnauthorizedAccount";
|
|
538
|
+
readonly inputs: readonly [{
|
|
539
|
+
readonly name: "account";
|
|
540
|
+
readonly type: "address";
|
|
541
|
+
readonly internalType: "address";
|
|
542
|
+
}, {
|
|
543
|
+
readonly name: "neededRole";
|
|
544
|
+
readonly type: "bytes32";
|
|
545
|
+
readonly internalType: "bytes32";
|
|
546
|
+
}];
|
|
547
|
+
}, {
|
|
548
|
+
readonly type: "error";
|
|
549
|
+
readonly name: "AggregatorNotWhitelisted";
|
|
550
|
+
readonly inputs: readonly [];
|
|
551
|
+
}, {
|
|
552
|
+
readonly type: "error";
|
|
553
|
+
readonly name: "EnforcedPause";
|
|
554
|
+
readonly inputs: readonly [];
|
|
555
|
+
}, {
|
|
556
|
+
readonly type: "error";
|
|
557
|
+
readonly name: "ExpectedPause";
|
|
558
|
+
readonly inputs: readonly [];
|
|
559
|
+
}, {
|
|
560
|
+
readonly type: "error";
|
|
561
|
+
readonly name: "InvalidInputToken";
|
|
562
|
+
readonly inputs: readonly [];
|
|
563
|
+
}, {
|
|
564
|
+
readonly type: "error";
|
|
565
|
+
readonly name: "InvalidNativeTokenAmount";
|
|
566
|
+
readonly inputs: readonly [];
|
|
567
|
+
}, {
|
|
568
|
+
readonly type: "error";
|
|
569
|
+
readonly name: "InvalidOutputToken";
|
|
570
|
+
readonly inputs: readonly [];
|
|
571
|
+
}, {
|
|
572
|
+
readonly type: "error";
|
|
573
|
+
readonly name: "Reentrancy";
|
|
574
|
+
readonly inputs: readonly [];
|
|
575
|
+
}, {
|
|
576
|
+
readonly type: "error";
|
|
577
|
+
readonly name: "RewardVaultNotWhitelisted";
|
|
578
|
+
readonly inputs: readonly [];
|
|
579
|
+
}, {
|
|
580
|
+
readonly type: "error";
|
|
581
|
+
readonly name: "TokenOutCannotBeSame";
|
|
582
|
+
readonly inputs: readonly [];
|
|
583
|
+
}, {
|
|
584
|
+
readonly type: "error";
|
|
585
|
+
readonly name: "TokenOutIsNotStakeToken";
|
|
586
|
+
readonly inputs: readonly [];
|
|
587
|
+
}, {
|
|
588
|
+
readonly type: "error";
|
|
589
|
+
readonly name: "ZeroAddress";
|
|
590
|
+
readonly inputs: readonly [];
|
|
591
|
+
}];
|
|
592
|
+
|
|
593
|
+
export { aggregatorsRouterAbi as a };
|