@iotexproject/kit 0.1.45 → 0.1.47
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/index.d.ts +35 -19
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -7940,23 +7940,17 @@ declare class SmartChefEntity {
|
|
|
7940
7940
|
startTime(): Promise<number | undefined>;
|
|
7941
7941
|
isNew(): Promise<boolean>;
|
|
7942
7942
|
isExpired(): Promise<boolean>;
|
|
7943
|
-
|
|
7944
|
-
|
|
7945
|
-
symbol: true;
|
|
7946
|
-
priceUSD: true;
|
|
7947
|
-
decimals: true;
|
|
7948
|
-
}> | undefined>;
|
|
7949
|
-
poolBalance(account: `0x${string}`): Promise<{
|
|
7950
|
-
poolBalance: {
|
|
7943
|
+
myPoolBalance(account: `0x${string}`): Promise<{
|
|
7944
|
+
myPoolBalance: {
|
|
7951
7945
|
value: string;
|
|
7952
7946
|
format: string;
|
|
7953
7947
|
originFormat: string;
|
|
7954
7948
|
decimals: string;
|
|
7955
7949
|
};
|
|
7956
|
-
|
|
7950
|
+
myPoolBalanceUSD: string;
|
|
7957
7951
|
}>;
|
|
7958
7952
|
apr(): Promise<string | undefined>;
|
|
7959
|
-
|
|
7953
|
+
myPendingReward(account: `0x${string}`): Promise<{
|
|
7960
7954
|
pendingReward: {
|
|
7961
7955
|
value: string;
|
|
7962
7956
|
format: string;
|
|
@@ -7969,7 +7963,7 @@ declare class SmartChefEntity {
|
|
|
7969
7963
|
originFormat: string;
|
|
7970
7964
|
decimals: string;
|
|
7971
7965
|
};
|
|
7972
|
-
}
|
|
7966
|
+
}>;
|
|
7973
7967
|
totalReward(): Promise<{
|
|
7974
7968
|
totalRewardUSD: {
|
|
7975
7969
|
value: string;
|
|
@@ -8001,6 +7995,10 @@ declare class SmartChefEntity {
|
|
|
8001
7995
|
`0x${string}`
|
|
8002
7996
|
];
|
|
8003
7997
|
priceUSD: true;
|
|
7998
|
+
tokenUrl: true;
|
|
7999
|
+
type: true;
|
|
8000
|
+
token0: true;
|
|
8001
|
+
token1: true;
|
|
8004
8002
|
}> | import("@dappworks/kit/aiem").QueryReturnType<ERC20Entity, {
|
|
8005
8003
|
decimals: true;
|
|
8006
8004
|
address: true;
|
|
@@ -8009,14 +8007,29 @@ declare class SmartChefEntity {
|
|
|
8009
8007
|
`0x${string}`
|
|
8010
8008
|
];
|
|
8011
8009
|
priceUSD: true;
|
|
8010
|
+
tokenUrl: true;
|
|
8011
|
+
type: true;
|
|
8012
8012
|
}> | undefined>;
|
|
8013
|
+
myStakedTokenBalance(account: `0x${string}`): Promise<{
|
|
8014
|
+
value: string;
|
|
8015
|
+
format: string;
|
|
8016
|
+
originFormat: string;
|
|
8017
|
+
decimals: string;
|
|
8018
|
+
} | undefined>;
|
|
8019
|
+
RewardToken(): Promise<import("@dappworks/kit/aiem").QueryReturnType<ERC20Entity, {
|
|
8020
|
+
address: true;
|
|
8021
|
+
symbol: true;
|
|
8022
|
+
priceUSD: true;
|
|
8023
|
+
decimals: true;
|
|
8024
|
+
tokenUrl: true;
|
|
8025
|
+
}>>;
|
|
8013
8026
|
deposit: (_amount: string) => Promise<any>;
|
|
8014
8027
|
withdraw: (_amount: string) => Promise<any>;
|
|
8015
8028
|
}
|
|
8016
8029
|
declare class LiquidityMining {
|
|
8017
|
-
poolsList(
|
|
8018
|
-
account
|
|
8019
|
-
}, ctx
|
|
8030
|
+
poolsList(args: {
|
|
8031
|
+
account?: `0x${string}`;
|
|
8032
|
+
}, ctx?: ConfigContext): Promise<import("@dappworks/kit/aiem").QueryReturnType<SmartChefEntity, {
|
|
8020
8033
|
rewardToken: true;
|
|
8021
8034
|
stakedToken: true;
|
|
8022
8035
|
endTime: true;
|
|
@@ -8025,11 +8038,14 @@ declare class LiquidityMining {
|
|
|
8025
8038
|
isExpired: true;
|
|
8026
8039
|
totalReward: true;
|
|
8027
8040
|
totalRewardUsd: true;
|
|
8028
|
-
|
|
8041
|
+
myStakedTokenBalance: false | [
|
|
8042
|
+
`0x${string}`
|
|
8043
|
+
];
|
|
8044
|
+
myPoolBalance: false | [
|
|
8029
8045
|
`0x${string}`
|
|
8030
8046
|
];
|
|
8031
8047
|
apr: true;
|
|
8032
|
-
|
|
8048
|
+
myPendingReward: false | [
|
|
8033
8049
|
`0x${string}`
|
|
8034
8050
|
];
|
|
8035
8051
|
totalStakedBalance: true;
|
|
@@ -8038,7 +8054,7 @@ declare class LiquidityMining {
|
|
|
8038
8054
|
address: `0x${string}`;
|
|
8039
8055
|
amount: string;
|
|
8040
8056
|
account: `0x${string}`;
|
|
8041
|
-
}, ctx
|
|
8057
|
+
}, ctx?: ConfigContext): Promise<{
|
|
8042
8058
|
data: any;
|
|
8043
8059
|
address: `0x${string}`;
|
|
8044
8060
|
chainId: string;
|
|
@@ -8046,7 +8062,7 @@ declare class LiquidityMining {
|
|
|
8046
8062
|
}[]>;
|
|
8047
8063
|
harvest({ address }: {
|
|
8048
8064
|
address: `0x${string}`;
|
|
8049
|
-
}, ctx
|
|
8065
|
+
}, ctx?: ConfigContext): Promise<{
|
|
8050
8066
|
data: any;
|
|
8051
8067
|
address: `0x${string}`;
|
|
8052
8068
|
chainId: string;
|
|
@@ -8054,7 +8070,7 @@ declare class LiquidityMining {
|
|
|
8054
8070
|
withdraw({ address, amount }: {
|
|
8055
8071
|
address: `0x${string}`;
|
|
8056
8072
|
amount: string;
|
|
8057
|
-
}, ctx
|
|
8073
|
+
}, ctx?: ConfigContext): Promise<{
|
|
8058
8074
|
data: any;
|
|
8059
8075
|
address: `0x${string}`;
|
|
8060
8076
|
chainId: string;
|