@iotexproject/kit 0.0.40 → 0.0.42
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 -9
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -1046,7 +1046,17 @@ declare class IncentivesEntity {
|
|
|
1046
1046
|
gauge: () => Promise<any>;
|
|
1047
1047
|
voter: () => Promise<any>;
|
|
1048
1048
|
earned: (_account: `0x${string}`, _token: `0x${string}`) => Promise<any>;
|
|
1049
|
-
allRewards(account: `0x${string}`): Promise<
|
|
1049
|
+
allRewards(account: `0x${string}`): Promise<{
|
|
1050
|
+
address: string;
|
|
1051
|
+
name: string;
|
|
1052
|
+
symbol: string;
|
|
1053
|
+
tokenUrl: string;
|
|
1054
|
+
rewards: {
|
|
1055
|
+
format: string;
|
|
1056
|
+
value: string;
|
|
1057
|
+
};
|
|
1058
|
+
rewardsUSD: string;
|
|
1059
|
+
}[]>;
|
|
1050
1060
|
rewards(token: `0x${string}`, account: `0x${string}`): Promise<{
|
|
1051
1061
|
value: string;
|
|
1052
1062
|
format: string;
|
|
@@ -4463,7 +4473,7 @@ declare class MarshallDao {
|
|
|
4463
4473
|
];
|
|
4464
4474
|
rewardAllTokens: true;
|
|
4465
4475
|
};
|
|
4466
|
-
}>[] |
|
|
4476
|
+
}>[] | null>;
|
|
4467
4477
|
totalGaugeRewards(args: {
|
|
4468
4478
|
account?: `0x${string}`;
|
|
4469
4479
|
}): Promise<{
|
|
@@ -6806,13 +6816,29 @@ declare class MSP {
|
|
|
6806
6816
|
renounceOwnership: () => Promise<any>;
|
|
6807
6817
|
transferOwnership: (newOwner: `0x${string}`) => Promise<any>;
|
|
6808
6818
|
}[];
|
|
6809
|
-
myLstTokens:
|
|
6810
|
-
|
|
6811
|
-
address:
|
|
6812
|
-
|
|
6813
|
-
|
|
6814
|
-
|
|
6815
|
-
|
|
6819
|
+
myLstTokens: {
|
|
6820
|
+
lstContractAddress: `0x${string}`;
|
|
6821
|
+
address: `0x${string}`;
|
|
6822
|
+
chainId: string;
|
|
6823
|
+
name: any;
|
|
6824
|
+
symbol: () => Promise<any>;
|
|
6825
|
+
decimals: () => Promise<any>;
|
|
6826
|
+
allowance: (owner: `0x${string}`, spender: `0x${string}`) => Promise<any>;
|
|
6827
|
+
balanceOf: {
|
|
6828
|
+
value: string;
|
|
6829
|
+
format: string;
|
|
6830
|
+
originFormat: string;
|
|
6831
|
+
decimals: string;
|
|
6832
|
+
isZero: boolean;
|
|
6833
|
+
};
|
|
6834
|
+
approve: (spender: `0x${string}`, amount: string, owner: `0x${string}`) => Promise<`0x${string}` | null>;
|
|
6835
|
+
totalSupply: () => Promise<any>;
|
|
6836
|
+
mint: (user_: `0x${string}`, amount_: string) => Promise<any>;
|
|
6837
|
+
transfer: (to: `0x${string}`, amount: string) => Promise<any>;
|
|
6838
|
+
transferFrom: (from: `0x${string}`, to: `0x${string}`, amount: string) => Promise<any>;
|
|
6839
|
+
decreaseAllowance: (spender: `0x${string}`, subtractedValue: string) => Promise<any>;
|
|
6840
|
+
increaseAllowance: (spender: `0x${string}`, addedValue: string) => Promise<any>;
|
|
6841
|
+
}[];
|
|
6816
6842
|
}>;
|
|
6817
6843
|
myStakedBucketsAndLSTs(args: {
|
|
6818
6844
|
account?: `0x${string}`;
|