@iotexproject/kit 0.0.41 → 0.0.43

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 CHANGED
@@ -4473,7 +4473,7 @@ declare class MarshallDao {
4473
4473
  ];
4474
4474
  rewardAllTokens: true;
4475
4475
  };
4476
- }>[] | undefined>;
4476
+ }>[] | null>;
4477
4477
  totalGaugeRewards(args: {
4478
4478
  account?: `0x${string}`;
4479
4479
  }): Promise<{
@@ -6816,13 +6816,29 @@ declare class MSP {
6816
6816
  renounceOwnership: () => Promise<any>;
6817
6817
  transferOwnership: (newOwner: `0x${string}`) => Promise<any>;
6818
6818
  }[];
6819
- myLstTokens: import("@dappworks/kit/aiem").QueryReturnType<MockLSTEntity, {
6820
- name: true;
6821
- address: true;
6822
- balanceOf: false | [
6823
- `0x${string}`
6824
- ];
6825
- }>[];
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
+ }[];
6826
6842
  }>;
6827
6843
  myStakedBucketsAndLSTs(args: {
6828
6844
  account?: `0x${string}`;
@@ -7072,6 +7088,27 @@ export interface Dapp {
7072
7088
  }
7073
7089
  declare class UseHub {
7074
7090
  constructor();
7091
+ myRewards(args: {
7092
+ address: string;
7093
+ start_date?: string;
7094
+ end_date?: string;
7095
+ }): Promise<{
7096
+ RewardRecord: {
7097
+ total_reward_delta: number;
7098
+ burndrop_reward_delta: number;
7099
+ hermes_reward_delta: number;
7100
+ date: string;
7101
+ }[];
7102
+ RewardRecord_aggregate: {
7103
+ aggregate: {
7104
+ sum: {
7105
+ total_reward_delta: number;
7106
+ burndrop_reward_delta: number;
7107
+ hermes_reward_delta: number;
7108
+ };
7109
+ };
7110
+ };
7111
+ }>;
7075
7112
  stakingReward(args: {
7076
7113
  address: string;
7077
7114
  start_date?: string;
package/dist/index.js CHANGED
@@ -1 +1 @@
1
- var q=({url:j="http://localhost:9527"}={})=>new Proxy({},{get(R,o,T){return new Proxy({},{get(b,x){return async(i)=>{for(let f in i)if(Array.isArray(i[f]))i[f]=JSON.stringify(i[f]);const M=`${j}/${String(o)}/${String(x)}?${new URLSearchParams(i).toString()}`;return(await fetch(M)).json()}}})}});export{q as createClient};
1
+ var D=({url:b="http://localhost:9527"}={})=>new Proxy({},{get(v,c,z){return new Proxy({},{get(B,j){return async(f)=>{for(let x in f)if(Array.isArray(f[x]))f[x]=JSON.stringify(f[x]);const q=`${b}/${String(c)}/${String(j)}?${new URLSearchParams(f).toString()}`;return(await fetch(q)).json()}}})}});export{D as createClient};
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@iotexproject/kit",
3
3
  "module": "index.ts",
4
4
  "type": "module",
5
- "version": "v0.0.41",
5
+ "version": "v0.0.43",
6
6
  "main": "dist/index.js",
7
7
  "types": "dist/index.d.ts",
8
8
  "scripts": {