@ape.swap/bonds-sdk 1.1.0-test.32 → 1.1.0-test.40
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/components/BondRows/BondRow.d.ts +1 -0
- package/dist/components/BondRows/BondRowHeader.d.ts +2 -3
- package/dist/components/SlippageModal/index.d.ts +3 -0
- package/dist/components/uikit-sdk/Modal/index.d.ts +1 -1
- package/dist/components/uikit-sdk/Toggle/index.d.ts +8 -0
- package/dist/components/uikit-sdk/Toggle/styles.d.ts +3 -0
- package/dist/components/uikit-sdk/TokenImage/index.d.ts +1 -1
- package/dist/components/uikit-sdk/index.d.ts +1 -0
- package/dist/config/abi/types/Bond.d.ts +176 -221
- package/dist/config/abi/types/BondNft.d.ts +160 -207
- package/dist/config/abi/types/Erc20_bytes32.d.ts +11 -11
- package/dist/config/abi/types/LaunchBonds.d.ts +299 -355
- package/dist/config/abi/types/LockVeAbond.d.ts +328 -434
- package/dist/config/abi/types/MigrationBond.d.ts +268 -330
- package/dist/config/abi/types/MigrationFveAbond.d.ts +83 -89
- package/dist/config/abi/types/MiniComplexRewarder.d.ts +99 -145
- package/dist/config/abi/types/Multicallv2.d.ts +35 -46
- package/dist/config/abi/types/Multicallv3.d.ts +14 -14
- package/dist/config/abi/types/common.d.ts +3 -3
- package/dist/config/constants/queryKeys.d.ts +3 -1
- package/dist/config/constants/tokens.d.ts +2 -2
- package/dist/hooks/useTokenFromZapList.d.ts +1 -1
- package/dist/hooks/useTopThreeTags.d.ts +1 -1
- package/dist/main.d.ts +4 -3
- package/dist/main.js +21505 -21271
- package/dist/scss/BondModal.scss +68 -72
- package/dist/scss/Bonds.scss +2 -1
- package/dist/scss/index.scss +12 -12
- package/dist/state/allowance/useAllowance.d.ts +8 -4
- package/dist/state/bonds/useBondsData.d.ts +4 -0
- package/dist/state/bonds/useHotBonds.d.ts +3 -0
- package/dist/state/slippage/useSlippage.d.ts +1 -0
- package/dist/state/zap/getChainParam.d.ts +1 -1
- package/dist/utils/getNativeTicker.d.ts +3 -3
- package/dist/views/BondModal/BondModal.d.ts +4 -7
- package/dist/views/BondModal/index.d.ts +2 -2
- package/dist/views/Bonds/Bonds.d.ts +6 -9
- package/dist/views/Bonds/components/CheckURL/index.d.ts +4 -0
- package/dist/views/Bonds/index.d.ts +2 -2
- package/dist/views/Bonds/utils.d.ts +12 -0
- package/dist/views/FullBondsView/FullBondsView.d.ts +7 -0
- package/dist/views/FullBondsView/index.d.ts +3 -0
- package/dist/views/YourBonds/YourBonds.d.ts +1 -6
- package/dist/views/YourBonds/index.d.ts +3 -0
- package/package.json +3 -1
- /package/dist/{enum → config/constants}/tooltips.d.ts +0 -0
|
@@ -2,14 +2,13 @@
|
|
|
2
2
|
import React from 'react';
|
|
3
3
|
import '../../scss/BondRowHeader.scss';
|
|
4
4
|
interface BondRowHeaderProps {
|
|
5
|
-
|
|
5
|
+
searchQuery: string;
|
|
6
|
+
setSearchQuery: (value: string) => void;
|
|
6
7
|
setChainFilterOption: (newValue: string[]) => void;
|
|
7
8
|
chainFilterOption: string[];
|
|
8
9
|
filterOptions: string[];
|
|
9
10
|
filterOption: string;
|
|
10
11
|
setFilterOption: (newOption: string) => void;
|
|
11
|
-
onInputChange: (event: React.ChangeEvent<HTMLInputElement>) => void;
|
|
12
|
-
onHandleQueryChange: (value: string) => void;
|
|
13
12
|
onSort: (key: 'discount' | 'arr' | 'terms' | 'tokensRemaining') => void;
|
|
14
13
|
}
|
|
15
14
|
declare const BondRowHeader: React.FC<BondRowHeaderProps>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { ModalProps } from './types';
|
|
3
|
-
declare const Modal: ({ children, onDismiss, open, title, zIndex, onAnimationComplete, backdrop, ...props }: ModalProps) => React.JSX.Element;
|
|
3
|
+
declare const Modal: ({ children, onDismiss, open, title, zIndex, onAnimationComplete, backdrop, ...props }: ModalProps | any) => React.JSX.Element;
|
|
4
4
|
export default Modal;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
declare const Toggle: ({ options, activeOption, handleToggle, claimableBillsAmount, }: {
|
|
3
|
+
options: string[];
|
|
4
|
+
activeOption: string;
|
|
5
|
+
handleToggle: (newOption: string) => void;
|
|
6
|
+
claimableBillsAmount?: string;
|
|
7
|
+
}) => React.JSX.Element;
|
|
8
|
+
export default Toggle;
|
|
@@ -5,6 +5,7 @@ export { default as CheckBox } from './Checkbox';
|
|
|
5
5
|
export { default as Skeleton } from './Skeleton';
|
|
6
6
|
export { default as TooltipBubble } from './TooltipBubble';
|
|
7
7
|
export { default as Modal } from './Modal';
|
|
8
|
+
export { default as Toggle } from './Toggle';
|
|
8
9
|
export { Button, IconButton } from './Button';
|
|
9
10
|
export { Select, SelectItem } from './Select';
|
|
10
11
|
export { Tag, ListTag } from './Tag';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import type { BaseContract, BigNumber, BigNumberish, BytesLike, CallOverrides, ContractTransaction, Overrides, PopulatedTransaction, Signer, utils } from
|
|
2
|
-
import type { FunctionFragment, Result, EventFragment } from
|
|
3
|
-
import type { Listener, Provider } from
|
|
4
|
-
import type { TypedEventFilter, TypedEvent, TypedListener, OnEvent, PromiseOrValue } from
|
|
1
|
+
import type { BaseContract, BigNumber, BigNumberish, BytesLike, CallOverrides, ContractTransaction, Overrides, PopulatedTransaction, Signer, utils } from 'ethers';
|
|
2
|
+
import type { FunctionFragment, Result, EventFragment } from '@ethersproject/abi';
|
|
3
|
+
import type { Listener, Provider } from '@ethersproject/providers';
|
|
4
|
+
import type { TypedEventFilter, TypedEvent, TypedListener, OnEvent, PromiseOrValue } from './common';
|
|
5
5
|
export declare namespace ICustomBill {
|
|
6
6
|
type BillStruct = {
|
|
7
7
|
payout: PromiseOrValue<BigNumberish>;
|
|
@@ -12,15 +12,7 @@ export declare namespace ICustomBill {
|
|
|
12
12
|
lastClaimTimestamp: PromiseOrValue<BigNumberish>;
|
|
13
13
|
truePricePaid: PromiseOrValue<BigNumberish>;
|
|
14
14
|
};
|
|
15
|
-
type BillStructOutput = [
|
|
16
|
-
BigNumber,
|
|
17
|
-
BigNumber,
|
|
18
|
-
BigNumber,
|
|
19
|
-
BigNumber,
|
|
20
|
-
BigNumber,
|
|
21
|
-
BigNumber,
|
|
22
|
-
BigNumber
|
|
23
|
-
] & {
|
|
15
|
+
type BillStructOutput = [BigNumber, BigNumber, BigNumber, BigNumber, BigNumber, BigNumber, BigNumber] & {
|
|
24
16
|
payout: BigNumber;
|
|
25
17
|
payoutClaimed: BigNumber;
|
|
26
18
|
vesting: BigNumber;
|
|
@@ -32,85 +24,77 @@ export declare namespace ICustomBill {
|
|
|
32
24
|
}
|
|
33
25
|
export interface BondInterface extends utils.Interface {
|
|
34
26
|
functions: {
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
27
|
+
'DAO()': FunctionFragment;
|
|
28
|
+
'adjustment()': FunctionFragment;
|
|
29
|
+
'batchRedeem(uint256[])': FunctionFragment;
|
|
30
|
+
'billInfo(uint256)': FunctionFragment;
|
|
31
|
+
'billNft()': FunctionFragment;
|
|
32
|
+
'billPrice()': FunctionFragment;
|
|
33
|
+
'changeTreasury(address)': FunctionFragment;
|
|
34
|
+
'currentDebt()': FunctionFragment;
|
|
35
|
+
'currentFee()': FunctionFragment;
|
|
36
|
+
'customTreasury()': FunctionFragment;
|
|
37
|
+
'debtDecay()': FunctionFragment;
|
|
38
|
+
'debtRatio()': FunctionFragment;
|
|
39
|
+
'deposit(uint256,uint256,address)': FunctionFragment;
|
|
40
|
+
'getBillIds(address)': FunctionFragment;
|
|
41
|
+
'getBillIdsInRange(address,uint256,uint256)': FunctionFragment;
|
|
42
|
+
'initialize(address[7],uint256[],uint256[],bool)': FunctionFragment;
|
|
43
|
+
'initializeBill(uint256,uint256,uint256,uint256,uint256,uint256)': FunctionFragment;
|
|
44
|
+
'lastDecay()': FunctionFragment;
|
|
45
|
+
'maxPayout()': FunctionFragment;
|
|
46
|
+
'paySubsidy()': FunctionFragment;
|
|
47
|
+
'payoutFor(uint256)': FunctionFragment;
|
|
48
|
+
'payoutSinceLastSubsidy()': FunctionFragment;
|
|
49
|
+
'payoutToken()': FunctionFragment;
|
|
50
|
+
'pendingPayoutFor(uint256)': FunctionFragment;
|
|
51
|
+
'percentVestedFor(uint256)': FunctionFragment;
|
|
52
|
+
'policy()': FunctionFragment;
|
|
53
|
+
'principalToken()': FunctionFragment;
|
|
54
|
+
'pullPolicy()': FunctionFragment;
|
|
55
|
+
'pushPolicy(address)': FunctionFragment;
|
|
56
|
+
'redeem(uint256)': FunctionFragment;
|
|
57
|
+
'renouncePolicy()': FunctionFragment;
|
|
58
|
+
'setAdjustment(bool,uint256,uint256,uint256)': FunctionFragment;
|
|
59
|
+
'setBillTerms(uint8,uint256)': FunctionFragment;
|
|
60
|
+
'subsidyRouter()': FunctionFragment;
|
|
61
|
+
'terms()': FunctionFragment;
|
|
62
|
+
'totalDebt()': FunctionFragment;
|
|
63
|
+
'totalPayoutGiven()': FunctionFragment;
|
|
64
|
+
'totalPrincipalBilled()': FunctionFragment;
|
|
65
|
+
'treasury()': FunctionFragment;
|
|
66
|
+
'trueBillPrice()': FunctionFragment;
|
|
67
|
+
'userBillIds()': FunctionFragment;
|
|
68
|
+
'maxTotalPayout()': FunctionFragment;
|
|
69
|
+
'getMaxTotalPayout()': FunctionFragment;
|
|
70
|
+
'pendingPayout(uint256)': FunctionFragment;
|
|
71
|
+
'pendingVesting(uint256)': FunctionFragment;
|
|
72
|
+
'getBillInfo(uint256)': FunctionFragment;
|
|
73
|
+
'claimablePayout(uint256)': FunctionFragment;
|
|
82
74
|
};
|
|
83
|
-
getFunction(nameOrSignatureOrTopic:
|
|
84
|
-
encodeFunctionData(functionFragment:
|
|
85
|
-
encodeFunctionData(functionFragment:
|
|
86
|
-
encodeFunctionData(functionFragment:
|
|
87
|
-
encodeFunctionData(functionFragment:
|
|
88
|
-
encodeFunctionData(functionFragment:
|
|
89
|
-
encodeFunctionData(functionFragment:
|
|
90
|
-
encodeFunctionData(functionFragment:
|
|
91
|
-
encodeFunctionData(functionFragment:
|
|
92
|
-
encodeFunctionData(functionFragment:
|
|
93
|
-
encodeFunctionData(functionFragment:
|
|
94
|
-
encodeFunctionData(functionFragment:
|
|
95
|
-
encodeFunctionData(functionFragment:
|
|
96
|
-
encodeFunctionData(functionFragment:
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
]): string;
|
|
101
|
-
encodeFunctionData(functionFragment: "getBillIds", values: [PromiseOrValue<string>]): string;
|
|
102
|
-
encodeFunctionData(functionFragment: "getBillIdsInRange", values: [
|
|
103
|
-
PromiseOrValue<string>,
|
|
104
|
-
PromiseOrValue<BigNumberish>,
|
|
105
|
-
PromiseOrValue<BigNumberish>
|
|
106
|
-
]): string;
|
|
107
|
-
encodeFunctionData(functionFragment: "initialize", values: [
|
|
75
|
+
getFunction(nameOrSignatureOrTopic: 'DAO' | 'adjustment' | 'batchRedeem' | 'billInfo' | 'billNft' | 'billPrice' | 'changeTreasury' | 'currentDebt' | 'currentFee' | 'customTreasury' | 'debtDecay' | 'debtRatio' | 'deposit' | 'getBillIds' | 'getBillIdsInRange' | 'initialize' | 'initializeBill' | 'lastDecay' | 'maxPayout' | 'paySubsidy' | 'payoutFor' | 'payoutSinceLastSubsidy' | 'payoutToken' | 'pendingPayoutFor' | 'percentVestedFor' | 'policy' | 'principalToken' | 'pullPolicy' | 'pushPolicy' | 'redeem' | 'renouncePolicy' | 'setAdjustment' | 'setBillTerms' | 'subsidyRouter' | 'terms' | 'totalDebt' | 'totalPayoutGiven' | 'totalPrincipalBilled' | 'treasury' | 'trueBillPrice' | 'userBillIds' | 'maxTotalPayout' | 'getMaxTotalPayout' | 'pendingPayout' | 'pendingVesting' | 'getBillInfo' | 'claimablePayout'): FunctionFragment;
|
|
76
|
+
encodeFunctionData(functionFragment: 'DAO', values?: undefined): string;
|
|
77
|
+
encodeFunctionData(functionFragment: 'adjustment', values?: undefined): string;
|
|
78
|
+
encodeFunctionData(functionFragment: 'batchRedeem', values: [PromiseOrValue<BigNumberish>[]]): string;
|
|
79
|
+
encodeFunctionData(functionFragment: 'billInfo', values: [PromiseOrValue<BigNumberish>]): string;
|
|
80
|
+
encodeFunctionData(functionFragment: 'billNft', values?: undefined): string;
|
|
81
|
+
encodeFunctionData(functionFragment: 'billPrice', values?: undefined): string;
|
|
82
|
+
encodeFunctionData(functionFragment: 'changeTreasury', values: [PromiseOrValue<string>]): string;
|
|
83
|
+
encodeFunctionData(functionFragment: 'currentDebt', values?: undefined): string;
|
|
84
|
+
encodeFunctionData(functionFragment: 'currentFee', values?: undefined): string;
|
|
85
|
+
encodeFunctionData(functionFragment: 'customTreasury', values?: undefined): string;
|
|
86
|
+
encodeFunctionData(functionFragment: 'debtDecay', values?: undefined): string;
|
|
87
|
+
encodeFunctionData(functionFragment: 'debtRatio', values?: undefined): string;
|
|
88
|
+
encodeFunctionData(functionFragment: 'deposit', values: [PromiseOrValue<BigNumberish>, PromiseOrValue<BigNumberish>, PromiseOrValue<string>]): string;
|
|
89
|
+
encodeFunctionData(functionFragment: 'getBillIds', values: [PromiseOrValue<string>]): string;
|
|
90
|
+
encodeFunctionData(functionFragment: 'getBillIdsInRange', values: [PromiseOrValue<string>, PromiseOrValue<BigNumberish>, PromiseOrValue<BigNumberish>]): string;
|
|
91
|
+
encodeFunctionData(functionFragment: 'initialize', values: [
|
|
108
92
|
PromiseOrValue<string>[],
|
|
109
93
|
PromiseOrValue<BigNumberish>[],
|
|
110
94
|
PromiseOrValue<BigNumberish>[],
|
|
111
95
|
PromiseOrValue<boolean>
|
|
112
96
|
]): string;
|
|
113
|
-
encodeFunctionData(functionFragment:
|
|
97
|
+
encodeFunctionData(functionFragment: 'initializeBill', values: [
|
|
114
98
|
PromiseOrValue<BigNumberish>,
|
|
115
99
|
PromiseOrValue<BigNumberish>,
|
|
116
100
|
PromiseOrValue<BigNumberish>,
|
|
@@ -118,104 +102,104 @@ export interface BondInterface extends utils.Interface {
|
|
|
118
102
|
PromiseOrValue<BigNumberish>,
|
|
119
103
|
PromiseOrValue<BigNumberish>
|
|
120
104
|
]): string;
|
|
121
|
-
encodeFunctionData(functionFragment:
|
|
122
|
-
encodeFunctionData(functionFragment:
|
|
123
|
-
encodeFunctionData(functionFragment:
|
|
124
|
-
encodeFunctionData(functionFragment:
|
|
125
|
-
encodeFunctionData(functionFragment:
|
|
126
|
-
encodeFunctionData(functionFragment:
|
|
127
|
-
encodeFunctionData(functionFragment:
|
|
128
|
-
encodeFunctionData(functionFragment:
|
|
129
|
-
encodeFunctionData(functionFragment:
|
|
130
|
-
encodeFunctionData(functionFragment:
|
|
131
|
-
encodeFunctionData(functionFragment:
|
|
132
|
-
encodeFunctionData(functionFragment:
|
|
133
|
-
encodeFunctionData(functionFragment:
|
|
134
|
-
encodeFunctionData(functionFragment:
|
|
135
|
-
encodeFunctionData(functionFragment:
|
|
105
|
+
encodeFunctionData(functionFragment: 'lastDecay', values?: undefined): string;
|
|
106
|
+
encodeFunctionData(functionFragment: 'maxPayout', values?: undefined): string;
|
|
107
|
+
encodeFunctionData(functionFragment: 'paySubsidy', values?: undefined): string;
|
|
108
|
+
encodeFunctionData(functionFragment: 'payoutFor', values: [PromiseOrValue<BigNumberish>]): string;
|
|
109
|
+
encodeFunctionData(functionFragment: 'payoutSinceLastSubsidy', values?: undefined): string;
|
|
110
|
+
encodeFunctionData(functionFragment: 'payoutToken', values?: undefined): string;
|
|
111
|
+
encodeFunctionData(functionFragment: 'pendingPayoutFor', values: [PromiseOrValue<BigNumberish>]): string;
|
|
112
|
+
encodeFunctionData(functionFragment: 'percentVestedFor', values: [PromiseOrValue<BigNumberish>]): string;
|
|
113
|
+
encodeFunctionData(functionFragment: 'policy', values?: undefined): string;
|
|
114
|
+
encodeFunctionData(functionFragment: 'principalToken', values?: undefined): string;
|
|
115
|
+
encodeFunctionData(functionFragment: 'pullPolicy', values?: undefined): string;
|
|
116
|
+
encodeFunctionData(functionFragment: 'pushPolicy', values: [PromiseOrValue<string>]): string;
|
|
117
|
+
encodeFunctionData(functionFragment: 'redeem', values: [PromiseOrValue<BigNumberish>]): string;
|
|
118
|
+
encodeFunctionData(functionFragment: 'renouncePolicy', values?: undefined): string;
|
|
119
|
+
encodeFunctionData(functionFragment: 'setAdjustment', values: [
|
|
136
120
|
PromiseOrValue<boolean>,
|
|
137
121
|
PromiseOrValue<BigNumberish>,
|
|
138
122
|
PromiseOrValue<BigNumberish>,
|
|
139
123
|
PromiseOrValue<BigNumberish>
|
|
140
124
|
]): string;
|
|
141
|
-
encodeFunctionData(functionFragment:
|
|
142
|
-
encodeFunctionData(functionFragment:
|
|
143
|
-
encodeFunctionData(functionFragment:
|
|
144
|
-
encodeFunctionData(functionFragment:
|
|
145
|
-
encodeFunctionData(functionFragment:
|
|
146
|
-
encodeFunctionData(functionFragment:
|
|
147
|
-
encodeFunctionData(functionFragment:
|
|
148
|
-
encodeFunctionData(functionFragment:
|
|
149
|
-
encodeFunctionData(functionFragment:
|
|
150
|
-
encodeFunctionData(functionFragment:
|
|
151
|
-
encodeFunctionData(functionFragment:
|
|
152
|
-
encodeFunctionData(functionFragment:
|
|
153
|
-
encodeFunctionData(functionFragment:
|
|
154
|
-
encodeFunctionData(functionFragment:
|
|
155
|
-
encodeFunctionData(functionFragment:
|
|
156
|
-
decodeFunctionResult(functionFragment:
|
|
157
|
-
decodeFunctionResult(functionFragment:
|
|
158
|
-
decodeFunctionResult(functionFragment:
|
|
159
|
-
decodeFunctionResult(functionFragment:
|
|
160
|
-
decodeFunctionResult(functionFragment:
|
|
161
|
-
decodeFunctionResult(functionFragment:
|
|
162
|
-
decodeFunctionResult(functionFragment:
|
|
163
|
-
decodeFunctionResult(functionFragment:
|
|
164
|
-
decodeFunctionResult(functionFragment:
|
|
165
|
-
decodeFunctionResult(functionFragment:
|
|
166
|
-
decodeFunctionResult(functionFragment:
|
|
167
|
-
decodeFunctionResult(functionFragment:
|
|
168
|
-
decodeFunctionResult(functionFragment:
|
|
169
|
-
decodeFunctionResult(functionFragment:
|
|
170
|
-
decodeFunctionResult(functionFragment:
|
|
171
|
-
decodeFunctionResult(functionFragment:
|
|
172
|
-
decodeFunctionResult(functionFragment:
|
|
173
|
-
decodeFunctionResult(functionFragment:
|
|
174
|
-
decodeFunctionResult(functionFragment:
|
|
175
|
-
decodeFunctionResult(functionFragment:
|
|
176
|
-
decodeFunctionResult(functionFragment:
|
|
177
|
-
decodeFunctionResult(functionFragment:
|
|
178
|
-
decodeFunctionResult(functionFragment:
|
|
179
|
-
decodeFunctionResult(functionFragment:
|
|
180
|
-
decodeFunctionResult(functionFragment:
|
|
181
|
-
decodeFunctionResult(functionFragment:
|
|
182
|
-
decodeFunctionResult(functionFragment:
|
|
183
|
-
decodeFunctionResult(functionFragment:
|
|
184
|
-
decodeFunctionResult(functionFragment:
|
|
185
|
-
decodeFunctionResult(functionFragment:
|
|
186
|
-
decodeFunctionResult(functionFragment:
|
|
187
|
-
decodeFunctionResult(functionFragment:
|
|
188
|
-
decodeFunctionResult(functionFragment:
|
|
189
|
-
decodeFunctionResult(functionFragment:
|
|
190
|
-
decodeFunctionResult(functionFragment:
|
|
191
|
-
decodeFunctionResult(functionFragment:
|
|
192
|
-
decodeFunctionResult(functionFragment:
|
|
193
|
-
decodeFunctionResult(functionFragment:
|
|
194
|
-
decodeFunctionResult(functionFragment:
|
|
195
|
-
decodeFunctionResult(functionFragment:
|
|
196
|
-
decodeFunctionResult(functionFragment:
|
|
197
|
-
decodeFunctionResult(functionFragment:
|
|
198
|
-
decodeFunctionResult(functionFragment:
|
|
199
|
-
decodeFunctionResult(functionFragment:
|
|
200
|
-
decodeFunctionResult(functionFragment:
|
|
201
|
-
decodeFunctionResult(functionFragment:
|
|
202
|
-
decodeFunctionResult(functionFragment:
|
|
125
|
+
encodeFunctionData(functionFragment: 'setBillTerms', values: [PromiseOrValue<BigNumberish>, PromiseOrValue<BigNumberish>]): string;
|
|
126
|
+
encodeFunctionData(functionFragment: 'subsidyRouter', values?: undefined): string;
|
|
127
|
+
encodeFunctionData(functionFragment: 'terms', values?: undefined): string;
|
|
128
|
+
encodeFunctionData(functionFragment: 'totalDebt', values?: undefined): string;
|
|
129
|
+
encodeFunctionData(functionFragment: 'totalPayoutGiven', values?: undefined): string;
|
|
130
|
+
encodeFunctionData(functionFragment: 'totalPrincipalBilled', values?: undefined): string;
|
|
131
|
+
encodeFunctionData(functionFragment: 'treasury', values?: undefined): string;
|
|
132
|
+
encodeFunctionData(functionFragment: 'trueBillPrice', values?: undefined): string;
|
|
133
|
+
encodeFunctionData(functionFragment: 'userBillIds', values?: undefined): string;
|
|
134
|
+
encodeFunctionData(functionFragment: 'maxTotalPayout', values?: undefined): string;
|
|
135
|
+
encodeFunctionData(functionFragment: 'getMaxTotalPayout', values?: undefined): string;
|
|
136
|
+
encodeFunctionData(functionFragment: 'pendingPayout', values: [PromiseOrValue<BigNumberish>]): string;
|
|
137
|
+
encodeFunctionData(functionFragment: 'pendingVesting', values: [PromiseOrValue<BigNumberish>]): string;
|
|
138
|
+
encodeFunctionData(functionFragment: 'getBillInfo', values: [PromiseOrValue<BigNumberish>]): string;
|
|
139
|
+
encodeFunctionData(functionFragment: 'claimablePayout', values: [PromiseOrValue<BigNumberish>]): string;
|
|
140
|
+
decodeFunctionResult(functionFragment: 'DAO', data: BytesLike): Result;
|
|
141
|
+
decodeFunctionResult(functionFragment: 'adjustment', data: BytesLike): Result;
|
|
142
|
+
decodeFunctionResult(functionFragment: 'batchRedeem', data: BytesLike): Result;
|
|
143
|
+
decodeFunctionResult(functionFragment: 'billInfo', data: BytesLike): Result;
|
|
144
|
+
decodeFunctionResult(functionFragment: 'billNft', data: BytesLike): Result;
|
|
145
|
+
decodeFunctionResult(functionFragment: 'billPrice', data: BytesLike): Result;
|
|
146
|
+
decodeFunctionResult(functionFragment: 'changeTreasury', data: BytesLike): Result;
|
|
147
|
+
decodeFunctionResult(functionFragment: 'currentDebt', data: BytesLike): Result;
|
|
148
|
+
decodeFunctionResult(functionFragment: 'currentFee', data: BytesLike): Result;
|
|
149
|
+
decodeFunctionResult(functionFragment: 'customTreasury', data: BytesLike): Result;
|
|
150
|
+
decodeFunctionResult(functionFragment: 'debtDecay', data: BytesLike): Result;
|
|
151
|
+
decodeFunctionResult(functionFragment: 'debtRatio', data: BytesLike): Result;
|
|
152
|
+
decodeFunctionResult(functionFragment: 'deposit', data: BytesLike): Result;
|
|
153
|
+
decodeFunctionResult(functionFragment: 'getBillIds', data: BytesLike): Result;
|
|
154
|
+
decodeFunctionResult(functionFragment: 'getBillIdsInRange', data: BytesLike): Result;
|
|
155
|
+
decodeFunctionResult(functionFragment: 'initialize', data: BytesLike): Result;
|
|
156
|
+
decodeFunctionResult(functionFragment: 'initializeBill', data: BytesLike): Result;
|
|
157
|
+
decodeFunctionResult(functionFragment: 'lastDecay', data: BytesLike): Result;
|
|
158
|
+
decodeFunctionResult(functionFragment: 'maxPayout', data: BytesLike): Result;
|
|
159
|
+
decodeFunctionResult(functionFragment: 'paySubsidy', data: BytesLike): Result;
|
|
160
|
+
decodeFunctionResult(functionFragment: 'payoutFor', data: BytesLike): Result;
|
|
161
|
+
decodeFunctionResult(functionFragment: 'payoutSinceLastSubsidy', data: BytesLike): Result;
|
|
162
|
+
decodeFunctionResult(functionFragment: 'payoutToken', data: BytesLike): Result;
|
|
163
|
+
decodeFunctionResult(functionFragment: 'pendingPayoutFor', data: BytesLike): Result;
|
|
164
|
+
decodeFunctionResult(functionFragment: 'percentVestedFor', data: BytesLike): Result;
|
|
165
|
+
decodeFunctionResult(functionFragment: 'policy', data: BytesLike): Result;
|
|
166
|
+
decodeFunctionResult(functionFragment: 'principalToken', data: BytesLike): Result;
|
|
167
|
+
decodeFunctionResult(functionFragment: 'pullPolicy', data: BytesLike): Result;
|
|
168
|
+
decodeFunctionResult(functionFragment: 'pushPolicy', data: BytesLike): Result;
|
|
169
|
+
decodeFunctionResult(functionFragment: 'redeem', data: BytesLike): Result;
|
|
170
|
+
decodeFunctionResult(functionFragment: 'renouncePolicy', data: BytesLike): Result;
|
|
171
|
+
decodeFunctionResult(functionFragment: 'setAdjustment', data: BytesLike): Result;
|
|
172
|
+
decodeFunctionResult(functionFragment: 'setBillTerms', data: BytesLike): Result;
|
|
173
|
+
decodeFunctionResult(functionFragment: 'subsidyRouter', data: BytesLike): Result;
|
|
174
|
+
decodeFunctionResult(functionFragment: 'terms', data: BytesLike): Result;
|
|
175
|
+
decodeFunctionResult(functionFragment: 'totalDebt', data: BytesLike): Result;
|
|
176
|
+
decodeFunctionResult(functionFragment: 'totalPayoutGiven', data: BytesLike): Result;
|
|
177
|
+
decodeFunctionResult(functionFragment: 'totalPrincipalBilled', data: BytesLike): Result;
|
|
178
|
+
decodeFunctionResult(functionFragment: 'treasury', data: BytesLike): Result;
|
|
179
|
+
decodeFunctionResult(functionFragment: 'trueBillPrice', data: BytesLike): Result;
|
|
180
|
+
decodeFunctionResult(functionFragment: 'userBillIds', data: BytesLike): Result;
|
|
181
|
+
decodeFunctionResult(functionFragment: 'maxTotalPayout', data: BytesLike): Result;
|
|
182
|
+
decodeFunctionResult(functionFragment: 'getMaxTotalPayout', data: BytesLike): Result;
|
|
183
|
+
decodeFunctionResult(functionFragment: 'pendingPayout', data: BytesLike): Result;
|
|
184
|
+
decodeFunctionResult(functionFragment: 'pendingVesting', data: BytesLike): Result;
|
|
185
|
+
decodeFunctionResult(functionFragment: 'getBillInfo', data: BytesLike): Result;
|
|
186
|
+
decodeFunctionResult(functionFragment: 'claimablePayout', data: BytesLike): Result;
|
|
203
187
|
events: {
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
188
|
+
'BillCreated(uint256,uint256,uint256,uint256)': EventFragment;
|
|
189
|
+
'BillPriceChanged(uint256,uint256)': EventFragment;
|
|
190
|
+
'BillRedeemed(uint256,address,uint256,uint256)': EventFragment;
|
|
191
|
+
'ControlVariableAdjustment(uint256,uint256,uint256,bool)': EventFragment;
|
|
192
|
+
'PolicyTransferred(address,address)': EventFragment;
|
|
193
|
+
'SetAdjustment(bool,uint256,uint256,uint256)': EventFragment;
|
|
194
|
+
'TreasuryChanged(address)': EventFragment;
|
|
211
195
|
};
|
|
212
|
-
getEvent(nameOrSignatureOrTopic:
|
|
213
|
-
getEvent(nameOrSignatureOrTopic:
|
|
214
|
-
getEvent(nameOrSignatureOrTopic:
|
|
215
|
-
getEvent(nameOrSignatureOrTopic:
|
|
216
|
-
getEvent(nameOrSignatureOrTopic:
|
|
217
|
-
getEvent(nameOrSignatureOrTopic:
|
|
218
|
-
getEvent(nameOrSignatureOrTopic:
|
|
196
|
+
getEvent(nameOrSignatureOrTopic: 'BillCreated'): EventFragment;
|
|
197
|
+
getEvent(nameOrSignatureOrTopic: 'BillPriceChanged'): EventFragment;
|
|
198
|
+
getEvent(nameOrSignatureOrTopic: 'BillRedeemed'): EventFragment;
|
|
199
|
+
getEvent(nameOrSignatureOrTopic: 'ControlVariableAdjustment'): EventFragment;
|
|
200
|
+
getEvent(nameOrSignatureOrTopic: 'PolicyTransferred'): EventFragment;
|
|
201
|
+
getEvent(nameOrSignatureOrTopic: 'SetAdjustment'): EventFragment;
|
|
202
|
+
getEvent(nameOrSignatureOrTopic: 'TreasuryChanged'): EventFragment;
|
|
219
203
|
}
|
|
220
204
|
export interface BillCreatedEventObject {
|
|
221
205
|
deposit: BigNumber;
|
|
@@ -223,21 +207,13 @@ export interface BillCreatedEventObject {
|
|
|
223
207
|
expires: BigNumber;
|
|
224
208
|
billId: BigNumber;
|
|
225
209
|
}
|
|
226
|
-
export type BillCreatedEvent = TypedEvent<[
|
|
227
|
-
BigNumber,
|
|
228
|
-
BigNumber,
|
|
229
|
-
BigNumber,
|
|
230
|
-
BigNumber
|
|
231
|
-
], BillCreatedEventObject>;
|
|
210
|
+
export type BillCreatedEvent = TypedEvent<[BigNumber, BigNumber, BigNumber, BigNumber], BillCreatedEventObject>;
|
|
232
211
|
export type BillCreatedEventFilter = TypedEventFilter<BillCreatedEvent>;
|
|
233
212
|
export interface BillPriceChangedEventObject {
|
|
234
213
|
internalPrice: BigNumber;
|
|
235
214
|
debtRatio: BigNumber;
|
|
236
215
|
}
|
|
237
|
-
export type BillPriceChangedEvent = TypedEvent<[
|
|
238
|
-
BigNumber,
|
|
239
|
-
BigNumber
|
|
240
|
-
], BillPriceChangedEventObject>;
|
|
216
|
+
export type BillPriceChangedEvent = TypedEvent<[BigNumber, BigNumber], BillPriceChangedEventObject>;
|
|
241
217
|
export type BillPriceChangedEventFilter = TypedEventFilter<BillPriceChangedEvent>;
|
|
242
218
|
export interface BillRedeemedEventObject {
|
|
243
219
|
billId: BigNumber;
|
|
@@ -245,12 +221,7 @@ export interface BillRedeemedEventObject {
|
|
|
245
221
|
payout: BigNumber;
|
|
246
222
|
remaining: BigNumber;
|
|
247
223
|
}
|
|
248
|
-
export type BillRedeemedEvent = TypedEvent<[
|
|
249
|
-
BigNumber,
|
|
250
|
-
string,
|
|
251
|
-
BigNumber,
|
|
252
|
-
BigNumber
|
|
253
|
-
], BillRedeemedEventObject>;
|
|
224
|
+
export type BillRedeemedEvent = TypedEvent<[BigNumber, string, BigNumber, BigNumber], BillRedeemedEventObject>;
|
|
254
225
|
export type BillRedeemedEventFilter = TypedEventFilter<BillRedeemedEvent>;
|
|
255
226
|
export interface ControlVariableAdjustmentEventObject {
|
|
256
227
|
initialBCV: BigNumber;
|
|
@@ -269,10 +240,7 @@ export interface PolicyTransferredEventObject {
|
|
|
269
240
|
previousOwner: string;
|
|
270
241
|
newOwner: string;
|
|
271
242
|
}
|
|
272
|
-
export type PolicyTransferredEvent = TypedEvent<[
|
|
273
|
-
string,
|
|
274
|
-
string
|
|
275
|
-
], PolicyTransferredEventObject>;
|
|
243
|
+
export type PolicyTransferredEvent = TypedEvent<[string, string], PolicyTransferredEventObject>;
|
|
276
244
|
export type PolicyTransferredEventFilter = TypedEventFilter<PolicyTransferredEvent>;
|
|
277
245
|
export interface SetAdjustmentEventObject {
|
|
278
246
|
addition: boolean;
|
|
@@ -280,19 +248,12 @@ export interface SetAdjustmentEventObject {
|
|
|
280
248
|
target: BigNumber;
|
|
281
249
|
buffer: BigNumber;
|
|
282
250
|
}
|
|
283
|
-
export type SetAdjustmentEvent = TypedEvent<[
|
|
284
|
-
boolean,
|
|
285
|
-
BigNumber,
|
|
286
|
-
BigNumber,
|
|
287
|
-
BigNumber
|
|
288
|
-
], SetAdjustmentEventObject>;
|
|
251
|
+
export type SetAdjustmentEvent = TypedEvent<[boolean, BigNumber, BigNumber, BigNumber], SetAdjustmentEventObject>;
|
|
289
252
|
export type SetAdjustmentEventFilter = TypedEventFilter<SetAdjustmentEvent>;
|
|
290
253
|
export interface TreasuryChangedEventObject {
|
|
291
254
|
newTreasury: string;
|
|
292
255
|
}
|
|
293
|
-
export type TreasuryChangedEvent = TypedEvent<[
|
|
294
|
-
string
|
|
295
|
-
], TreasuryChangedEventObject>;
|
|
256
|
+
export type TreasuryChangedEvent = TypedEvent<[string], TreasuryChangedEventObject>;
|
|
296
257
|
export type TreasuryChangedEventFilter = TypedEventFilter<TreasuryChangedEvent>;
|
|
297
258
|
export interface Bond extends BaseContract {
|
|
298
259
|
connect(signerOrProvider: Signer | Provider | string): this;
|
|
@@ -371,10 +332,7 @@ export interface Bond extends BaseContract {
|
|
|
371
332
|
paySubsidy(overrides?: Overrides & {
|
|
372
333
|
from?: PromiseOrValue<string>;
|
|
373
334
|
}): Promise<ContractTransaction>;
|
|
374
|
-
payoutFor(_value: PromiseOrValue<BigNumberish>, overrides?: CallOverrides): Promise<[
|
|
375
|
-
BigNumber,
|
|
376
|
-
BigNumber
|
|
377
|
-
] & {
|
|
335
|
+
payoutFor(_value: PromiseOrValue<BigNumberish>, overrides?: CallOverrides): Promise<[BigNumber, BigNumber] & {
|
|
378
336
|
_payout: BigNumber;
|
|
379
337
|
_fee: BigNumber;
|
|
380
338
|
}>;
|
|
@@ -592,10 +550,7 @@ export interface Bond extends BaseContract {
|
|
|
592
550
|
lastDecay(overrides?: CallOverrides): Promise<BigNumber>;
|
|
593
551
|
maxPayout(overrides?: CallOverrides): Promise<BigNumber>;
|
|
594
552
|
paySubsidy(overrides?: CallOverrides): Promise<BigNumber>;
|
|
595
|
-
payoutFor(_value: PromiseOrValue<BigNumberish>, overrides?: CallOverrides): Promise<[
|
|
596
|
-
BigNumber,
|
|
597
|
-
BigNumber
|
|
598
|
-
] & {
|
|
553
|
+
payoutFor(_value: PromiseOrValue<BigNumberish>, overrides?: CallOverrides): Promise<[BigNumber, BigNumber] & {
|
|
599
554
|
_payout: BigNumber;
|
|
600
555
|
_fee: BigNumber;
|
|
601
556
|
}>;
|
|
@@ -639,19 +594,19 @@ export interface Bond extends BaseContract {
|
|
|
639
594
|
claimablePayout(_billId: PromiseOrValue<BigNumberish>, overrides?: CallOverrides): Promise<BigNumber>;
|
|
640
595
|
};
|
|
641
596
|
filters: {
|
|
642
|
-
|
|
597
|
+
'BillCreated(uint256,uint256,uint256,uint256)'(deposit?: null, payout?: null, expires?: null, billId?: PromiseOrValue<BigNumberish> | null): BillCreatedEventFilter;
|
|
643
598
|
BillCreated(deposit?: null, payout?: null, expires?: null, billId?: PromiseOrValue<BigNumberish> | null): BillCreatedEventFilter;
|
|
644
|
-
|
|
599
|
+
'BillPriceChanged(uint256,uint256)'(internalPrice?: null, debtRatio?: null): BillPriceChangedEventFilter;
|
|
645
600
|
BillPriceChanged(internalPrice?: null, debtRatio?: null): BillPriceChangedEventFilter;
|
|
646
|
-
|
|
601
|
+
'BillRedeemed(uint256,address,uint256,uint256)'(billId?: null, recipient?: null, payout?: null, remaining?: null): BillRedeemedEventFilter;
|
|
647
602
|
BillRedeemed(billId?: null, recipient?: null, payout?: null, remaining?: null): BillRedeemedEventFilter;
|
|
648
|
-
|
|
603
|
+
'ControlVariableAdjustment(uint256,uint256,uint256,bool)'(initialBCV?: null, newBCV?: null, adjustment?: null, addition?: null): ControlVariableAdjustmentEventFilter;
|
|
649
604
|
ControlVariableAdjustment(initialBCV?: null, newBCV?: null, adjustment?: null, addition?: null): ControlVariableAdjustmentEventFilter;
|
|
650
|
-
|
|
605
|
+
'PolicyTransferred(address,address)'(previousOwner?: PromiseOrValue<string> | null, newOwner?: PromiseOrValue<string> | null): PolicyTransferredEventFilter;
|
|
651
606
|
PolicyTransferred(previousOwner?: PromiseOrValue<string> | null, newOwner?: PromiseOrValue<string> | null): PolicyTransferredEventFilter;
|
|
652
|
-
|
|
607
|
+
'SetAdjustment(bool,uint256,uint256,uint256)'(addition?: null, increment?: null, target?: null, buffer?: null): SetAdjustmentEventFilter;
|
|
653
608
|
SetAdjustment(addition?: null, increment?: null, target?: null, buffer?: null): SetAdjustmentEventFilter;
|
|
654
|
-
|
|
609
|
+
'TreasuryChanged(address)'(newTreasury?: null): TreasuryChangedEventFilter;
|
|
655
610
|
TreasuryChanged(newTreasury?: null): TreasuryChangedEventFilter;
|
|
656
611
|
};
|
|
657
612
|
estimateGas: {
|