@pendle/sdk-boros 0.2.16-distributor → 0.2.17

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.
@@ -8,5 +8,7 @@ export declare class Distributor {
8
8
  data: `0x${string}`;
9
9
  gas: bigint;
10
10
  }>;
11
+ getAccruedAmount(userAddress: Address): Promise<bigint>;
12
+ getClaimedAmount(userAddress: Address): Promise<bigint>;
11
13
  }
12
14
  export default Distributor;
@@ -34,6 +34,14 @@ class Distributor {
34
34
  gas,
35
35
  };
36
36
  }
37
+ async getAccruedAmount(userAddress) {
38
+ const amount = await this.distributorContract.read.accrued([userAddress]);
39
+ return amount;
40
+ }
41
+ async getClaimedAmount(userAddress) {
42
+ const amount = await this.distributorContract.read.claimed([userAddress]);
43
+ return amount;
44
+ }
37
45
  }
38
46
  exports.Distributor = Distributor;
39
47
  exports.default = Distributor;
@@ -1 +1 @@
1
- {"version":3,"file":"distributor.js","sourceRoot":"","sources":["../../../src/entities/Distributor/distributor.ts"],"names":[],"mappings":";;;AAAA,+BAAwG;AACxG,+CAAsD;AACtD,2CAAkD;AAClD,wCAAuC;AACvC,yCAAuC;AAEvC,MAAa,WAAW;IACZ,mBAAmB,CAAC;IAC5B;QACI,IAAI,CAAC,mBAAmB,GAAG,IAAA,kBAAW,EAAC;YACnC,OAAO,EAAE,+BAAmB;YAC5B,GAAG,EAAE,+BAAmB;YACxB,MAAM,EAAE,IAAA,yBAAkB,EAAC;gBACvB,KAAK,EAAE,iBAAQ;gBACf,SAAS,EAAE,IAAA,WAAI,EAAC,gBAAO,CAAC;aAC3B,CAAC;SACL,CAAC,CAAC;IACP,CAAC;IAED,KAAK,CAAC,KAAK,CAAC,WAAoB;QAC5B,MAAM,IAAI,GAAG,IAAA,yBAAkB,EAAC;YAC5B,GAAG,EAAE,+BAAmB;YACxB,YAAY,EAAE,OAAO;YACrB,IAAI,EAAE,CAAC,WAAW,CAAC;SACtB,CAAC,CAAA;QACF,MAAM,GAAG,GAAG,MAAM,IAAI,CAAC,mBAAmB,CAAC,WAAW,CAAC,KAAK,CAAC,CAAC,WAAW,CAAC,EAAE;YACxE,OAAO,EAAE,WAAW;SACvB,CAAC,CAAA;QACF,OAAO;YACH,IAAI,EAAE,WAAW;YACjB,EAAE,EAAE,+BAAmB;YACvB,IAAI;YACJ,GAAG;SACN,CAAC;IACN,CAAC;CACJ;AA7BD,kCA6BC;AAED,kBAAe,WAAW,CAAC"}
1
+ {"version":3,"file":"distributor.js","sourceRoot":"","sources":["../../../src/entities/Distributor/distributor.ts"],"names":[],"mappings":";;;AAAA,+BAAwG;AACxG,+CAAsD;AACtD,2CAAkD;AAClD,wCAAuC;AACvC,yCAAuC;AAEvC,MAAa,WAAW;IACZ,mBAAmB,CAAC;IAC5B;QACI,IAAI,CAAC,mBAAmB,GAAG,IAAA,kBAAW,EAAC;YACnC,OAAO,EAAE,+BAAmB;YAC5B,GAAG,EAAE,+BAAmB;YACxB,MAAM,EAAE,IAAA,yBAAkB,EAAC;gBACvB,KAAK,EAAE,iBAAQ;gBACf,SAAS,EAAE,IAAA,WAAI,EAAC,gBAAO,CAAC;aAC3B,CAAC;SACL,CAAC,CAAC;IACP,CAAC;IAED,KAAK,CAAC,KAAK,CAAC,WAAoB;QAC5B,MAAM,IAAI,GAAG,IAAA,yBAAkB,EAAC;YAC5B,GAAG,EAAE,+BAAmB;YACxB,YAAY,EAAE,OAAO;YACrB,IAAI,EAAE,CAAC,WAAW,CAAC;SACtB,CAAC,CAAA;QACF,MAAM,GAAG,GAAG,MAAM,IAAI,CAAC,mBAAmB,CAAC,WAAW,CAAC,KAAK,CAAC,CAAC,WAAW,CAAC,EAAE;YACxE,OAAO,EAAE,WAAW;SACvB,CAAC,CAAA;QACF,OAAO;YACH,IAAI,EAAE,WAAW;YACjB,EAAE,EAAE,+BAAmB;YACvB,IAAI;YACJ,GAAG;SACN,CAAC;IACN,CAAC;IAED,KAAK,CAAC,gBAAgB,CAAC,WAAoB;QACvC,MAAM,MAAM,GAAG,MAAM,IAAI,CAAC,mBAAmB,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC,WAAW,CAAC,CAAC,CAAC;QAC1E,OAAO,MAAM,CAAC;IAClB,CAAC;IAED,KAAK,CAAC,gBAAgB,CAAC,WAAoB;QACvC,MAAM,MAAM,GAAG,MAAM,IAAI,CAAC,mBAAmB,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC,WAAW,CAAC,CAAC,CAAC;QAC1E,OAAO,MAAM,CAAC;IAClB,CAAC;CACJ;AAvCD,kCAuCC;AAED,kBAAe,WAAW,CAAC"}
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@pendle/sdk-boros",
3
3
  "description": "Pendle SDK for Boros",
4
4
  "license": "MIT",
5
- "version": "0.2.16-distributor",
5
+ "version": "0.2.17",
6
6
  "main": "dist/index.js",
7
7
  "types": "dist/index.d.ts",
8
8
  "files": [