@evergonlabs/tmi-protocol-api-client 0.7.2 → 0.9.0

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
@@ -389,7 +389,10 @@ type CreateFractionsRequestSchema = {
389
389
  chainId: '11155111' | '31337';
390
390
  market: string;
391
391
  fractions: {
392
- token: string;
392
+ /**
393
+ * DO NOT USE. This field will be removed
394
+ */
395
+ token?: string;
393
396
  symbol: string;
394
397
  name: string;
395
398
  amount: bigint;
@@ -2455,6 +2458,42 @@ type PostV0FractionsSalesSetFeeCapLimitResponses = {
2455
2458
  200: Transaction;
2456
2459
  };
2457
2460
  type PostV0FractionsSalesSetFeeCapLimitResponse = PostV0FractionsSalesSetFeeCapLimitResponses[keyof PostV0FractionsSalesSetFeeCapLimitResponses];
2461
+ type GetV0FractionsSalesGetWithdrawEventData = {
2462
+ body?: never;
2463
+ path?: never;
2464
+ query: {
2465
+ /**
2466
+ * Supported chain id
2467
+ */
2468
+ chainId: '11155111' | '31337';
2469
+ /**
2470
+ * Transaction hash
2471
+ */
2472
+ hash: string;
2473
+ };
2474
+ url: '/v0/fractions/sales/getWithdrawEvent';
2475
+ };
2476
+ type GetV0FractionsSalesGetWithdrawEventErrors = {
2477
+ /**
2478
+ * Zod Error
2479
+ */
2480
+ 400: ZodError;
2481
+ };
2482
+ type GetV0FractionsSalesGetWithdrawEventError = GetV0FractionsSalesGetWithdrawEventErrors[keyof GetV0FractionsSalesGetWithdrawEventErrors];
2483
+ type GetV0FractionsSalesGetWithdrawEventResponses = {
2484
+ /**
2485
+ * Returns parsed event log
2486
+ */
2487
+ 200: {
2488
+ /**
2489
+ * Id of a Sale
2490
+ */
2491
+ campaignId: bigint;
2492
+ receiver: string;
2493
+ packetsReceived: bigint;
2494
+ };
2495
+ };
2496
+ type GetV0FractionsSalesGetWithdrawEventResponse = GetV0FractionsSalesGetWithdrawEventResponses[keyof GetV0FractionsSalesGetWithdrawEventResponses];
2458
2497
  type PostV0FractionsSigNonceData = {
2459
2498
  body?: NonceRequestSchema;
2460
2499
  path?: never;
@@ -2512,113 +2551,6 @@ type PostV0FractionsSigAuthDataResponses = {
2512
2551
  };
2513
2552
  };
2514
2553
  type PostV0FractionsSigAuthDataResponse = PostV0FractionsSigAuthDataResponses[keyof PostV0FractionsSigAuthDataResponses];
2515
- type GetV0FractionsCompilotErc20Data = {
2516
- body?: never;
2517
- path?: never;
2518
- query?: never;
2519
- url: '/v0/fractions/compilot/erc20';
2520
- };
2521
- type GetV0FractionsCompilotErc20Errors = {
2522
- /**
2523
- * Zod Error
2524
- */
2525
- 400: ZodError;
2526
- };
2527
- type GetV0FractionsCompilotErc20Error = GetV0FractionsCompilotErc20Errors[keyof GetV0FractionsCompilotErc20Errors];
2528
- type GetV0FractionsCompilotErc20Responses = {
2529
- /**
2530
- * Returns transaction data for deploying a gated ERC20
2531
- */
2532
- 200: {
2533
- bytecode: unknown;
2534
- /**
2535
- * ABI of a contract.
2536
- */
2537
- abi: Array<unknown>;
2538
- };
2539
- };
2540
- type GetV0FractionsCompilotErc20Response = GetV0FractionsCompilotErc20Responses[keyof GetV0FractionsCompilotErc20Responses];
2541
- type PostV0FractionsCompilotErc20MintData = {
2542
- body?: {
2543
- tokenAddress: string;
2544
- amount: bigint;
2545
- mintTo: string;
2546
- };
2547
- path?: never;
2548
- query?: never;
2549
- url: '/v0/fractions/compilot/erc20/mint';
2550
- };
2551
- type PostV0FractionsCompilotErc20MintErrors = {
2552
- /**
2553
- * Zod Error
2554
- */
2555
- 400: ZodError;
2556
- };
2557
- type PostV0FractionsCompilotErc20MintError = PostV0FractionsCompilotErc20MintErrors[keyof PostV0FractionsCompilotErc20MintErrors];
2558
- type PostV0FractionsCompilotErc20MintResponses = {
2559
- /**
2560
- * Returns transaction data for minting a gated ERC20
2561
- */
2562
- 200: Transaction;
2563
- };
2564
- type PostV0FractionsCompilotErc20MintResponse = PostV0FractionsCompilotErc20MintResponses[keyof PostV0FractionsCompilotErc20MintResponses];
2565
- type PostV0FractionsCompilotErc20BurnData = {
2566
- body?: {
2567
- tokenAddress: string;
2568
- amount: bigint;
2569
- burnFrom: string;
2570
- };
2571
- path?: never;
2572
- query?: never;
2573
- url: '/v0/fractions/compilot/erc20/burn';
2574
- };
2575
- type PostV0FractionsCompilotErc20BurnErrors = {
2576
- /**
2577
- * Zod Error
2578
- */
2579
- 400: ZodError;
2580
- };
2581
- type PostV0FractionsCompilotErc20BurnError = PostV0FractionsCompilotErc20BurnErrors[keyof PostV0FractionsCompilotErc20BurnErrors];
2582
- type PostV0FractionsCompilotErc20BurnResponses = {
2583
- /**
2584
- * Returns transaction data for burning a gated ERC20
2585
- */
2586
- 200: Transaction;
2587
- };
2588
- type PostV0FractionsCompilotErc20BurnResponse = PostV0FractionsCompilotErc20BurnResponses[keyof PostV0FractionsCompilotErc20BurnResponses];
2589
- type PostV0FractionsCompilotErc20ProxyData = {
2590
- body?: {
2591
- erc20Address: string;
2592
- tokenName: string;
2593
- tokenSymbol: string;
2594
- cap: bigint;
2595
- defaultAdmin: string;
2596
- minter: string;
2597
- };
2598
- path?: never;
2599
- query?: never;
2600
- url: '/v0/fractions/compilot/erc20/proxy';
2601
- };
2602
- type PostV0FractionsCompilotErc20ProxyErrors = {
2603
- /**
2604
- * Zod Error
2605
- */
2606
- 400: ZodError;
2607
- };
2608
- type PostV0FractionsCompilotErc20ProxyError = PostV0FractionsCompilotErc20ProxyErrors[keyof PostV0FractionsCompilotErc20ProxyErrors];
2609
- type PostV0FractionsCompilotErc20ProxyResponses = {
2610
- /**
2611
- * Returns transaction data for deploying a ERC1967Proxy
2612
- */
2613
- 200: {
2614
- bytecode: unknown;
2615
- /**
2616
- * ABI of a contract.
2617
- */
2618
- abi: Array<unknown>;
2619
- };
2620
- };
2621
- type PostV0FractionsCompilotErc20ProxyResponse = PostV0FractionsCompilotErc20ProxyResponses[keyof PostV0FractionsCompilotErc20ProxyResponses];
2622
2554
  type PostGeneralEstimateGasData = {
2623
2555
  body?: {
2624
2556
  /**
@@ -2738,6 +2670,113 @@ type PostGeneralSearchBalancesResponses = {
2738
2670
  200: BalancesResponseSchema;
2739
2671
  };
2740
2672
  type PostGeneralSearchBalancesResponse = PostGeneralSearchBalancesResponses[keyof PostGeneralSearchBalancesResponses];
2673
+ type GetIssuanceErc20Data = {
2674
+ body?: never;
2675
+ path?: never;
2676
+ query?: never;
2677
+ url: '/issuance/erc20';
2678
+ };
2679
+ type GetIssuanceErc20Errors = {
2680
+ /**
2681
+ * Zod Error
2682
+ */
2683
+ 400: ZodError;
2684
+ };
2685
+ type GetIssuanceErc20Error = GetIssuanceErc20Errors[keyof GetIssuanceErc20Errors];
2686
+ type GetIssuanceErc20Responses = {
2687
+ /**
2688
+ * Returns transaction data for deploying a gated ERC20
2689
+ */
2690
+ 200: {
2691
+ bytecode: unknown;
2692
+ /**
2693
+ * ABI of a contract.
2694
+ */
2695
+ abi: Array<unknown>;
2696
+ };
2697
+ };
2698
+ type GetIssuanceErc20Response = GetIssuanceErc20Responses[keyof GetIssuanceErc20Responses];
2699
+ type PostIssuanceErc20MintData = {
2700
+ body?: {
2701
+ tokenAddress: string;
2702
+ amount: bigint;
2703
+ mintTo: string;
2704
+ };
2705
+ path?: never;
2706
+ query?: never;
2707
+ url: '/issuance/erc20/mint';
2708
+ };
2709
+ type PostIssuanceErc20MintErrors = {
2710
+ /**
2711
+ * Zod Error
2712
+ */
2713
+ 400: ZodError;
2714
+ };
2715
+ type PostIssuanceErc20MintError = PostIssuanceErc20MintErrors[keyof PostIssuanceErc20MintErrors];
2716
+ type PostIssuanceErc20MintResponses = {
2717
+ /**
2718
+ * Returns transaction data for minting a gated ERC20
2719
+ */
2720
+ 200: Transaction;
2721
+ };
2722
+ type PostIssuanceErc20MintResponse = PostIssuanceErc20MintResponses[keyof PostIssuanceErc20MintResponses];
2723
+ type PostIssuanceErc20BurnData = {
2724
+ body?: {
2725
+ tokenAddress: string;
2726
+ amount: bigint;
2727
+ burnFrom: string;
2728
+ };
2729
+ path?: never;
2730
+ query?: never;
2731
+ url: '/issuance/erc20/burn';
2732
+ };
2733
+ type PostIssuanceErc20BurnErrors = {
2734
+ /**
2735
+ * Zod Error
2736
+ */
2737
+ 400: ZodError;
2738
+ };
2739
+ type PostIssuanceErc20BurnError = PostIssuanceErc20BurnErrors[keyof PostIssuanceErc20BurnErrors];
2740
+ type PostIssuanceErc20BurnResponses = {
2741
+ /**
2742
+ * Returns transaction data for burning a gated ERC20
2743
+ */
2744
+ 200: Transaction;
2745
+ };
2746
+ type PostIssuanceErc20BurnResponse = PostIssuanceErc20BurnResponses[keyof PostIssuanceErc20BurnResponses];
2747
+ type PostIssuanceErc20ProxyData = {
2748
+ body?: {
2749
+ erc20Address: string;
2750
+ tokenName: string;
2751
+ tokenSymbol: string;
2752
+ cap: bigint;
2753
+ defaultAdmin: string;
2754
+ minter: string;
2755
+ };
2756
+ path?: never;
2757
+ query?: never;
2758
+ url: '/issuance/erc20/proxy';
2759
+ };
2760
+ type PostIssuanceErc20ProxyErrors = {
2761
+ /**
2762
+ * Zod Error
2763
+ */
2764
+ 400: ZodError;
2765
+ };
2766
+ type PostIssuanceErc20ProxyError = PostIssuanceErc20ProxyErrors[keyof PostIssuanceErc20ProxyErrors];
2767
+ type PostIssuanceErc20ProxyResponses = {
2768
+ /**
2769
+ * Returns transaction data for deploying a ERC1967Proxy
2770
+ */
2771
+ 200: {
2772
+ bytecode: unknown;
2773
+ /**
2774
+ * ABI of a contract.
2775
+ */
2776
+ abi: Array<unknown>;
2777
+ };
2778
+ };
2779
+ type PostIssuanceErc20ProxyResponse = PostIssuanceErc20ProxyResponses[keyof PostIssuanceErc20ProxyResponses];
2741
2780
  type ClientOptions = {
2742
2781
  baseUrl: 'http://localhost:3000' | (string & {});
2743
2782
  };
@@ -2913,6 +2952,11 @@ declare const api: {
2913
2952
  fractionsAddress: string;
2914
2953
  }, ZodError, ThrowOnError>;
2915
2954
  search: <ThrowOnError extends boolean = false>(options?: Options<PostV0FractionsSalesSearchData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<StakeEvent[], ZodError, ThrowOnError>;
2955
+ getWithdrawEvent: <ThrowOnError extends boolean = false>(options: Options<GetV0FractionsSalesGetWithdrawEventData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<{
2956
+ campaignId: bigint;
2957
+ receiver: string;
2958
+ packetsReceived: bigint;
2959
+ }, ZodError, ThrowOnError>;
2916
2960
  vesting: {
2917
2961
  claim: <ThrowOnError extends boolean = false>(options?: Options<PostV0FractionsSalesVestingClaimData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<Transaction, ZodError, ThrowOnError>;
2918
2962
  editCliff: <ThrowOnError extends boolean = false>(options?: Options<PostV0FractionsSalesVestingEditCliffData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<Transaction, ZodError, ThrowOnError>;
@@ -2937,16 +2981,16 @@ declare const api: {
2937
2981
  userAddress: string;
2938
2982
  chainId: "11155111" | "31337";
2939
2983
  }, ZodError, ThrowOnError>;
2940
- erc20: <ThrowOnError extends boolean = false>(options?: Options<GetV0FractionsCompilotErc20Data, ThrowOnError>) => _hey_api_client_fetch.RequestResult<{
2984
+ erc20: <ThrowOnError extends boolean = false>(options?: Options<GetIssuanceErc20Data, ThrowOnError>) => _hey_api_client_fetch.RequestResult<{
2941
2985
  bytecode: unknown;
2942
2986
  abi: Array<unknown>;
2943
2987
  }, ZodError, ThrowOnError>;
2944
- erc1967Proxy: <ThrowOnError extends boolean = false>(options?: Options<PostV0FractionsCompilotErc20ProxyData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<{
2988
+ erc1967Proxy: <ThrowOnError extends boolean = false>(options?: Options<PostIssuanceErc20ProxyData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<{
2945
2989
  bytecode: unknown;
2946
2990
  abi: Array<unknown>;
2947
2991
  }, ZodError, ThrowOnError>;
2948
- erc20Mint: <ThrowOnError extends boolean = false>(options?: Options<PostV0FractionsCompilotErc20MintData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<Transaction, ZodError, ThrowOnError>;
2949
- erc20Burn: <ThrowOnError extends boolean = false>(options?: Options<PostV0FractionsCompilotErc20BurnData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<Transaction, ZodError, ThrowOnError>;
2992
+ erc20Mint: <ThrowOnError extends boolean = false>(options?: Options<PostIssuanceErc20MintData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<Transaction, ZodError, ThrowOnError>;
2993
+ erc20Burn: <ThrowOnError extends boolean = false>(options?: Options<PostIssuanceErc20BurnData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<Transaction, ZodError, ThrowOnError>;
2950
2994
  };
2951
2995
  };
2952
2996
  };
@@ -2961,4 +3005,4 @@ type ApiResponse<T> = {
2961
3005
  };
2962
3006
  declare function handleApiResponse<T>(apiResponse: ApiResponse<T>): T;
2963
3007
 
2964
- export { type AmountMultInterval, type AmountTwoBorder, type ApiClient, type ApiResponse, type ApproveErc20SpendingToWrapper, type ApproveErc721SpendingToWrapper, type ApproveSaleRequestSchema, type ApproveWrapperRequestSchema, type BalancesResponseSchema, type ClaimVestedTokensRequestSchema, type ClientOptions, type CompleteSaleRequestSchema, type CreateFractionsRequestSchema, type DeployMarketRequestSchema, type EditCliffRequestSchema, type Erc20Input, type Erc20Reward, type Erc721Meta, type EstimateGasResponse, type GetGeneralBalanceData, type GetGeneralBalanceError, type GetGeneralBalanceErrors, type GetGeneralBalanceResponse, type GetGeneralBalanceResponses, type GetStakingPlatformsGetV0Data, type GetStakingPlatformsGetV0Error, type GetStakingPlatformsGetV0Errors, type GetStakingPlatformsGetV0Response, type GetStakingPlatformsGetV0Responses, type GetStakingPoolsGetPoolV0Data, type GetStakingPoolsGetPoolV0Error, type GetStakingPoolsGetPoolV0Errors, type GetStakingPoolsGetPoolV0Response, type GetStakingPoolsGetPoolV0Responses, type GetStakingRolesGetRolesV0Data, type GetStakingRolesGetRolesV0Error, type GetStakingRolesGetRolesV0Errors, type GetStakingRolesGetRolesV0Response, type GetStakingRolesGetRolesV0Responses, type GetStakingStakesGetStakeV0Data, type GetStakingStakesGetStakeV0Error, type GetStakingStakesGetStakeV0Errors, type GetStakingStakesGetStakeV0Response, type GetStakingStakesGetStakeV0Responses, type GetStakingTemplatesReputationLockV0GetCreatePoolEventData, type GetStakingTemplatesReputationLockV0GetCreatePoolEventError, type GetStakingTemplatesReputationLockV0GetCreatePoolEventErrors, type GetStakingTemplatesReputationLockV0GetCreatePoolEventResponse, type GetStakingTemplatesReputationLockV0GetCreatePoolEventResponses, type GetStakingTemplatesReputationLockV0GetPlatformDeployEventData, type GetStakingTemplatesReputationLockV0GetPlatformDeployEventError, type GetStakingTemplatesReputationLockV0GetPlatformDeployEventErrors, type GetStakingTemplatesReputationLockV0GetPlatformDeployEventResponse, type GetStakingTemplatesReputationLockV0GetPlatformDeployEventResponses, type GetStakingTemplatesReputationLockV0GetStakeEventData, type GetStakingTemplatesReputationLockV0GetStakeEventError, type GetStakingTemplatesReputationLockV0GetStakeEventErrors, type GetStakingTemplatesReputationLockV0GetStakeEventResponse, type GetStakingTemplatesReputationLockV0GetStakeEventResponses, type GetStakingTemplatesReputationV0GetCreatePoolEventData, type GetStakingTemplatesReputationV0GetCreatePoolEventError, type GetStakingTemplatesReputationV0GetCreatePoolEventErrors, type GetStakingTemplatesReputationV0GetCreatePoolEventResponse, type GetStakingTemplatesReputationV0GetCreatePoolEventResponses, type GetStakingTemplatesReputationV0GetPlatformDeployEventData, type GetStakingTemplatesReputationV0GetPlatformDeployEventError, type GetStakingTemplatesReputationV0GetPlatformDeployEventErrors, type GetStakingTemplatesReputationV0GetPlatformDeployEventResponse, type GetStakingTemplatesReputationV0GetPlatformDeployEventResponses, type GetStakingTemplatesReputationV0GetStakeEventData, type GetStakingTemplatesReputationV0GetStakeEventError, type GetStakingTemplatesReputationV0GetStakeEventErrors, type GetStakingTemplatesReputationV0GetStakeEventResponse, type GetStakingTemplatesReputationV0GetStakeEventResponses, type GetStakingTemplatesRwaV0GetCreatePoolEventData, type GetStakingTemplatesRwaV0GetCreatePoolEventError, type GetStakingTemplatesRwaV0GetCreatePoolEventErrors, type GetStakingTemplatesRwaV0GetCreatePoolEventResponse, type GetStakingTemplatesRwaV0GetCreatePoolEventResponses, type GetStakingTemplatesRwaV0GetPlatformDeployEventData, type GetStakingTemplatesRwaV0GetPlatformDeployEventError, type GetStakingTemplatesRwaV0GetPlatformDeployEventErrors, type GetStakingTemplatesRwaV0GetPlatformDeployEventResponse, type GetStakingTemplatesRwaV0GetPlatformDeployEventResponses, type GetStakingTemplatesRwaV0GetStakeEventData, type GetStakingTemplatesRwaV0GetStakeEventError, type GetStakingTemplatesRwaV0GetStakeEventErrors, type GetStakingTemplatesRwaV0GetStakeEventResponse, type GetStakingTemplatesRwaV0GetStakeEventResponses, type GetV0FractionsCompilotErc20Data, type GetV0FractionsCompilotErc20Error, type GetV0FractionsCompilotErc20Errors, type GetV0FractionsCompilotErc20Response, type GetV0FractionsCompilotErc20Responses, type GetV0FractionsMarketsDeployEventData, type GetV0FractionsMarketsDeployEventError, type GetV0FractionsMarketsDeployEventErrors, type GetV0FractionsMarketsDeployEventResponse, type GetV0FractionsMarketsDeployEventResponses, type GetV0FractionsMarketsGetData, type GetV0FractionsMarketsGetError, type GetV0FractionsMarketsGetErrors, type GetV0FractionsMarketsGetResponse, type GetV0FractionsMarketsGetResponses, type GetV0FractionsRolesData, type GetV0FractionsRolesError, type GetV0FractionsRolesErrors, type GetV0FractionsRolesResponse, type GetV0FractionsRolesResponses, type GetV0FractionsSalesGetFractionsCreatedEventData, type GetV0FractionsSalesGetFractionsCreatedEventError, type GetV0FractionsSalesGetFractionsCreatedEventErrors, type GetV0FractionsSalesGetFractionsCreatedEventResponse, type GetV0FractionsSalesGetFractionsCreatedEventResponses, type GrantMarketRoleRequestSchema, type IApiConfig, type IEnv, type IEnvName, type LockMultInterval, type LockTwoBorder, type NonceRequestSchema, type PageRequest, type Platform, type Pool, type PostGeneralBalancesData, type PostGeneralBalancesError, type PostGeneralBalancesErrors, type PostGeneralBalancesResponse, type PostGeneralBalancesResponses, type PostGeneralEstimateGasData, type PostGeneralEstimateGasError, type PostGeneralEstimateGasErrors, type PostGeneralEstimateGasResponse, type PostGeneralEstimateGasResponses, type PostGeneralSearchBalancesData, type PostGeneralSearchBalancesError, type PostGeneralSearchBalancesErrors, type PostGeneralSearchBalancesResponse, type PostGeneralSearchBalancesResponses, type PostStakingPlatformsSearchV0Data, type PostStakingPlatformsSearchV0Error, type PostStakingPlatformsSearchV0Errors, type PostStakingPlatformsSearchV0Response, type PostStakingPlatformsSearchV0Responses, type PostStakingPoolsSearchPoolsV0Data, type PostStakingPoolsSearchPoolsV0Error, type PostStakingPoolsSearchPoolsV0Errors, type PostStakingPoolsSearchPoolsV0Response, type PostStakingPoolsSearchPoolsV0Responses, type PostStakingRolesGrantRoleV0Data, type PostStakingRolesGrantRoleV0Error, type PostStakingRolesGrantRoleV0Errors, type PostStakingRolesGrantRoleV0Response, type PostStakingRolesGrantRoleV0Responses, type PostStakingRolesSearchRoleEventsV0Data, type PostStakingRolesSearchRoleEventsV0Error, type PostStakingRolesSearchRoleEventsV0Errors, type PostStakingRolesSearchRoleEventsV0Response, type PostStakingRolesSearchRoleEventsV0Responses, type PostStakingRolesSearchRolesV0Data, type PostStakingRolesSearchRolesV0Error, type PostStakingRolesSearchRolesV0Errors, type PostStakingRolesSearchRolesV0Response, type PostStakingRolesSearchRolesV0Responses, type PostStakingStakesSearchStakeEventsV0Data, type PostStakingStakesSearchStakeEventsV0Error, type PostStakingStakesSearchStakeEventsV0Errors, type PostStakingStakesSearchStakeEventsV0Response, type PostStakingStakesSearchStakeEventsV0Responses, type PostStakingStakesSearchStakesV0Data, type PostStakingStakesSearchStakesV0Error, type PostStakingStakesSearchStakesV0Errors, type PostStakingStakesSearchStakesV0Response, type PostStakingStakesSearchStakesV0Responses, type PostStakingTemplatesReputationLockV0CreatePlatformData, type PostStakingTemplatesReputationLockV0CreatePlatformError, type PostStakingTemplatesReputationLockV0CreatePlatformErrors, type PostStakingTemplatesReputationLockV0CreatePlatformResponse, type PostStakingTemplatesReputationLockV0CreatePlatformResponses, type PostStakingTemplatesReputationLockV0CreatePoolData, type PostStakingTemplatesReputationLockV0CreatePoolError, type PostStakingTemplatesReputationLockV0CreatePoolErrors, type PostStakingTemplatesReputationLockV0CreatePoolResponse, type PostStakingTemplatesReputationLockV0CreatePoolResponses, type PostStakingTemplatesReputationLockV0GetRewardData, type PostStakingTemplatesReputationLockV0GetRewardError, type PostStakingTemplatesReputationLockV0GetRewardErrors, type PostStakingTemplatesReputationLockV0GetRewardResponse, type PostStakingTemplatesReputationLockV0GetRewardResponses, type PostStakingTemplatesReputationLockV0PartialUnstakeData, type PostStakingTemplatesReputationLockV0PartialUnstakeError, type PostStakingTemplatesReputationLockV0PartialUnstakeErrors, type PostStakingTemplatesReputationLockV0PartialUnstakeResponse, type PostStakingTemplatesReputationLockV0PartialUnstakeResponses, type PostStakingTemplatesReputationLockV0RestakeData, type PostStakingTemplatesReputationLockV0RestakeError, type PostStakingTemplatesReputationLockV0RestakeErrors, type PostStakingTemplatesReputationLockV0RestakeResponse, type PostStakingTemplatesReputationLockV0RestakeResponses, type PostStakingTemplatesReputationLockV0StakeData, type PostStakingTemplatesReputationLockV0StakeError, type PostStakingTemplatesReputationLockV0StakeErrors, type PostStakingTemplatesReputationLockV0StakeResponse, type PostStakingTemplatesReputationLockV0StakeResponses, type PostStakingTemplatesReputationLockV0UnstakeData, type PostStakingTemplatesReputationLockV0UnstakeError, type PostStakingTemplatesReputationLockV0UnstakeErrors, type PostStakingTemplatesReputationLockV0UnstakeResponse, type PostStakingTemplatesReputationLockV0UnstakeResponses, type PostStakingTemplatesReputationV0CreatePlatformData, type PostStakingTemplatesReputationV0CreatePlatformError, type PostStakingTemplatesReputationV0CreatePlatformErrors, type PostStakingTemplatesReputationV0CreatePlatformResponse, type PostStakingTemplatesReputationV0CreatePlatformResponses, type PostStakingTemplatesReputationV0CreatePoolData, type PostStakingTemplatesReputationV0CreatePoolError, type PostStakingTemplatesReputationV0CreatePoolErrors, type PostStakingTemplatesReputationV0CreatePoolResponse, type PostStakingTemplatesReputationV0CreatePoolResponses, type PostStakingTemplatesReputationV0GetRewardData, type PostStakingTemplatesReputationV0GetRewardError, type PostStakingTemplatesReputationV0GetRewardErrors, type PostStakingTemplatesReputationV0GetRewardResponse, type PostStakingTemplatesReputationV0GetRewardResponses, type PostStakingTemplatesReputationV0PartialUnstakeData, type PostStakingTemplatesReputationV0PartialUnstakeError, type PostStakingTemplatesReputationV0PartialUnstakeErrors, type PostStakingTemplatesReputationV0PartialUnstakeResponse, type PostStakingTemplatesReputationV0PartialUnstakeResponses, type PostStakingTemplatesReputationV0RestakeData, type PostStakingTemplatesReputationV0RestakeError, type PostStakingTemplatesReputationV0RestakeErrors, type PostStakingTemplatesReputationV0RestakeResponse, type PostStakingTemplatesReputationV0RestakeResponses, type PostStakingTemplatesReputationV0StakeData, type PostStakingTemplatesReputationV0StakeError, type PostStakingTemplatesReputationV0StakeErrors, type PostStakingTemplatesReputationV0StakeResponse, type PostStakingTemplatesReputationV0StakeResponses, type PostStakingTemplatesReputationV0UnstakeData, type PostStakingTemplatesReputationV0UnstakeError, type PostStakingTemplatesReputationV0UnstakeErrors, type PostStakingTemplatesReputationV0UnstakeResponse, type PostStakingTemplatesReputationV0UnstakeResponses, type PostStakingTemplatesRwaV0CreatePlatformData, type PostStakingTemplatesRwaV0CreatePlatformError, type PostStakingTemplatesRwaV0CreatePlatformErrors, type PostStakingTemplatesRwaV0CreatePlatformResponse, type PostStakingTemplatesRwaV0CreatePlatformResponses, type PostStakingTemplatesRwaV0CreatePoolData, type PostStakingTemplatesRwaV0CreatePoolError, type PostStakingTemplatesRwaV0CreatePoolErrors, type PostStakingTemplatesRwaV0CreatePoolResponse, type PostStakingTemplatesRwaV0CreatePoolResponses, type PostStakingTemplatesRwaV0GetRewardData, type PostStakingTemplatesRwaV0GetRewardError, type PostStakingTemplatesRwaV0GetRewardErrors, type PostStakingTemplatesRwaV0GetRewardResponse, type PostStakingTemplatesRwaV0GetRewardResponses, type PostStakingTemplatesRwaV0NotifyRewardsData, type PostStakingTemplatesRwaV0NotifyRewardsError, type PostStakingTemplatesRwaV0NotifyRewardsErrors, type PostStakingTemplatesRwaV0NotifyRewardsResponse, type PostStakingTemplatesRwaV0NotifyRewardsResponses, type PostStakingTemplatesRwaV0PartialUnstakeData, type PostStakingTemplatesRwaV0PartialUnstakeError, type PostStakingTemplatesRwaV0PartialUnstakeErrors, type PostStakingTemplatesRwaV0PartialUnstakeResponse, type PostStakingTemplatesRwaV0PartialUnstakeResponses, type PostStakingTemplatesRwaV0RestakeData, type PostStakingTemplatesRwaV0RestakeError, type PostStakingTemplatesRwaV0RestakeErrors, type PostStakingTemplatesRwaV0RestakeResponse, type PostStakingTemplatesRwaV0RestakeResponses, type PostStakingTemplatesRwaV0StakeData, type PostStakingTemplatesRwaV0StakeError, type PostStakingTemplatesRwaV0StakeErrors, type PostStakingTemplatesRwaV0StakeResponse, type PostStakingTemplatesRwaV0StakeResponses, type PostStakingTemplatesRwaV0UnstakeData, type PostStakingTemplatesRwaV0UnstakeError, type PostStakingTemplatesRwaV0UnstakeErrors, type PostStakingTemplatesRwaV0UnstakeResponse, type PostStakingTemplatesRwaV0UnstakeResponses, type PostV0FractionsCompilotErc20BurnData, type PostV0FractionsCompilotErc20BurnError, type PostV0FractionsCompilotErc20BurnErrors, type PostV0FractionsCompilotErc20BurnResponse, type PostV0FractionsCompilotErc20BurnResponses, type PostV0FractionsCompilotErc20MintData, type PostV0FractionsCompilotErc20MintError, type PostV0FractionsCompilotErc20MintErrors, type PostV0FractionsCompilotErc20MintResponse, type PostV0FractionsCompilotErc20MintResponses, type PostV0FractionsCompilotErc20ProxyData, type PostV0FractionsCompilotErc20ProxyError, type PostV0FractionsCompilotErc20ProxyErrors, type PostV0FractionsCompilotErc20ProxyResponse, type PostV0FractionsCompilotErc20ProxyResponses, type PostV0FractionsFractionsApproveWrapperAsErc20SpenderData, type PostV0FractionsFractionsApproveWrapperAsErc20SpenderError, type PostV0FractionsFractionsApproveWrapperAsErc20SpenderErrors, type PostV0FractionsFractionsApproveWrapperAsErc20SpenderResponse, type PostV0FractionsFractionsApproveWrapperAsErc20SpenderResponses, type PostV0FractionsFractionsApproveWrapperAsErc721SpenderData, type PostV0FractionsFractionsApproveWrapperAsErc721SpenderError, type PostV0FractionsFractionsApproveWrapperAsErc721SpenderErrors, type PostV0FractionsFractionsApproveWrapperAsErc721SpenderResponse, type PostV0FractionsFractionsApproveWrapperAsErc721SpenderResponses, type PostV0FractionsFractionsApproveWrapperData, type PostV0FractionsFractionsApproveWrapperError, type PostV0FractionsFractionsApproveWrapperErrors, type PostV0FractionsFractionsApproveWrapperResponse, type PostV0FractionsFractionsApproveWrapperResponses, type PostV0FractionsMarketsSearchData, type PostV0FractionsMarketsSearchError, type PostV0FractionsMarketsSearchErrors, type PostV0FractionsMarketsSearchResponse, type PostV0FractionsMarketsSearchResponses, type PostV0FractionsPlatformsDeployData, type PostV0FractionsPlatformsDeployError, type PostV0FractionsPlatformsDeployErrors, type PostV0FractionsPlatformsDeployNidData, type PostV0FractionsPlatformsDeployNidError, type PostV0FractionsPlatformsDeployNidErrors, type PostV0FractionsPlatformsDeployNidResponse, type PostV0FractionsPlatformsDeployNidResponses, type PostV0FractionsPlatformsDeployResponse, type PostV0FractionsPlatformsDeployResponses, type PostV0FractionsRolesGrantData, type PostV0FractionsRolesGrantError, type PostV0FractionsRolesGrantErrors, type PostV0FractionsRolesGrantResponse, type PostV0FractionsRolesGrantResponses, type PostV0FractionsSalesApproveData, type PostV0FractionsSalesApproveError, type PostV0FractionsSalesApproveErrors, type PostV0FractionsSalesApproveResponse, type PostV0FractionsSalesApproveResponses, type PostV0FractionsSalesCompleteData, type PostV0FractionsSalesCompleteError, type PostV0FractionsSalesCompleteErrors, type PostV0FractionsSalesCompleteResponse, type PostV0FractionsSalesCompleteResponses, type PostV0FractionsSalesFractionsData, type PostV0FractionsSalesFractionsError, type PostV0FractionsSalesFractionsErrors, type PostV0FractionsSalesFractionsResponse, type PostV0FractionsSalesFractionsResponses, type PostV0FractionsSalesPurchaseData, type PostV0FractionsSalesPurchaseError, type PostV0FractionsSalesPurchaseErrors, type PostV0FractionsSalesPurchaseResponse, type PostV0FractionsSalesPurchaseResponses, type PostV0FractionsSalesRejectData, type PostV0FractionsSalesRejectError, type PostV0FractionsSalesRejectErrors, type PostV0FractionsSalesRejectResponse, type PostV0FractionsSalesRejectResponses, type PostV0FractionsSalesSearchData, type PostV0FractionsSalesSearchError, type PostV0FractionsSalesSearchErrors, type PostV0FractionsSalesSearchResponse, type PostV0FractionsSalesSearchResponses, type PostV0FractionsSalesSetFeeCapLimitData, type PostV0FractionsSalesSetFeeCapLimitError, type PostV0FractionsSalesSetFeeCapLimitErrors, type PostV0FractionsSalesSetFeeCapLimitResponse, type PostV0FractionsSalesSetFeeCapLimitResponses, type PostV0FractionsSalesVestingClaimData, type PostV0FractionsSalesVestingClaimError, type PostV0FractionsSalesVestingClaimErrors, type PostV0FractionsSalesVestingClaimResponse, type PostV0FractionsSalesVestingClaimResponses, type PostV0FractionsSalesVestingEditCliffData, type PostV0FractionsSalesVestingEditCliffError, type PostV0FractionsSalesVestingEditCliffErrors, type PostV0FractionsSalesVestingEditCliffResponse, type PostV0FractionsSalesVestingEditCliffResponses, type PostV0FractionsSalesWithdrawPaymentTokenData, type PostV0FractionsSalesWithdrawPaymentTokenError, type PostV0FractionsSalesWithdrawPaymentTokenErrors, type PostV0FractionsSalesWithdrawPaymentTokenResponse, type PostV0FractionsSalesWithdrawPaymentTokenResponses, type PostV0FractionsSigAuthDataData, type PostV0FractionsSigAuthDataError, type PostV0FractionsSigAuthDataErrors, type PostV0FractionsSigAuthDataResponse, type PostV0FractionsSigAuthDataResponses, type PostV0FractionsSigNonceData, type PostV0FractionsSigNonceError, type PostV0FractionsSigNonceErrors, type PostV0FractionsSigNonceResponse, type PostV0FractionsSigNonceResponses, type PurchaseRequestSchema, type RejectFractionsRequestSchema, type RewardDistributionComplex, type Role, type RoleAssignment, type SetFeeCapLimitRequestSchema, type Stake, type StakeEvent, type TokenBalanceSchema, type Transaction, type TxAuthDataRequestSchema, type WithdrawRequestSchema, type ZodError, api, envs, getEnv, handleApiResponse };
3008
+ export { type AmountMultInterval, type AmountTwoBorder, type ApiClient, type ApiResponse, type ApproveErc20SpendingToWrapper, type ApproveErc721SpendingToWrapper, type ApproveSaleRequestSchema, type ApproveWrapperRequestSchema, type BalancesResponseSchema, type ClaimVestedTokensRequestSchema, type ClientOptions, type CompleteSaleRequestSchema, type CreateFractionsRequestSchema, type DeployMarketRequestSchema, type EditCliffRequestSchema, type Erc20Input, type Erc20Reward, type Erc721Meta, type EstimateGasResponse, type GetGeneralBalanceData, type GetGeneralBalanceError, type GetGeneralBalanceErrors, type GetGeneralBalanceResponse, type GetGeneralBalanceResponses, type GetIssuanceErc20Data, type GetIssuanceErc20Error, type GetIssuanceErc20Errors, type GetIssuanceErc20Response, type GetIssuanceErc20Responses, type GetStakingPlatformsGetV0Data, type GetStakingPlatformsGetV0Error, type GetStakingPlatformsGetV0Errors, type GetStakingPlatformsGetV0Response, type GetStakingPlatformsGetV0Responses, type GetStakingPoolsGetPoolV0Data, type GetStakingPoolsGetPoolV0Error, type GetStakingPoolsGetPoolV0Errors, type GetStakingPoolsGetPoolV0Response, type GetStakingPoolsGetPoolV0Responses, type GetStakingRolesGetRolesV0Data, type GetStakingRolesGetRolesV0Error, type GetStakingRolesGetRolesV0Errors, type GetStakingRolesGetRolesV0Response, type GetStakingRolesGetRolesV0Responses, type GetStakingStakesGetStakeV0Data, type GetStakingStakesGetStakeV0Error, type GetStakingStakesGetStakeV0Errors, type GetStakingStakesGetStakeV0Response, type GetStakingStakesGetStakeV0Responses, type GetStakingTemplatesReputationLockV0GetCreatePoolEventData, type GetStakingTemplatesReputationLockV0GetCreatePoolEventError, type GetStakingTemplatesReputationLockV0GetCreatePoolEventErrors, type GetStakingTemplatesReputationLockV0GetCreatePoolEventResponse, type GetStakingTemplatesReputationLockV0GetCreatePoolEventResponses, type GetStakingTemplatesReputationLockV0GetPlatformDeployEventData, type GetStakingTemplatesReputationLockV0GetPlatformDeployEventError, type GetStakingTemplatesReputationLockV0GetPlatformDeployEventErrors, type GetStakingTemplatesReputationLockV0GetPlatformDeployEventResponse, type GetStakingTemplatesReputationLockV0GetPlatformDeployEventResponses, type GetStakingTemplatesReputationLockV0GetStakeEventData, type GetStakingTemplatesReputationLockV0GetStakeEventError, type GetStakingTemplatesReputationLockV0GetStakeEventErrors, type GetStakingTemplatesReputationLockV0GetStakeEventResponse, type GetStakingTemplatesReputationLockV0GetStakeEventResponses, type GetStakingTemplatesReputationV0GetCreatePoolEventData, type GetStakingTemplatesReputationV0GetCreatePoolEventError, type GetStakingTemplatesReputationV0GetCreatePoolEventErrors, type GetStakingTemplatesReputationV0GetCreatePoolEventResponse, type GetStakingTemplatesReputationV0GetCreatePoolEventResponses, type GetStakingTemplatesReputationV0GetPlatformDeployEventData, type GetStakingTemplatesReputationV0GetPlatformDeployEventError, type GetStakingTemplatesReputationV0GetPlatformDeployEventErrors, type GetStakingTemplatesReputationV0GetPlatformDeployEventResponse, type GetStakingTemplatesReputationV0GetPlatformDeployEventResponses, type GetStakingTemplatesReputationV0GetStakeEventData, type GetStakingTemplatesReputationV0GetStakeEventError, type GetStakingTemplatesReputationV0GetStakeEventErrors, type GetStakingTemplatesReputationV0GetStakeEventResponse, type GetStakingTemplatesReputationV0GetStakeEventResponses, type GetStakingTemplatesRwaV0GetCreatePoolEventData, type GetStakingTemplatesRwaV0GetCreatePoolEventError, type GetStakingTemplatesRwaV0GetCreatePoolEventErrors, type GetStakingTemplatesRwaV0GetCreatePoolEventResponse, type GetStakingTemplatesRwaV0GetCreatePoolEventResponses, type GetStakingTemplatesRwaV0GetPlatformDeployEventData, type GetStakingTemplatesRwaV0GetPlatformDeployEventError, type GetStakingTemplatesRwaV0GetPlatformDeployEventErrors, type GetStakingTemplatesRwaV0GetPlatformDeployEventResponse, type GetStakingTemplatesRwaV0GetPlatformDeployEventResponses, type GetStakingTemplatesRwaV0GetStakeEventData, type GetStakingTemplatesRwaV0GetStakeEventError, type GetStakingTemplatesRwaV0GetStakeEventErrors, type GetStakingTemplatesRwaV0GetStakeEventResponse, type GetStakingTemplatesRwaV0GetStakeEventResponses, type GetV0FractionsMarketsDeployEventData, type GetV0FractionsMarketsDeployEventError, type GetV0FractionsMarketsDeployEventErrors, type GetV0FractionsMarketsDeployEventResponse, type GetV0FractionsMarketsDeployEventResponses, type GetV0FractionsMarketsGetData, type GetV0FractionsMarketsGetError, type GetV0FractionsMarketsGetErrors, type GetV0FractionsMarketsGetResponse, type GetV0FractionsMarketsGetResponses, type GetV0FractionsRolesData, type GetV0FractionsRolesError, type GetV0FractionsRolesErrors, type GetV0FractionsRolesResponse, type GetV0FractionsRolesResponses, type GetV0FractionsSalesGetFractionsCreatedEventData, type GetV0FractionsSalesGetFractionsCreatedEventError, type GetV0FractionsSalesGetFractionsCreatedEventErrors, type GetV0FractionsSalesGetFractionsCreatedEventResponse, type GetV0FractionsSalesGetFractionsCreatedEventResponses, type GetV0FractionsSalesGetWithdrawEventData, type GetV0FractionsSalesGetWithdrawEventError, type GetV0FractionsSalesGetWithdrawEventErrors, type GetV0FractionsSalesGetWithdrawEventResponse, type GetV0FractionsSalesGetWithdrawEventResponses, type GrantMarketRoleRequestSchema, type IApiConfig, type IEnv, type IEnvName, type LockMultInterval, type LockTwoBorder, type NonceRequestSchema, type PageRequest, type Platform, type Pool, type PostGeneralBalancesData, type PostGeneralBalancesError, type PostGeneralBalancesErrors, type PostGeneralBalancesResponse, type PostGeneralBalancesResponses, type PostGeneralEstimateGasData, type PostGeneralEstimateGasError, type PostGeneralEstimateGasErrors, type PostGeneralEstimateGasResponse, type PostGeneralEstimateGasResponses, type PostGeneralSearchBalancesData, type PostGeneralSearchBalancesError, type PostGeneralSearchBalancesErrors, type PostGeneralSearchBalancesResponse, type PostGeneralSearchBalancesResponses, type PostIssuanceErc20BurnData, type PostIssuanceErc20BurnError, type PostIssuanceErc20BurnErrors, type PostIssuanceErc20BurnResponse, type PostIssuanceErc20BurnResponses, type PostIssuanceErc20MintData, type PostIssuanceErc20MintError, type PostIssuanceErc20MintErrors, type PostIssuanceErc20MintResponse, type PostIssuanceErc20MintResponses, type PostIssuanceErc20ProxyData, type PostIssuanceErc20ProxyError, type PostIssuanceErc20ProxyErrors, type PostIssuanceErc20ProxyResponse, type PostIssuanceErc20ProxyResponses, type PostStakingPlatformsSearchV0Data, type PostStakingPlatformsSearchV0Error, type PostStakingPlatformsSearchV0Errors, type PostStakingPlatformsSearchV0Response, type PostStakingPlatformsSearchV0Responses, type PostStakingPoolsSearchPoolsV0Data, type PostStakingPoolsSearchPoolsV0Error, type PostStakingPoolsSearchPoolsV0Errors, type PostStakingPoolsSearchPoolsV0Response, type PostStakingPoolsSearchPoolsV0Responses, type PostStakingRolesGrantRoleV0Data, type PostStakingRolesGrantRoleV0Error, type PostStakingRolesGrantRoleV0Errors, type PostStakingRolesGrantRoleV0Response, type PostStakingRolesGrantRoleV0Responses, type PostStakingRolesSearchRoleEventsV0Data, type PostStakingRolesSearchRoleEventsV0Error, type PostStakingRolesSearchRoleEventsV0Errors, type PostStakingRolesSearchRoleEventsV0Response, type PostStakingRolesSearchRoleEventsV0Responses, type PostStakingRolesSearchRolesV0Data, type PostStakingRolesSearchRolesV0Error, type PostStakingRolesSearchRolesV0Errors, type PostStakingRolesSearchRolesV0Response, type PostStakingRolesSearchRolesV0Responses, type PostStakingStakesSearchStakeEventsV0Data, type PostStakingStakesSearchStakeEventsV0Error, type PostStakingStakesSearchStakeEventsV0Errors, type PostStakingStakesSearchStakeEventsV0Response, type PostStakingStakesSearchStakeEventsV0Responses, type PostStakingStakesSearchStakesV0Data, type PostStakingStakesSearchStakesV0Error, type PostStakingStakesSearchStakesV0Errors, type PostStakingStakesSearchStakesV0Response, type PostStakingStakesSearchStakesV0Responses, type PostStakingTemplatesReputationLockV0CreatePlatformData, type PostStakingTemplatesReputationLockV0CreatePlatformError, type PostStakingTemplatesReputationLockV0CreatePlatformErrors, type PostStakingTemplatesReputationLockV0CreatePlatformResponse, type PostStakingTemplatesReputationLockV0CreatePlatformResponses, type PostStakingTemplatesReputationLockV0CreatePoolData, type PostStakingTemplatesReputationLockV0CreatePoolError, type PostStakingTemplatesReputationLockV0CreatePoolErrors, type PostStakingTemplatesReputationLockV0CreatePoolResponse, type PostStakingTemplatesReputationLockV0CreatePoolResponses, type PostStakingTemplatesReputationLockV0GetRewardData, type PostStakingTemplatesReputationLockV0GetRewardError, type PostStakingTemplatesReputationLockV0GetRewardErrors, type PostStakingTemplatesReputationLockV0GetRewardResponse, type PostStakingTemplatesReputationLockV0GetRewardResponses, type PostStakingTemplatesReputationLockV0PartialUnstakeData, type PostStakingTemplatesReputationLockV0PartialUnstakeError, type PostStakingTemplatesReputationLockV0PartialUnstakeErrors, type PostStakingTemplatesReputationLockV0PartialUnstakeResponse, type PostStakingTemplatesReputationLockV0PartialUnstakeResponses, type PostStakingTemplatesReputationLockV0RestakeData, type PostStakingTemplatesReputationLockV0RestakeError, type PostStakingTemplatesReputationLockV0RestakeErrors, type PostStakingTemplatesReputationLockV0RestakeResponse, type PostStakingTemplatesReputationLockV0RestakeResponses, type PostStakingTemplatesReputationLockV0StakeData, type PostStakingTemplatesReputationLockV0StakeError, type PostStakingTemplatesReputationLockV0StakeErrors, type PostStakingTemplatesReputationLockV0StakeResponse, type PostStakingTemplatesReputationLockV0StakeResponses, type PostStakingTemplatesReputationLockV0UnstakeData, type PostStakingTemplatesReputationLockV0UnstakeError, type PostStakingTemplatesReputationLockV0UnstakeErrors, type PostStakingTemplatesReputationLockV0UnstakeResponse, type PostStakingTemplatesReputationLockV0UnstakeResponses, type PostStakingTemplatesReputationV0CreatePlatformData, type PostStakingTemplatesReputationV0CreatePlatformError, type PostStakingTemplatesReputationV0CreatePlatformErrors, type PostStakingTemplatesReputationV0CreatePlatformResponse, type PostStakingTemplatesReputationV0CreatePlatformResponses, type PostStakingTemplatesReputationV0CreatePoolData, type PostStakingTemplatesReputationV0CreatePoolError, type PostStakingTemplatesReputationV0CreatePoolErrors, type PostStakingTemplatesReputationV0CreatePoolResponse, type PostStakingTemplatesReputationV0CreatePoolResponses, type PostStakingTemplatesReputationV0GetRewardData, type PostStakingTemplatesReputationV0GetRewardError, type PostStakingTemplatesReputationV0GetRewardErrors, type PostStakingTemplatesReputationV0GetRewardResponse, type PostStakingTemplatesReputationV0GetRewardResponses, type PostStakingTemplatesReputationV0PartialUnstakeData, type PostStakingTemplatesReputationV0PartialUnstakeError, type PostStakingTemplatesReputationV0PartialUnstakeErrors, type PostStakingTemplatesReputationV0PartialUnstakeResponse, type PostStakingTemplatesReputationV0PartialUnstakeResponses, type PostStakingTemplatesReputationV0RestakeData, type PostStakingTemplatesReputationV0RestakeError, type PostStakingTemplatesReputationV0RestakeErrors, type PostStakingTemplatesReputationV0RestakeResponse, type PostStakingTemplatesReputationV0RestakeResponses, type PostStakingTemplatesReputationV0StakeData, type PostStakingTemplatesReputationV0StakeError, type PostStakingTemplatesReputationV0StakeErrors, type PostStakingTemplatesReputationV0StakeResponse, type PostStakingTemplatesReputationV0StakeResponses, type PostStakingTemplatesReputationV0UnstakeData, type PostStakingTemplatesReputationV0UnstakeError, type PostStakingTemplatesReputationV0UnstakeErrors, type PostStakingTemplatesReputationV0UnstakeResponse, type PostStakingTemplatesReputationV0UnstakeResponses, type PostStakingTemplatesRwaV0CreatePlatformData, type PostStakingTemplatesRwaV0CreatePlatformError, type PostStakingTemplatesRwaV0CreatePlatformErrors, type PostStakingTemplatesRwaV0CreatePlatformResponse, type PostStakingTemplatesRwaV0CreatePlatformResponses, type PostStakingTemplatesRwaV0CreatePoolData, type PostStakingTemplatesRwaV0CreatePoolError, type PostStakingTemplatesRwaV0CreatePoolErrors, type PostStakingTemplatesRwaV0CreatePoolResponse, type PostStakingTemplatesRwaV0CreatePoolResponses, type PostStakingTemplatesRwaV0GetRewardData, type PostStakingTemplatesRwaV0GetRewardError, type PostStakingTemplatesRwaV0GetRewardErrors, type PostStakingTemplatesRwaV0GetRewardResponse, type PostStakingTemplatesRwaV0GetRewardResponses, type PostStakingTemplatesRwaV0NotifyRewardsData, type PostStakingTemplatesRwaV0NotifyRewardsError, type PostStakingTemplatesRwaV0NotifyRewardsErrors, type PostStakingTemplatesRwaV0NotifyRewardsResponse, type PostStakingTemplatesRwaV0NotifyRewardsResponses, type PostStakingTemplatesRwaV0PartialUnstakeData, type PostStakingTemplatesRwaV0PartialUnstakeError, type PostStakingTemplatesRwaV0PartialUnstakeErrors, type PostStakingTemplatesRwaV0PartialUnstakeResponse, type PostStakingTemplatesRwaV0PartialUnstakeResponses, type PostStakingTemplatesRwaV0RestakeData, type PostStakingTemplatesRwaV0RestakeError, type PostStakingTemplatesRwaV0RestakeErrors, type PostStakingTemplatesRwaV0RestakeResponse, type PostStakingTemplatesRwaV0RestakeResponses, type PostStakingTemplatesRwaV0StakeData, type PostStakingTemplatesRwaV0StakeError, type PostStakingTemplatesRwaV0StakeErrors, type PostStakingTemplatesRwaV0StakeResponse, type PostStakingTemplatesRwaV0StakeResponses, type PostStakingTemplatesRwaV0UnstakeData, type PostStakingTemplatesRwaV0UnstakeError, type PostStakingTemplatesRwaV0UnstakeErrors, type PostStakingTemplatesRwaV0UnstakeResponse, type PostStakingTemplatesRwaV0UnstakeResponses, type PostV0FractionsFractionsApproveWrapperAsErc20SpenderData, type PostV0FractionsFractionsApproveWrapperAsErc20SpenderError, type PostV0FractionsFractionsApproveWrapperAsErc20SpenderErrors, type PostV0FractionsFractionsApproveWrapperAsErc20SpenderResponse, type PostV0FractionsFractionsApproveWrapperAsErc20SpenderResponses, type PostV0FractionsFractionsApproveWrapperAsErc721SpenderData, type PostV0FractionsFractionsApproveWrapperAsErc721SpenderError, type PostV0FractionsFractionsApproveWrapperAsErc721SpenderErrors, type PostV0FractionsFractionsApproveWrapperAsErc721SpenderResponse, type PostV0FractionsFractionsApproveWrapperAsErc721SpenderResponses, type PostV0FractionsFractionsApproveWrapperData, type PostV0FractionsFractionsApproveWrapperError, type PostV0FractionsFractionsApproveWrapperErrors, type PostV0FractionsFractionsApproveWrapperResponse, type PostV0FractionsFractionsApproveWrapperResponses, type PostV0FractionsMarketsSearchData, type PostV0FractionsMarketsSearchError, type PostV0FractionsMarketsSearchErrors, type PostV0FractionsMarketsSearchResponse, type PostV0FractionsMarketsSearchResponses, type PostV0FractionsPlatformsDeployData, type PostV0FractionsPlatformsDeployError, type PostV0FractionsPlatformsDeployErrors, type PostV0FractionsPlatformsDeployNidData, type PostV0FractionsPlatformsDeployNidError, type PostV0FractionsPlatformsDeployNidErrors, type PostV0FractionsPlatformsDeployNidResponse, type PostV0FractionsPlatformsDeployNidResponses, type PostV0FractionsPlatformsDeployResponse, type PostV0FractionsPlatformsDeployResponses, type PostV0FractionsRolesGrantData, type PostV0FractionsRolesGrantError, type PostV0FractionsRolesGrantErrors, type PostV0FractionsRolesGrantResponse, type PostV0FractionsRolesGrantResponses, type PostV0FractionsSalesApproveData, type PostV0FractionsSalesApproveError, type PostV0FractionsSalesApproveErrors, type PostV0FractionsSalesApproveResponse, type PostV0FractionsSalesApproveResponses, type PostV0FractionsSalesCompleteData, type PostV0FractionsSalesCompleteError, type PostV0FractionsSalesCompleteErrors, type PostV0FractionsSalesCompleteResponse, type PostV0FractionsSalesCompleteResponses, type PostV0FractionsSalesFractionsData, type PostV0FractionsSalesFractionsError, type PostV0FractionsSalesFractionsErrors, type PostV0FractionsSalesFractionsResponse, type PostV0FractionsSalesFractionsResponses, type PostV0FractionsSalesPurchaseData, type PostV0FractionsSalesPurchaseError, type PostV0FractionsSalesPurchaseErrors, type PostV0FractionsSalesPurchaseResponse, type PostV0FractionsSalesPurchaseResponses, type PostV0FractionsSalesRejectData, type PostV0FractionsSalesRejectError, type PostV0FractionsSalesRejectErrors, type PostV0FractionsSalesRejectResponse, type PostV0FractionsSalesRejectResponses, type PostV0FractionsSalesSearchData, type PostV0FractionsSalesSearchError, type PostV0FractionsSalesSearchErrors, type PostV0FractionsSalesSearchResponse, type PostV0FractionsSalesSearchResponses, type PostV0FractionsSalesSetFeeCapLimitData, type PostV0FractionsSalesSetFeeCapLimitError, type PostV0FractionsSalesSetFeeCapLimitErrors, type PostV0FractionsSalesSetFeeCapLimitResponse, type PostV0FractionsSalesSetFeeCapLimitResponses, type PostV0FractionsSalesVestingClaimData, type PostV0FractionsSalesVestingClaimError, type PostV0FractionsSalesVestingClaimErrors, type PostV0FractionsSalesVestingClaimResponse, type PostV0FractionsSalesVestingClaimResponses, type PostV0FractionsSalesVestingEditCliffData, type PostV0FractionsSalesVestingEditCliffError, type PostV0FractionsSalesVestingEditCliffErrors, type PostV0FractionsSalesVestingEditCliffResponse, type PostV0FractionsSalesVestingEditCliffResponses, type PostV0FractionsSalesWithdrawPaymentTokenData, type PostV0FractionsSalesWithdrawPaymentTokenError, type PostV0FractionsSalesWithdrawPaymentTokenErrors, type PostV0FractionsSalesWithdrawPaymentTokenResponse, type PostV0FractionsSalesWithdrawPaymentTokenResponses, type PostV0FractionsSigAuthDataData, type PostV0FractionsSigAuthDataError, type PostV0FractionsSigAuthDataErrors, type PostV0FractionsSigAuthDataResponse, type PostV0FractionsSigAuthDataResponses, type PostV0FractionsSigNonceData, type PostV0FractionsSigNonceError, type PostV0FractionsSigNonceErrors, type PostV0FractionsSigNonceResponse, type PostV0FractionsSigNonceResponses, type PurchaseRequestSchema, type RejectFractionsRequestSchema, type RewardDistributionComplex, type Role, type RoleAssignment, type SetFeeCapLimitRequestSchema, type Stake, type StakeEvent, type TokenBalanceSchema, type Transaction, type TxAuthDataRequestSchema, type WithdrawRequestSchema, type ZodError, api, envs, getEnv, handleApiResponse };
package/dist/index.js CHANGED
@@ -1,2 +1,2 @@
1
- import{createClient as tt}from"@hey-api/client-fetch";var o=e=>(e.createdAt=new Date(e.createdAt),e.updatedAt=new Date(e.updatedAt),e),a=async e=>(e=o(e),e),s=async e=>(e=e.map(r=>o(r)),e),n=e=>(e.poolId=BigInt(e.poolId.toString()),e.createdAt=new Date(e.createdAt),e),p=async e=>(e=e.map(r=>n(r)),e),i=async e=>(e=n(e),e),l=e=>(e.poolId&&(e.poolId=BigInt(e.poolId.toString())),e.stakeId=BigInt(e.stakeId.toString()),e.activePackets=BigInt(e.activePackets.toString()),e.rewardsClaimed=BigInt(e.rewardsClaimed.toString()),e.unlockTimestamp=new Date(e.unlockTimestamp),e.startTimestamp=new Date(e.startTimestamp),e.createdAt=new Date(e.createdAt),e.updatedAt=new Date(e.updatedAt),e),c=async e=>(e=e.map(r=>l(r)),e),k=e=>(e.campaignId&&(e.campaignId=BigInt(e.campaignId.toString())),e.createdAt=new Date(e.createdAt),e),S=async e=>(e=e.map(r=>k(r)),e),R=async e=>(e=l(e),e),T=e=>(e.poolId&&(e.poolId=BigInt(e.poolId.toString())),e.createdAt=new Date(e.createdAt),e.updatedAt=new Date(e.updatedAt),e),g=async e=>(e=e.map(r=>T(r)),e),m=async e=>(e=e.map(r=>T(r)),e),P=async e=>(e.poolId=BigInt(e.poolId.toString()),e.stakeId=BigInt(e.stakeId.toString()),e),V=async e=>(e.poolId=BigInt(e.poolId.toString()),e),E=async e=>(e.poolId=BigInt(e.poolId.toString()),e.stakeId=BigInt(e.stakeId.toString()),e),h=async e=>(e.poolId=BigInt(e.poolId.toString()),e),u=async e=>(e.poolId=BigInt(e.poolId.toString()),e.stakeId=BigInt(e.stakeId.toString()),e),G=async e=>(e.poolId=BigInt(e.poolId.toString()),e),w=async e=>(e=o(e),e),f=async e=>(e=e.map(r=>o(r)),e),O=async e=>(e.nftId=BigInt(e.nftId.toString()),e.campaignId=BigInt(e.campaignId.toString()),e.fractionsCreated=BigInt(e.fractionsCreated.toString()),e),v=async e=>(e=e.map(r=>k(r)),e),F=async e=>(e.nonce=BigInt(e.nonce.toString()),e.blockExpiration=BigInt(e.blockExpiration.toString()),e),Ye=e=>(e.value=BigInt(e.value.toString()),e),d=async e=>(e=Ye(e),e),C=async e=>(e.balance=BigInt(e.balance.toString()),e),D=e=>(e.tokenId&&(e.tokenId=BigInt(e.tokenId.toString())),e),y=async e=>(e=e.map(r=>D(r)),e),Ze=e=>(e.balances=e.balances.map(r=>D(r)),e),x=async e=>(e=Ze(e),e);import{createClient as $e,createConfig as et}from"@hey-api/client-fetch";var t=$e(et({baseUrl:"http://localhost:3000"}));var L=e=>(e.client??t).get({responseTransformer:a,url:"/staking/platforms/get/v0",...e}),A=e=>(e?.client??t).post({responseTransformer:s,url:"/staking/platforms/search/v0",...e,headers:{"Content-Type":"application/json",...e?.headers}}),b=e=>(e?.client??t).post({responseTransformer:p,url:"/staking/pools/searchPools/v0",...e,headers:{"Content-Type":"application/json",...e?.headers}}),B=e=>(e.client??t).get({responseTransformer:i,url:"/staking/pools/getPool/v0",...e}),I=e=>(e?.client??t).post({responseTransformer:c,url:"/staking/stakes/searchStakes/v0",...e,headers:{"Content-Type":"application/json",...e?.headers}}),j=e=>(e?.client??t).post({responseTransformer:S,url:"/staking/stakes/searchStakeEvents/v0",...e,headers:{"Content-Type":"application/json",...e?.headers}}),U=e=>(e.client??t).get({responseTransformer:R,url:"/staking/stakes/getStake/v0",...e}),M=e=>(e?.client??t).get({url:"/staking/roles/getRoles/v0",...e}),W=e=>(e?.client??t).post({url:"/staking/roles/grantRole/v0",...e,headers:{"Content-Type":"application/json",...e?.headers}}),N=e=>(e?.client??t).post({responseTransformer:g,url:"/staking/roles/searchRoles/v0",...e,headers:{"Content-Type":"application/json",...e?.headers}}),K=e=>(e?.client??t).post({responseTransformer:m,url:"/staking/roles/searchRoleEvents/v0",...e,headers:{"Content-Type":"application/json",...e?.headers}}),q=e=>(e.client??t).get({url:"/stakingTemplates/reputation/v0/getPlatformDeployEvent",...e}),z=e=>(e.client??t).get({responseTransformer:P,url:"/stakingTemplates/reputation/v0/getStakeEvent",...e}),_=e=>(e.client??t).get({responseTransformer:V,url:"/stakingTemplates/reputation/v0/getCreatePoolEvent",...e}),H=e=>(e?.client??t).post({url:"/stakingTemplates/reputation/v0/getReward",...e,headers:{"Content-Type":"application/json",...e?.headers}}),J=e=>(e?.client??t).post({url:"/stakingTemplates/reputation/v0/partialUnstake",...e,headers:{"Content-Type":"application/json",...e?.headers}}),Q=e=>(e?.client??t).post({url:"/stakingTemplates/reputation/v0/restake",...e,headers:{"Content-Type":"application/json",...e?.headers}}),X=e=>(e?.client??t).post({url:"/stakingTemplates/reputation/v0/stake",...e,headers:{"Content-Type":"application/json",...e?.headers}}),Y=e=>(e?.client??t).post({url:"/stakingTemplates/reputation/v0/unstake",...e,headers:{"Content-Type":"application/json",...e?.headers}}),Z=e=>(e?.client??t).post({url:"/stakingTemplates/reputation/v0/createPool",...e,headers:{"Content-Type":"application/json",...e?.headers}}),$=e=>(e?.client??t).post({url:"/stakingTemplates/reputation/v0/createPlatform",...e,headers:{"Content-Type":"application/json",...e?.headers}}),ee=e=>(e.client??t).get({url:"/stakingTemplates/reputationLock/v0/getPlatformDeployEvent",...e}),te=e=>(e.client??t).get({responseTransformer:E,url:"/stakingTemplates/reputationLock/v0/getStakeEvent",...e}),re=e=>(e.client??t).get({responseTransformer:h,url:"/stakingTemplates/reputationLock/v0/getCreatePoolEvent",...e}),oe=e=>(e?.client??t).post({url:"/stakingTemplates/reputationLock/v0/getReward",...e,headers:{"Content-Type":"application/json",...e?.headers}}),ae=e=>(e?.client??t).post({url:"/stakingTemplates/reputationLock/v0/partialUnstake",...e,headers:{"Content-Type":"application/json",...e?.headers}}),se=e=>(e?.client??t).post({url:"/stakingTemplates/reputationLock/v0/restake",...e,headers:{"Content-Type":"application/json",...e?.headers}}),ne=e=>(e?.client??t).post({url:"/stakingTemplates/reputationLock/v0/stake",...e,headers:{"Content-Type":"application/json",...e?.headers}}),pe=e=>(e?.client??t).post({url:"/stakingTemplates/reputationLock/v0/unstake",...e,headers:{"Content-Type":"application/json",...e?.headers}}),ie=e=>(e?.client??t).post({url:"/stakingTemplates/reputationLock/v0/createPool",...e,headers:{"Content-Type":"application/json",...e?.headers}}),le=e=>(e?.client??t).post({url:"/stakingTemplates/reputationLock/v0/createPlatform",...e,headers:{"Content-Type":"application/json",...e?.headers}}),ce=e=>(e.client??t).get({url:"/stakingTemplates/rwa/v0/getPlatformDeployEvent",...e}),ke=e=>(e.client??t).get({responseTransformer:u,url:"/stakingTemplates/rwa/v0/getStakeEvent",...e}),Se=e=>(e.client??t).get({responseTransformer:G,url:"/stakingTemplates/rwa/v0/getCreatePoolEvent",...e}),Re=e=>(e?.client??t).post({url:"/stakingTemplates/rwa/v0/getReward",...e,headers:{"Content-Type":"application/json",...e?.headers}}),Te=e=>(e?.client??t).post({url:"/stakingTemplates/rwa/v0/partialUnstake",...e,headers:{"Content-Type":"application/json",...e?.headers}}),ge=e=>(e?.client??t).post({url:"/stakingTemplates/rwa/v0/restake",...e,headers:{"Content-Type":"application/json",...e?.headers}}),me=e=>(e?.client??t).post({url:"/stakingTemplates/rwa/v0/stake",...e,headers:{"Content-Type":"application/json",...e?.headers}}),Pe=e=>(e?.client??t).post({url:"/stakingTemplates/rwa/v0/unstake",...e,headers:{"Content-Type":"application/json",...e?.headers}}),Ve=e=>(e?.client??t).post({url:"/stakingTemplates/rwa/v0/createPool",...e,headers:{"Content-Type":"application/json",...e?.headers}}),Ee=e=>(e?.client??t).post({url:"/stakingTemplates/rwa/v0/createPlatform",...e,headers:{"Content-Type":"application/json",...e?.headers}}),he=e=>(e?.client??t).post({url:"/stakingTemplates/rwa/v0/notifyRewards",...e,headers:{"Content-Type":"application/json",...e?.headers}}),ue=e=>(e.client??t).get({responseTransformer:w,url:"/v0/fractions/markets/get",...e}),Ge=e=>(e?.client??t).post({responseTransformer:f,url:"/v0/fractions/markets/search",...e,headers:{"Content-Type":"application/json",...e?.headers}}),we=e=>(e.client??t).get({url:"/v0/fractions/markets/deployEvent",...e}),fe=e=>(e?.client??t).post({url:"/v0/fractions/platforms/deploy",...e,headers:{"Content-Type":"application/json",...e?.headers}}),Oe=e=>(e?.client??t).post({url:"/v0/fractions/platforms/deployNid",...e,headers:{"Content-Type":"application/json",...e?.headers}}),ve=e=>(e?.client??t).post({url:"/v0/fractions/fractions/approveWrapper",...e,headers:{"Content-Type":"application/json",...e?.headers}}),Fe=e=>(e?.client??t).post({url:"/v0/fractions/fractions/approveWrapperAsErc20Spender",...e,headers:{"Content-Type":"application/json",...e?.headers}}),de=e=>(e?.client??t).post({url:"/v0/fractions/fractions/approveWrapperAsErc721Spender",...e,headers:{"Content-Type":"application/json",...e?.headers}}),Ce=e=>(e?.client??t).get({url:"/v0/fractions/roles",...e}),De=e=>(e?.client??t).post({url:"/v0/fractions/roles/grant",...e,headers:{"Content-Type":"application/json",...e?.headers}}),ye=e=>(e?.client??t).post({url:"/v0/fractions/sales/fractions",...e,headers:{"Content-Type":"application/json",...e?.headers}}),xe=e=>(e.client??t).get({responseTransformer:O,url:"/v0/fractions/sales/getFractionsCreatedEvent",...e}),Le=e=>(e?.client??t).post({url:"/v0/fractions/sales/approve",...e,headers:{"Content-Type":"application/json",...e?.headers}}),Ae=e=>(e?.client??t).post({url:"/v0/fractions/sales/reject",...e,headers:{"Content-Type":"application/json",...e?.headers}}),be=e=>(e?.client??t).post({url:"/v0/fractions/sales/complete",...e,headers:{"Content-Type":"application/json",...e?.headers}}),Be=e=>(e?.client??t).post({url:"/v0/fractions/sales/purchase",...e,headers:{"Content-Type":"application/json",...e?.headers}}),Ie=e=>(e?.client??t).post({url:"/v0/fractions/sales/withdrawPaymentToken",...e,headers:{"Content-Type":"application/json",...e?.headers}}),je=e=>(e?.client??t).post({url:"/v0/fractions/sales/vesting/editCliff",...e,headers:{"Content-Type":"application/json",...e?.headers}}),Ue=e=>(e?.client??t).post({url:"/v0/fractions/sales/vesting/claim",...e,headers:{"Content-Type":"application/json",...e?.headers}}),Me=e=>(e?.client??t).post({responseTransformer:v,url:"/v0/fractions/sales/search",...e,headers:{"Content-Type":"application/json",...e?.headers}});var We=e=>(e?.client??t).post({url:"/v0/fractions/sig/nonce",...e,headers:{"Content-Type":"application/json",...e?.headers}}),Ne=e=>(e?.client??t).post({responseTransformer:F,url:"/v0/fractions/sig/authData",...e,headers:{"Content-Type":"application/json",...e?.headers}}),Ke=e=>(e?.client??t).get({url:"/v0/fractions/compilot/erc20",...e}),qe=e=>(e?.client??t).post({url:"/v0/fractions/compilot/erc20/mint",...e,headers:{"Content-Type":"application/json",...e?.headers}}),ze=e=>(e?.client??t).post({url:"/v0/fractions/compilot/erc20/burn",...e,headers:{"Content-Type":"application/json",...e?.headers}}),_e=e=>(e?.client??t).post({url:"/v0/fractions/compilot/erc20/proxy",...e,headers:{"Content-Type":"application/json",...e?.headers}}),He=e=>(e?.client??t).post({responseTransformer:d,url:"/general/estimateGas",...e,headers:{"Content-Type":"application/json",...e?.headers}}),Je=e=>(e.client??t).get({responseTransformer:C,url:"/general/balance",...e}),Qe=e=>(e?.client??t).post({responseTransformer:y,url:"/general/balances",...e,headers:{"Content-Type":"application/json",...e?.headers}}),Xe=e=>(e?.client??t).post({responseTransformer:x,url:"/general/searchBalances",...e,headers:{"Content-Type":"application/json",...e?.headers}});var mt={createClient:(e,r={})=>tt({baseUrl:e.env.baseUrl,...r,headers:{Authorization:e.apiKey,...r.headers}}),general:{searchBalances:Xe,getBalances:Qe,getBalance:Je,estimateGas:He},stakingTemplates:{reputation:{createPlatform:$,createPool:Z,getReward:H,partialUnstake:J,restake:Q,stake:X,unstake:Y,getCreatePoolEvent:_,getPlatformDeployEvent:q,getStakeEvent:z},reputationLock:{createPlatform:le,createPool:ie,getReward:oe,partialUnstake:ae,restake:se,stake:ne,unstake:pe,getCreatePoolEvent:re,getPlatformDeployEvent:ee,getStakeEvent:te},rwa:{createPlatform:Ee,createPool:Ve,getReward:Re,notifyRewards:he,partialUnstake:Te,restake:ge,stake:me,unstake:Pe,getCreatePoolEvent:Se,getPlatformDeployEvent:ce,getStakeEvent:ke}},staking:{roles:{getRoles:M,grantRole:W,searchRoles:N,searchRoleEvents:K},stakes:{getStake:U,searchStakes:I,searchStakeEvents:j},pools:{getPool:B,searchPools:b},platforms:{getPlatform:L,searchPlatforms:A}},fractions:{market:{deployMarket:fe,deployNidMarket:Oe,getMarketDeployedEvent:we,search:Ge,get:ue},roles:{grantRole:De,getRoles:Ce},sales:{createFractions:ye,approveSale:Le,rejectSale:Ae,completeSale:be,purchaseSale:Be,withdrawPaymentToken:Ie,getFractionsCreatedEvent:xe,search:Me,vesting:{claim:Ue,editCliff:je}},approvals:{approveWrapper:ve,approveWrapperToSpendErc20:Fe,approveWrapperToSpendErc721:de},compilot:{getAuthData:Ne,getNonce:We,erc20:Ke,erc1967Proxy:_e,erc20Mint:qe,erc20Burn:ze}}};import{apiEnvs as rt,getApiEnv as ot}from"@evergonlabs/tmi-protocol-shared/envs";var ut=rt,Gt=ot;function ft(e){if(e.error)throw e.error;if(!e.data)throw new Error("No response provided from the API");return e.data}export{mt as api,ut as envs,Gt as getEnv,ft as handleApiResponse};
1
+ import{createClient as at}from"@hey-api/client-fetch";var a=e=>(e.createdAt=new Date(e.createdAt),e.updatedAt=new Date(e.updatedAt),e),o=async e=>(e=a(e),e),s=async e=>(e=e.map(r=>a(r)),e),n=e=>(e.poolId=BigInt(e.poolId.toString()),e.createdAt=new Date(e.createdAt),e),p=async e=>(e=e.map(r=>n(r)),e),i=async e=>(e=n(e),e),l=e=>(e.poolId&&(e.poolId=BigInt(e.poolId.toString())),e.stakeId=BigInt(e.stakeId.toString()),e.activePackets=BigInt(e.activePackets.toString()),e.rewardsClaimed=BigInt(e.rewardsClaimed.toString()),e.unlockTimestamp=new Date(e.unlockTimestamp),e.startTimestamp=new Date(e.startTimestamp),e.createdAt=new Date(e.createdAt),e.updatedAt=new Date(e.updatedAt),e),c=async e=>(e=e.map(r=>l(r)),e),k=e=>(e.campaignId&&(e.campaignId=BigInt(e.campaignId.toString())),e.createdAt=new Date(e.createdAt),e),S=async e=>(e=e.map(r=>k(r)),e),R=async e=>(e=l(e),e),T=e=>(e.poolId&&(e.poolId=BigInt(e.poolId.toString())),e.createdAt=new Date(e.createdAt),e.updatedAt=new Date(e.updatedAt),e),g=async e=>(e=e.map(r=>T(r)),e),P=async e=>(e=e.map(r=>T(r)),e),m=async e=>(e.poolId=BigInt(e.poolId.toString()),e.stakeId=BigInt(e.stakeId.toString()),e),E=async e=>(e.poolId=BigInt(e.poolId.toString()),e),V=async e=>(e.poolId=BigInt(e.poolId.toString()),e.stakeId=BigInt(e.stakeId.toString()),e),h=async e=>(e.poolId=BigInt(e.poolId.toString()),e),u=async e=>(e.poolId=BigInt(e.poolId.toString()),e.stakeId=BigInt(e.stakeId.toString()),e),G=async e=>(e.poolId=BigInt(e.poolId.toString()),e),w=async e=>(e=a(e),e),f=async e=>(e=e.map(r=>a(r)),e),v=async e=>(e.nftId=BigInt(e.nftId.toString()),e.campaignId=BigInt(e.campaignId.toString()),e.fractionsCreated=BigInt(e.fractionsCreated.toString()),e),O=async e=>(e=e.map(r=>k(r)),e),d=async e=>(e.campaignId=BigInt(e.campaignId.toString()),e.packetsReceived=BigInt(e.packetsReceived.toString()),e),F=async e=>(e.nonce=BigInt(e.nonce.toString()),e.blockExpiration=BigInt(e.blockExpiration.toString()),e),$e=e=>(e.value=BigInt(e.value.toString()),e),D=async e=>(e=$e(e),e),y=async e=>(e.balance=BigInt(e.balance.toString()),e),C=e=>(e.tokenId&&(e.tokenId=BigInt(e.tokenId.toString())),e),x=async e=>(e=e.map(r=>C(r)),e),et=e=>(e.balances=e.balances.map(r=>C(r)),e),I=async e=>(e=et(e),e);import{createClient as tt,createConfig as rt}from"@hey-api/client-fetch";var t=tt(rt({baseUrl:"http://localhost:3000"}));var L=e=>(e.client??t).get({responseTransformer:o,url:"/staking/platforms/get/v0",...e}),A=e=>(e?.client??t).post({responseTransformer:s,url:"/staking/platforms/search/v0",...e,headers:{"Content-Type":"application/json",...e?.headers}}),b=e=>(e?.client??t).post({responseTransformer:p,url:"/staking/pools/searchPools/v0",...e,headers:{"Content-Type":"application/json",...e?.headers}}),B=e=>(e.client??t).get({responseTransformer:i,url:"/staking/pools/getPool/v0",...e}),j=e=>(e?.client??t).post({responseTransformer:c,url:"/staking/stakes/searchStakes/v0",...e,headers:{"Content-Type":"application/json",...e?.headers}}),U=e=>(e?.client??t).post({responseTransformer:S,url:"/staking/stakes/searchStakeEvents/v0",...e,headers:{"Content-Type":"application/json",...e?.headers}}),W=e=>(e.client??t).get({responseTransformer:R,url:"/staking/stakes/getStake/v0",...e}),M=e=>(e?.client??t).get({url:"/staking/roles/getRoles/v0",...e}),N=e=>(e?.client??t).post({url:"/staking/roles/grantRole/v0",...e,headers:{"Content-Type":"application/json",...e?.headers}}),K=e=>(e?.client??t).post({responseTransformer:g,url:"/staking/roles/searchRoles/v0",...e,headers:{"Content-Type":"application/json",...e?.headers}}),q=e=>(e?.client??t).post({responseTransformer:P,url:"/staking/roles/searchRoleEvents/v0",...e,headers:{"Content-Type":"application/json",...e?.headers}}),z=e=>(e.client??t).get({url:"/stakingTemplates/reputation/v0/getPlatformDeployEvent",...e}),_=e=>(e.client??t).get({responseTransformer:m,url:"/stakingTemplates/reputation/v0/getStakeEvent",...e}),H=e=>(e.client??t).get({responseTransformer:E,url:"/stakingTemplates/reputation/v0/getCreatePoolEvent",...e}),J=e=>(e?.client??t).post({url:"/stakingTemplates/reputation/v0/getReward",...e,headers:{"Content-Type":"application/json",...e?.headers}}),Q=e=>(e?.client??t).post({url:"/stakingTemplates/reputation/v0/partialUnstake",...e,headers:{"Content-Type":"application/json",...e?.headers}}),X=e=>(e?.client??t).post({url:"/stakingTemplates/reputation/v0/restake",...e,headers:{"Content-Type":"application/json",...e?.headers}}),Y=e=>(e?.client??t).post({url:"/stakingTemplates/reputation/v0/stake",...e,headers:{"Content-Type":"application/json",...e?.headers}}),Z=e=>(e?.client??t).post({url:"/stakingTemplates/reputation/v0/unstake",...e,headers:{"Content-Type":"application/json",...e?.headers}}),$=e=>(e?.client??t).post({url:"/stakingTemplates/reputation/v0/createPool",...e,headers:{"Content-Type":"application/json",...e?.headers}}),ee=e=>(e?.client??t).post({url:"/stakingTemplates/reputation/v0/createPlatform",...e,headers:{"Content-Type":"application/json",...e?.headers}}),te=e=>(e.client??t).get({url:"/stakingTemplates/reputationLock/v0/getPlatformDeployEvent",...e}),re=e=>(e.client??t).get({responseTransformer:V,url:"/stakingTemplates/reputationLock/v0/getStakeEvent",...e}),ae=e=>(e.client??t).get({responseTransformer:h,url:"/stakingTemplates/reputationLock/v0/getCreatePoolEvent",...e}),oe=e=>(e?.client??t).post({url:"/stakingTemplates/reputationLock/v0/getReward",...e,headers:{"Content-Type":"application/json",...e?.headers}}),se=e=>(e?.client??t).post({url:"/stakingTemplates/reputationLock/v0/partialUnstake",...e,headers:{"Content-Type":"application/json",...e?.headers}}),ne=e=>(e?.client??t).post({url:"/stakingTemplates/reputationLock/v0/restake",...e,headers:{"Content-Type":"application/json",...e?.headers}}),pe=e=>(e?.client??t).post({url:"/stakingTemplates/reputationLock/v0/stake",...e,headers:{"Content-Type":"application/json",...e?.headers}}),ie=e=>(e?.client??t).post({url:"/stakingTemplates/reputationLock/v0/unstake",...e,headers:{"Content-Type":"application/json",...e?.headers}}),le=e=>(e?.client??t).post({url:"/stakingTemplates/reputationLock/v0/createPool",...e,headers:{"Content-Type":"application/json",...e?.headers}}),ce=e=>(e?.client??t).post({url:"/stakingTemplates/reputationLock/v0/createPlatform",...e,headers:{"Content-Type":"application/json",...e?.headers}}),ke=e=>(e.client??t).get({url:"/stakingTemplates/rwa/v0/getPlatformDeployEvent",...e}),Se=e=>(e.client??t).get({responseTransformer:u,url:"/stakingTemplates/rwa/v0/getStakeEvent",...e}),Re=e=>(e.client??t).get({responseTransformer:G,url:"/stakingTemplates/rwa/v0/getCreatePoolEvent",...e}),Te=e=>(e?.client??t).post({url:"/stakingTemplates/rwa/v0/getReward",...e,headers:{"Content-Type":"application/json",...e?.headers}}),ge=e=>(e?.client??t).post({url:"/stakingTemplates/rwa/v0/partialUnstake",...e,headers:{"Content-Type":"application/json",...e?.headers}}),Pe=e=>(e?.client??t).post({url:"/stakingTemplates/rwa/v0/restake",...e,headers:{"Content-Type":"application/json",...e?.headers}}),me=e=>(e?.client??t).post({url:"/stakingTemplates/rwa/v0/stake",...e,headers:{"Content-Type":"application/json",...e?.headers}}),Ee=e=>(e?.client??t).post({url:"/stakingTemplates/rwa/v0/unstake",...e,headers:{"Content-Type":"application/json",...e?.headers}}),Ve=e=>(e?.client??t).post({url:"/stakingTemplates/rwa/v0/createPool",...e,headers:{"Content-Type":"application/json",...e?.headers}}),he=e=>(e?.client??t).post({url:"/stakingTemplates/rwa/v0/createPlatform",...e,headers:{"Content-Type":"application/json",...e?.headers}}),ue=e=>(e?.client??t).post({url:"/stakingTemplates/rwa/v0/notifyRewards",...e,headers:{"Content-Type":"application/json",...e?.headers}}),Ge=e=>(e.client??t).get({responseTransformer:w,url:"/v0/fractions/markets/get",...e}),we=e=>(e?.client??t).post({responseTransformer:f,url:"/v0/fractions/markets/search",...e,headers:{"Content-Type":"application/json",...e?.headers}}),fe=e=>(e.client??t).get({url:"/v0/fractions/markets/deployEvent",...e}),ve=e=>(e?.client??t).post({url:"/v0/fractions/platforms/deploy",...e,headers:{"Content-Type":"application/json",...e?.headers}}),Oe=e=>(e?.client??t).post({url:"/v0/fractions/platforms/deployNid",...e,headers:{"Content-Type":"application/json",...e?.headers}}),de=e=>(e?.client??t).post({url:"/v0/fractions/fractions/approveWrapper",...e,headers:{"Content-Type":"application/json",...e?.headers}}),Fe=e=>(e?.client??t).post({url:"/v0/fractions/fractions/approveWrapperAsErc20Spender",...e,headers:{"Content-Type":"application/json",...e?.headers}}),De=e=>(e?.client??t).post({url:"/v0/fractions/fractions/approveWrapperAsErc721Spender",...e,headers:{"Content-Type":"application/json",...e?.headers}}),ye=e=>(e?.client??t).get({url:"/v0/fractions/roles",...e}),Ce=e=>(e?.client??t).post({url:"/v0/fractions/roles/grant",...e,headers:{"Content-Type":"application/json",...e?.headers}}),xe=e=>(e?.client??t).post({url:"/v0/fractions/sales/fractions",...e,headers:{"Content-Type":"application/json",...e?.headers}}),Ie=e=>(e.client??t).get({responseTransformer:v,url:"/v0/fractions/sales/getFractionsCreatedEvent",...e}),Le=e=>(e?.client??t).post({url:"/v0/fractions/sales/approve",...e,headers:{"Content-Type":"application/json",...e?.headers}}),Ae=e=>(e?.client??t).post({url:"/v0/fractions/sales/reject",...e,headers:{"Content-Type":"application/json",...e?.headers}}),be=e=>(e?.client??t).post({url:"/v0/fractions/sales/complete",...e,headers:{"Content-Type":"application/json",...e?.headers}}),Be=e=>(e?.client??t).post({url:"/v0/fractions/sales/purchase",...e,headers:{"Content-Type":"application/json",...e?.headers}}),je=e=>(e?.client??t).post({url:"/v0/fractions/sales/withdrawPaymentToken",...e,headers:{"Content-Type":"application/json",...e?.headers}}),Ue=e=>(e?.client??t).post({url:"/v0/fractions/sales/vesting/editCliff",...e,headers:{"Content-Type":"application/json",...e?.headers}}),We=e=>(e?.client??t).post({url:"/v0/fractions/sales/vesting/claim",...e,headers:{"Content-Type":"application/json",...e?.headers}}),Me=e=>(e?.client??t).post({responseTransformer:O,url:"/v0/fractions/sales/search",...e,headers:{"Content-Type":"application/json",...e?.headers}});var Ne=e=>(e.client??t).get({responseTransformer:d,url:"/v0/fractions/sales/getWithdrawEvent",...e}),Ke=e=>(e?.client??t).post({url:"/v0/fractions/sig/nonce",...e,headers:{"Content-Type":"application/json",...e?.headers}}),qe=e=>(e?.client??t).post({responseTransformer:F,url:"/v0/fractions/sig/authData",...e,headers:{"Content-Type":"application/json",...e?.headers}}),ze=e=>(e?.client??t).post({responseTransformer:D,url:"/general/estimateGas",...e,headers:{"Content-Type":"application/json",...e?.headers}}),_e=e=>(e.client??t).get({responseTransformer:y,url:"/general/balance",...e}),He=e=>(e?.client??t).post({responseTransformer:x,url:"/general/balances",...e,headers:{"Content-Type":"application/json",...e?.headers}}),Je=e=>(e?.client??t).post({responseTransformer:I,url:"/general/searchBalances",...e,headers:{"Content-Type":"application/json",...e?.headers}}),Qe=e=>(e?.client??t).get({url:"/issuance/erc20",...e}),Xe=e=>(e?.client??t).post({url:"/issuance/erc20/mint",...e,headers:{"Content-Type":"application/json",...e?.headers}}),Ye=e=>(e?.client??t).post({url:"/issuance/erc20/burn",...e,headers:{"Content-Type":"application/json",...e?.headers}}),Ze=e=>(e?.client??t).post({url:"/issuance/erc20/proxy",...e,headers:{"Content-Type":"application/json",...e?.headers}});var Et={createClient:(e,r={})=>at({baseUrl:e.env.baseUrl,...r,headers:{Authorization:e.apiKey,...r.headers}}),general:{searchBalances:Je,getBalances:He,getBalance:_e,estimateGas:ze},stakingTemplates:{reputation:{createPlatform:ee,createPool:$,getReward:J,partialUnstake:Q,restake:X,stake:Y,unstake:Z,getCreatePoolEvent:H,getPlatformDeployEvent:z,getStakeEvent:_},reputationLock:{createPlatform:ce,createPool:le,getReward:oe,partialUnstake:se,restake:ne,stake:pe,unstake:ie,getCreatePoolEvent:ae,getPlatformDeployEvent:te,getStakeEvent:re},rwa:{createPlatform:he,createPool:Ve,getReward:Te,notifyRewards:ue,partialUnstake:ge,restake:Pe,stake:me,unstake:Ee,getCreatePoolEvent:Re,getPlatformDeployEvent:ke,getStakeEvent:Se}},staking:{roles:{getRoles:M,grantRole:N,searchRoles:K,searchRoleEvents:q},stakes:{getStake:W,searchStakes:j,searchStakeEvents:U},pools:{getPool:B,searchPools:b},platforms:{getPlatform:L,searchPlatforms:A}},fractions:{market:{deployMarket:ve,deployNidMarket:Oe,getMarketDeployedEvent:fe,search:we,get:Ge},roles:{grantRole:Ce,getRoles:ye},sales:{createFractions:xe,approveSale:Le,rejectSale:Ae,completeSale:be,purchaseSale:Be,withdrawPaymentToken:je,getFractionsCreatedEvent:Ie,search:Me,getWithdrawEvent:Ne,vesting:{claim:We,editCliff:Ue}},approvals:{approveWrapper:de,approveWrapperToSpendErc20:Fe,approveWrapperToSpendErc721:De},compilot:{getAuthData:qe,getNonce:Ke,erc20:Qe,erc1967Proxy:Ze,erc20Mint:Xe,erc20Burn:Ye}}};import{apiEnvs as ot,getApiEnv as st}from"@evergonlabs/tmi-protocol-shared/envs";var wt=ot,ft=st;function Ot(e){if(e.error)throw e.error;if(!e.data)throw new Error("No response provided from the API");return e.data}export{Et as api,wt as envs,ft as getEnv,Ot as handleApiResponse};
2
2
  //# sourceMappingURL=index.js.map