@ape.swap/bonds-sdk 1.0.358 → 1.0.361
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/BondModal/BondModal.js +17 -64
- package/dist/components/BondModal/helper.d.ts +9 -0
- package/dist/components/BondModal/helper.js +53 -0
- package/dist/components/YourBonds/YourBonds.js +6 -45
- package/dist/components/YourBondsModal/YourBondsModal.js +56 -44
- package/dist/scss/YourBondsModal.scss +7 -6
- package/package.json +1 -1
- package/dist/enum/abis.d.ts +0 -80
- package/dist/enum/abis.js +0 -1
- package/dist/state/bills/cleanBillsData.d.ts +0 -5
- package/dist/state/bills/cleanBillsData.js +0 -41
- package/dist/state/bills/fetchBills.d.ts +0 -4
- package/dist/state/bills/fetchBills.js +0 -61
- package/dist/state/bills/fetchBillsCalls.d.ts +0 -4
- package/dist/state/bills/fetchBillsCalls.js +0 -27
- package/dist/state/bills/fetchBillsUser.d.ts +0 -15
- package/dist/state/bills/fetchBillsUser.js +0 -171
- package/dist/state/bills/getBillNftData.d.ts +0 -9
- package/dist/state/bills/getBillNftData.js +0 -109
- package/dist/state/bills/hooks.d.ts +0 -4
- package/dist/state/bills/hooks.js +0 -142
- package/dist/state/bills/index.d.ts +0 -48
- package/dist/state/bills/index.js +0 -293
- package/dist/state/bills/types.d.ts +0 -168
- package/dist/state/bills/types.js +0 -1
|
@@ -1,168 +0,0 @@
|
|
|
1
|
-
import { BillsConfig, BillVersion, ChainId, Token } from "../../enum/apeswaplists";
|
|
2
|
-
export interface UserBillNft {
|
|
3
|
-
image: string;
|
|
4
|
-
tokenId: string;
|
|
5
|
-
attributes: {
|
|
6
|
-
trait_type: string;
|
|
7
|
-
value: string;
|
|
8
|
-
}[];
|
|
9
|
-
}
|
|
10
|
-
export interface UserBill {
|
|
11
|
-
address: string;
|
|
12
|
-
id: string;
|
|
13
|
-
vesting: string;
|
|
14
|
-
payout: string;
|
|
15
|
-
totalPayout?: string;
|
|
16
|
-
truePricePaid: string;
|
|
17
|
-
lastBlockTimestamp: string;
|
|
18
|
-
pendingRewards: string;
|
|
19
|
-
billNftAddress: string;
|
|
20
|
-
nftData?: UserBillNft;
|
|
21
|
-
}
|
|
22
|
-
export interface Bills extends BillsConfig {
|
|
23
|
-
price?: string;
|
|
24
|
-
priceUsd?: string;
|
|
25
|
-
vestingTime?: string;
|
|
26
|
-
discount?: string;
|
|
27
|
-
currentDebt?: string;
|
|
28
|
-
currentFee?: string;
|
|
29
|
-
debtDecay?: string;
|
|
30
|
-
debtRatio?: string;
|
|
31
|
-
totalDebt?: string;
|
|
32
|
-
totalPayoutGiven?: string;
|
|
33
|
-
totalPrincipalBilled?: string;
|
|
34
|
-
controlVariable?: string;
|
|
35
|
-
minimumPrice?: string;
|
|
36
|
-
maxPayout?: string;
|
|
37
|
-
maxDebt?: string;
|
|
38
|
-
lpPriceUsd?: number;
|
|
39
|
-
earnTokenPrice?: number;
|
|
40
|
-
billNftAddress?: string;
|
|
41
|
-
userOwnedBillsData?: UserBill[];
|
|
42
|
-
userOwnedBillsNftData?: UserBillNft[];
|
|
43
|
-
maxTotalPayout?: string;
|
|
44
|
-
lpPrice?: number;
|
|
45
|
-
maxPayoutTokens?: string;
|
|
46
|
-
startVestingTimestamp?: string;
|
|
47
|
-
totalBonusRewards?: string;
|
|
48
|
-
featuredURLS?: string[];
|
|
49
|
-
partnersURLS?: string[];
|
|
50
|
-
}
|
|
51
|
-
export interface CleanedBondsState {
|
|
52
|
-
index: number;
|
|
53
|
-
cmcId: number | null;
|
|
54
|
-
chainId: ChainId;
|
|
55
|
-
vestingTerm?: number;
|
|
56
|
-
principalTokenName: string;
|
|
57
|
-
principalToken: string;
|
|
58
|
-
principalTokenDecimals: number;
|
|
59
|
-
payoutTokenName: string;
|
|
60
|
-
payoutToken: string;
|
|
61
|
-
payoutTokenDecimals: number;
|
|
62
|
-
soldOut?: boolean;
|
|
63
|
-
tags?: string[];
|
|
64
|
-
contractAddress: string;
|
|
65
|
-
billNftAddress: string;
|
|
66
|
-
inactive?: boolean;
|
|
67
|
-
showcaseTokenName?: string;
|
|
68
|
-
twitter?: string;
|
|
69
|
-
projectLink?: string;
|
|
70
|
-
audit?: string;
|
|
71
|
-
shortDescription?: string;
|
|
72
|
-
fullDescription?: string;
|
|
73
|
-
lpToken?: Token;
|
|
74
|
-
billType?: string;
|
|
75
|
-
billVersion?: BillVersion;
|
|
76
|
-
featuredURLS?: string[];
|
|
77
|
-
partnersURLS?: string[];
|
|
78
|
-
discount?: number;
|
|
79
|
-
principalTokenPrice?: string;
|
|
80
|
-
payoutTokenPrice?: string;
|
|
81
|
-
tokensRemaining?: string;
|
|
82
|
-
maxTotalPayout?: string;
|
|
83
|
-
trueBillPrice?: string;
|
|
84
|
-
maxPayout?: string;
|
|
85
|
-
totalPayoutGiven?: string;
|
|
86
|
-
isHotBond?: boolean;
|
|
87
|
-
userOwnedBillsData?: UserBill[];
|
|
88
|
-
userOwnedBillsNftData?: UserBillNft[];
|
|
89
|
-
}
|
|
90
|
-
export interface BondsDataResponse {
|
|
91
|
-
index: number;
|
|
92
|
-
cmcId?: number;
|
|
93
|
-
label: string;
|
|
94
|
-
chainId: ChainId;
|
|
95
|
-
type: string;
|
|
96
|
-
principalToken: string;
|
|
97
|
-
principalTokenName: string;
|
|
98
|
-
principalTokenDecimals: number;
|
|
99
|
-
payoutToken: string;
|
|
100
|
-
payoutTokenName: string;
|
|
101
|
-
payoutTokenDecimals: number;
|
|
102
|
-
discount: number;
|
|
103
|
-
billAddress: string;
|
|
104
|
-
billNftAddress: string;
|
|
105
|
-
initTime: number;
|
|
106
|
-
soldOut: boolean;
|
|
107
|
-
inactive: boolean;
|
|
108
|
-
trueBillPrice: string;
|
|
109
|
-
maxTotalPayout: string;
|
|
110
|
-
totalPayoutGiven: string;
|
|
111
|
-
maxPayout: string;
|
|
112
|
-
tokensRemaining: string;
|
|
113
|
-
showcaseToken: string;
|
|
114
|
-
showcaseTokenName: string;
|
|
115
|
-
vestingTerm: number;
|
|
116
|
-
principalTokenPrice: string;
|
|
117
|
-
payoutTokenPrice: string;
|
|
118
|
-
priceUsd: string;
|
|
119
|
-
tags?: string[];
|
|
120
|
-
arr: string;
|
|
121
|
-
}
|
|
122
|
-
export interface ServerBondsCacheData {
|
|
123
|
-
bondApiData: {
|
|
124
|
-
fetchTimestamp: number;
|
|
125
|
-
bondList: CleanedBondsState[] | null;
|
|
126
|
-
};
|
|
127
|
-
historicalPrices: Partial<Record<string, {
|
|
128
|
-
fetchTimestamp: number;
|
|
129
|
-
priceList: HistoricalPrices[] | null;
|
|
130
|
-
}>>;
|
|
131
|
-
hotBonds: {
|
|
132
|
-
fetchTimestamp: number;
|
|
133
|
-
hotBondsList: string[] | null;
|
|
134
|
-
};
|
|
135
|
-
homepageStats: {
|
|
136
|
-
fetchTimestamp: number;
|
|
137
|
-
};
|
|
138
|
-
}
|
|
139
|
-
export interface CMCResponse {
|
|
140
|
-
data: {
|
|
141
|
-
id: number;
|
|
142
|
-
name: string;
|
|
143
|
-
symbol: string;
|
|
144
|
-
quotes: Quote[];
|
|
145
|
-
};
|
|
146
|
-
}
|
|
147
|
-
export interface Quote {
|
|
148
|
-
time_open: string;
|
|
149
|
-
time_close: string;
|
|
150
|
-
time_high: string;
|
|
151
|
-
time_low: string;
|
|
152
|
-
quote: {
|
|
153
|
-
USD: {
|
|
154
|
-
open: number;
|
|
155
|
-
high: number;
|
|
156
|
-
low: number;
|
|
157
|
-
close: number;
|
|
158
|
-
volume: number;
|
|
159
|
-
market_cap: number;
|
|
160
|
-
timestamp: string;
|
|
161
|
-
};
|
|
162
|
-
};
|
|
163
|
-
}
|
|
164
|
-
export interface HistoricalPrices {
|
|
165
|
-
timestamp: string;
|
|
166
|
-
open: number;
|
|
167
|
-
close: number;
|
|
168
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|