@strkfarm/sdk 2.0.0-staging.18 → 2.0.0-staging.19

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
@@ -1,6 +1,6 @@
1
- import BigNumber from 'bignumber.js';
2
1
  import * as starknet from 'starknet';
3
2
  import { RpcProvider, BlockIdentifier, Contract, Uint256, Call, Account, CairoCustomEnum, RawArgs } from 'starknet';
3
+ import BigNumber from 'bignumber.js';
4
4
  import React, { ReactNode } from 'react';
5
5
  import { Quote, AvnuOptions } from '@avnu/avnu-sdk';
6
6
  import { HexString, BytesLike } from '@ericnordelo/strk-merkle-tree/dist/bytes';
@@ -31,6 +31,7 @@ declare class _Web3Number<T extends _Web3Number<T>> extends BigNumber {
31
31
  mag: bigint;
32
32
  sign: 0 | 1;
33
33
  };
34
+ toUint256(): starknet.Uint256;
34
35
  }
35
36
 
36
37
  declare class Web3Number extends _Web3Number<Web3Number> {
@@ -899,7 +900,10 @@ declare class EkuboCLVault extends BaseStrategy<DualTokenInfo, DualActionAmount>
899
900
  rebalanceCall(newBounds: EkuboBounds, swapParams: SwapInfo): Call[];
900
901
  handleUnusedCall(swapParams: SwapInfo): Call[];
901
902
  handleFeesCall(): Call[];
902
- getFeeHistory(timePeriod?: '24h' | '7d' | '30d' | '3m'): Promise<{
903
+ getFeeHistory(timePeriod?: '24h' | '7d' | '30d' | '3m' | '6m', range?: {
904
+ startTimestamp?: number;
905
+ endTimestamp?: number;
906
+ }): Promise<{
903
907
  summary: DualTokenInfo;
904
908
  history: FeeHistory[];
905
909
  }>;
@@ -1428,8 +1432,15 @@ declare class VesuAdapter extends BaseAdapter {
1428
1432
  getModifyPositionCall: (params: VesuModifyPositionCallParams) => ManageCall;
1429
1433
  getMultiplyAdapter: (id: string) => LeafAdapterFn<VesuMultiplyCallParams>;
1430
1434
  getMultiplyCall: (params: VesuMultiplyCallParams) => ManageCall;
1431
- getVesuModifyDelegationAdapter: (id: string) => LeafAdapterFn<VesuModifyDelegationCallParams>;
1432
- getVesuModifyDelegationCall: (params: VesuModifyDelegationCallParams) => ManageCall;
1435
+ getVesuModifyDelegationAdapter: (id: string, delegatee: ContractAddr) => LeafAdapterFn<VesuModifyDelegationCallParams>;
1436
+ getVesuModifyDelegationCall: (delegatee: ContractAddr) => (params: VesuModifyDelegationCallParams) => {
1437
+ sanitizer: ContractAddr;
1438
+ call: {
1439
+ contractAddress: ContractAddr;
1440
+ selector: string;
1441
+ calldata: bigint[];
1442
+ };
1443
+ };
1433
1444
  getDefispringRewardsAdapter: (id: string) => () => AdapterLeafType<VesuDefiSpringRewardsCallParams>;
1434
1445
  getDefiSpringClaimCall: () => GenerateCallFn<VesuDefiSpringRewardsCallParams>;
1435
1446
  formatAmountTypeEnum(amountType: VesuAmountType): CairoCustomEnum;