stackswap-front-api-test-02 1.1.17 → 1.1.18

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.
@@ -11,7 +11,7 @@ export declare class StakingManager {
11
11
  amount: any;
12
12
  value: any;
13
13
  }>;
14
- getStakerAtCycle(cycle: number | string, user: string): Promise<{
14
+ getUserInfoRound(cycle: number | string, user: string): Promise<{
15
15
  amount: any;
16
16
  value: any;
17
17
  }>;
@@ -77,7 +77,7 @@ class StakingManager {
77
77
  return { amount: '0', value: '0' };
78
78
  }
79
79
  }
80
- async getStakerAtCycle(cycle, user) {
80
+ async getUserInfoRound(cycle, user) {
81
81
  try {
82
82
  const options = (0, util_1.getReadOptions)(this.stackswap, this.stackswap.config.CONTRACT_NAME_STACKSWAP_STACKING(), 'get-staker-at-cycle-or-default', [
83
83
  (0, transactions_1.uintCV)(cycle),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "stackswap-front-api-test-02",
3
- "version": "1.1.17",
3
+ "version": "1.1.18",
4
4
  "description": "",
5
5
  "scripts": {
6
6
  "start": "tsc -b tsconfig.build.json --watch --verbose",
@@ -100,7 +100,7 @@ export class StakingManager {
100
100
  return {amount: '0', value: '0'};
101
101
  }
102
102
  }
103
- async getStakerAtCycle(cycle: number | string, user: string) {
103
+ async getUserInfoRound(cycle: number | string, user: string) {
104
104
  try{
105
105
  // const poxl_token = contract_address.split('.');
106
106
  const options = getReadOptions(this.stackswap, this.stackswap.config.CONTRACT_NAME_STACKSWAP_STACKING(), 'get-staker-at-cycle-or-default', [