stackswap-front-api-test-02 1.1.53 → 1.1.55

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.
@@ -21,6 +21,8 @@ export interface StackswapConfig {
21
21
  CONTRACT_NAME_STACKSWAP_FARMING2_3: () => string;
22
22
  CONTRACT_NAME_STACKSWAP_FARMING2_4: () => string;
23
23
  CONTRACT_NAME_STACKSWAP_FARMING2_5: () => string;
24
+ CONTRACT_NAME_STACKSWAP_FARMING_DATA_3: () => string;
25
+ CONTRACT_NAME_STACKSWAP_FARMING_LOGIC_3: () => string;
24
26
  CONTRACT_NAME_STACKSWAP_ROUTER_SWAP: () => string;
25
27
  CONTRACT_NAME_STACKSWAP_ROUTER_SWAP2: () => string;
26
28
  CONTRACT_NAME_STACKSWAP_MULTICHAIN: () => string;
@@ -65,8 +67,10 @@ export interface StackswapConfig {
65
67
 
66
68
  export class StackswapMainetConfig implements StackswapConfig {
67
69
  farm_end_cycle: string;
68
- constructor(farm_end_cycle: string = '99999') {
70
+ apiAddress: string|null;
71
+ constructor(farm_end_cycle: string = '99999', apiAddress: string|null = null) {
69
72
  this.farm_end_cycle = farm_end_cycle;
73
+ this.apiAddress = apiAddress;
70
74
  }
71
75
  CONTRACT_NAME_AINFT(): string {
72
76
  return 'stackswap-leonardoughdavinci-v1b';
@@ -152,6 +156,14 @@ export class StackswapMainetConfig implements StackswapConfig {
152
156
  return 'stackswap-farming-v2c5';
153
157
  }
154
158
 
159
+ CONTRACT_NAME_STACKSWAP_FARMING_LOGIC_3(): string {
160
+ return 'stackswap-farming-logic-v3a';
161
+ }
162
+
163
+ CONTRACT_NAME_STACKSWAP_FARMING_DATA_3(): string {
164
+ return 'stackswap-farming-data-v3a';
165
+ }
166
+
155
167
  CONTRACT_NAME_STACKSWAP_GOVERNANCE(): string {
156
168
  return 'stackswap-governance-v5k';
157
169
  }
@@ -231,7 +243,7 @@ export class StackswapMainetConfig implements StackswapConfig {
231
243
  }
232
244
 
233
245
  STACKS_BACKEND_URL(): string {
234
- return 'https://app.stackswap.org';
246
+ return this.apiAddress? this.apiAddress : 'https://app.stackswap.org';
235
247
  }
236
248
 
237
249
  isMainnet(): boolean {