@evergonlabs/tmi-protocol-api-client 0.16.4 → 0.16.6

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
@@ -6,7 +6,7 @@ type Platform = {
6
6
  /**
7
7
  * Supported chain id
8
8
  */
9
- chainId: '1' | '11155111' | '72080' | '31337';
9
+ chainId: '11155111' | '31337';
10
10
  /**
11
11
  * Transaction hash
12
12
  */
@@ -118,7 +118,7 @@ type StakeEvent = {
118
118
  /**
119
119
  * Supported chain id
120
120
  */
121
- chainId: '1' | '11155111' | '72080' | '31337';
121
+ chainId: '11155111' | '31337';
122
122
  /**
123
123
  * Address of deployed Platform contract
124
124
  */
@@ -126,11 +126,15 @@ type StakeEvent = {
126
126
  /**
127
127
  * If empty or 0 then it's platform-wide
128
128
  */
129
- campaignId?: bigint;
129
+ poolId?: bigint;
130
130
  /**
131
131
  * Address role assigned to
132
132
  */
133
133
  owner: string;
134
+ /**
135
+ * Id of a Stake position (NFT Id)
136
+ */
137
+ stakeId: bigint;
134
138
  /**
135
139
  * Date ISO format
136
140
  */
@@ -342,6 +346,46 @@ type LockMultInterval = Array<[
342
346
  string | number | bigint,
343
347
  string | number | bigint
344
348
  ]>;
349
+ type FractionsMarket = {
350
+ /**
351
+ * Supported chain id
352
+ */
353
+ chainId: '1' | '11155111' | '72080' | '31337';
354
+ /**
355
+ * Transaction hash
356
+ */
357
+ txHash: string;
358
+ /**
359
+ * Template of deployed Fractions Market contract
360
+ */
361
+ template: 'default' | 'compilot' | 'continuous-withdrawal' | 'continuous-withdrawal-nid';
362
+ contractAddress: string;
363
+ adminAddress: string;
364
+ wrapperAddress: string | null;
365
+ burnAsset: AssetMeta | null;
366
+ feesBps: number | null;
367
+ /**
368
+ * Date ISO format
369
+ */
370
+ createdAt: Date;
371
+ /**
372
+ * Date ISO format
373
+ */
374
+ updatedAt: Date;
375
+ };
376
+ type AssetMeta = {
377
+ /**
378
+ * Supported chain id
379
+ */
380
+ chainId: '1' | '11155111' | '72080' | '31337';
381
+ address: string;
382
+ type: string;
383
+ symbol: string;
384
+ name: string;
385
+ tokenId: string | null;
386
+ decimals: number;
387
+ burnable: boolean;
388
+ };
345
389
  type DeployMarketRequestSchema = {
346
390
  /**
347
391
  * Supported chain id
@@ -472,6 +516,75 @@ type PurchaseRequestSchema = {
472
516
  amountToBuy: bigint;
473
517
  applyDiscount: boolean;
474
518
  };
519
+ type FractionsSale = {
520
+ /**
521
+ * Supported chain id
522
+ */
523
+ chainId: '1' | '11155111' | '72080' | '31337';
524
+ /**
525
+ * Address of deployed Platform contract
526
+ */
527
+ platform: string;
528
+ campaignId: number;
529
+ nftId: number;
530
+ /**
531
+ * Status of deployed Fractions Sale
532
+ */
533
+ status: 'created' | 'approved' | 'rejected' | 'finalized' | 'refunded';
534
+ /**
535
+ * Address role assigned to
536
+ */
537
+ owner: string;
538
+ fractions: {
539
+ asset: AssetMeta;
540
+ totalFractions: string;
541
+ price: string;
542
+ };
543
+ capitalization: {
544
+ hardCap: string;
545
+ hardCapPerAccount: string;
546
+ softCap: string;
547
+ softCapPerAccount: string;
548
+ } | null;
549
+ timeline: {
550
+ /**
551
+ * Date ISO format
552
+ */
553
+ startDate: Date;
554
+ /**
555
+ * Date ISO format
556
+ */
557
+ endDate: Date;
558
+ } | null;
559
+ vesting: {
560
+ /**
561
+ * Date ISO format
562
+ */
563
+ cliffDate: Date;
564
+ totalVestingPeriod: number;
565
+ portionPeriod: number;
566
+ } | null;
567
+ wrappedAssets: Array<{
568
+ asset: AssetMeta;
569
+ wrappedAmount: bigint;
570
+ }>;
571
+ fundingAssets: Array<{
572
+ asset: AssetMeta;
573
+ amountPerPacket: bigint;
574
+ }>;
575
+ /**
576
+ * Transaction hash
577
+ */
578
+ txHash: string;
579
+ /**
580
+ * Date ISO format
581
+ */
582
+ createdAt: Date;
583
+ /**
584
+ * Date ISO format
585
+ */
586
+ updatedAt: Date;
587
+ };
475
588
  type WithdrawRequestSchema = {
476
589
  market: string;
477
590
  campaignId: bigint;
@@ -497,6 +610,39 @@ type ClaimVestedTokensRequestSchema = {
497
610
  amountOfFractions: bigint;
498
611
  itToBurn: bigint;
499
612
  };
613
+ type FractionsActivity = {
614
+ /**
615
+ * Supported chain id
616
+ */
617
+ chainId: '1' | '11155111' | '72080' | '31337';
618
+ /**
619
+ * Address of deployed Platform contract
620
+ */
621
+ platform: string;
622
+ campaignId: string;
623
+ from: string;
624
+ type: string;
625
+ metadata?: unknown;
626
+ txHash: string;
627
+ createdAt: string;
628
+ updatedAt: string;
629
+ };
630
+ type FractionsSaleStatistics = {
631
+ /**
632
+ * Supported chain id
633
+ */
634
+ chainId: '1' | '11155111' | '72080' | '31337';
635
+ /**
636
+ * Address of deployed Platform contract
637
+ */
638
+ platform: string;
639
+ campaignId: string;
640
+ statistics: Array<{
641
+ priceId: string;
642
+ fractionsSold: string;
643
+ purchases: number;
644
+ }>;
645
+ };
500
646
  type SetFeeCapLimitRequestSchema = {
501
647
  marketAddress: string;
502
648
  campaignId: bigint;
@@ -2028,7 +2174,7 @@ type GetV0FractionsMarketsGetErrors = {
2028
2174
  */
2029
2175
  400: ZodError;
2030
2176
  /**
2031
- * No platform found
2177
+ * No market found
2032
2178
  */
2033
2179
  404: {
2034
2180
  success: false;
@@ -2039,9 +2185,9 @@ type GetV0FractionsMarketsGetErrors = {
2039
2185
  type GetV0FractionsMarketsGetError = GetV0FractionsMarketsGetErrors[keyof GetV0FractionsMarketsGetErrors];
2040
2186
  type GetV0FractionsMarketsGetResponses = {
2041
2187
  /**
2042
- * Platform details
2188
+ * Market details
2043
2189
  */
2044
- 200: Platform;
2190
+ 200: FractionsMarket;
2045
2191
  };
2046
2192
  type GetV0FractionsMarketsGetResponse = GetV0FractionsMarketsGetResponses[keyof GetV0FractionsMarketsGetResponses];
2047
2193
  type PostV0FractionsMarketsSearchData = {
@@ -2070,7 +2216,7 @@ type PostV0FractionsMarketsSearchResponses = {
2070
2216
  /**
2071
2217
  * Returns list of platforms by specified filter
2072
2218
  */
2073
- 200: Array<Platform>;
2219
+ 200: Array<FractionsMarket>;
2074
2220
  };
2075
2221
  type PostV0FractionsMarketsSearchResponse = PostV0FractionsMarketsSearchResponses[keyof PostV0FractionsMarketsSearchResponses];
2076
2222
  type GetV0FractionsMarketsDeployEventData = {
@@ -2487,6 +2633,42 @@ type PostV0FractionsSalesPurchaseResponses = {
2487
2633
  200: Transaction;
2488
2634
  };
2489
2635
  type PostV0FractionsSalesPurchaseResponse = PostV0FractionsSalesPurchaseResponses[keyof PostV0FractionsSalesPurchaseResponses];
2636
+ type PostV0FractionsSalesWithdrawSearchData = {
2637
+ body?: {
2638
+ page: PageRequest;
2639
+ filter: {
2640
+ /**
2641
+ * Supported chain id
2642
+ */
2643
+ chainId?: '1' | '11155111' | '72080' | '31337';
2644
+ /**
2645
+ * Address of deployed Platform contract
2646
+ */
2647
+ platform?: string;
2648
+ /**
2649
+ * Id of a Sale
2650
+ */
2651
+ campaignId?: string | number | bigint;
2652
+ };
2653
+ };
2654
+ path?: never;
2655
+ query?: never;
2656
+ url: '/v0/fractions/sales/withdraw/search';
2657
+ };
2658
+ type PostV0FractionsSalesWithdrawSearchErrors = {
2659
+ /**
2660
+ * Zod Error
2661
+ */
2662
+ 400: ZodError;
2663
+ };
2664
+ type PostV0FractionsSalesWithdrawSearchError = PostV0FractionsSalesWithdrawSearchErrors[keyof PostV0FractionsSalesWithdrawSearchErrors];
2665
+ type PostV0FractionsSalesWithdrawSearchResponses = {
2666
+ /**
2667
+ * Returns list of withdrawal events within specified platforms and pools
2668
+ */
2669
+ 200: Array<FractionsSale>;
2670
+ };
2671
+ type PostV0FractionsSalesWithdrawSearchResponse = PostV0FractionsSalesWithdrawSearchResponses[keyof PostV0FractionsSalesWithdrawSearchResponses];
2490
2672
  type PostV0FractionsSalesWithdrawPaymentTokenData = {
2491
2673
  body?: WithdrawRequestSchema;
2492
2674
  path?: never;
@@ -2685,9 +2867,75 @@ type PostV0FractionsSalesSearchResponses = {
2685
2867
  /**
2686
2868
  * Returns list of sales events within specified platforms and pools
2687
2869
  */
2688
- 200: Array<StakeEvent>;
2870
+ 200: Array<FractionsSale>;
2689
2871
  };
2690
2872
  type PostV0FractionsSalesSearchResponse = PostV0FractionsSalesSearchResponses[keyof PostV0FractionsSalesSearchResponses];
2873
+ type PostV0FractionsSalesActivityData = {
2874
+ body?: {
2875
+ page: PageRequest;
2876
+ filter: {
2877
+ /**
2878
+ * Supported chain id
2879
+ */
2880
+ chainId?: '1' | '11155111' | '72080' | '31337';
2881
+ /**
2882
+ * Address of deployed Platform contract
2883
+ */
2884
+ platform?: string;
2885
+ /**
2886
+ * Id of a Sale
2887
+ */
2888
+ campaignId?: string | number | bigint;
2889
+ };
2890
+ };
2891
+ path?: never;
2892
+ query?: never;
2893
+ url: '/v0/fractions/sales/activity';
2894
+ };
2895
+ type PostV0FractionsSalesActivityErrors = {
2896
+ /**
2897
+ * Zod Error
2898
+ */
2899
+ 400: ZodError;
2900
+ };
2901
+ type PostV0FractionsSalesActivityError = PostV0FractionsSalesActivityErrors[keyof PostV0FractionsSalesActivityErrors];
2902
+ type PostV0FractionsSalesActivityResponses = {
2903
+ /**
2904
+ * Returns list of activity events within specified platforms and pools
2905
+ */
2906
+ 200: Array<FractionsActivity>;
2907
+ };
2908
+ type PostV0FractionsSalesActivityResponse = PostV0FractionsSalesActivityResponses[keyof PostV0FractionsSalesActivityResponses];
2909
+ type PostV0FractionsSalesStatisticsData = {
2910
+ body?: {
2911
+ /**
2912
+ * Supported chain id
2913
+ */
2914
+ chainId: '1' | '11155111' | '72080' | '31337';
2915
+ /**
2916
+ * Address of deployed Platform contract
2917
+ */
2918
+ platform: string;
2919
+ /**
2920
+ * Id of a Sale
2921
+ */
2922
+ campaignId: string | number | bigint;
2923
+ };
2924
+ path?: never;
2925
+ query?: never;
2926
+ url: '/v0/fractions/sales/statistics';
2927
+ };
2928
+ type PostV0FractionsSalesStatisticsErrors = {
2929
+ /**
2930
+ * Zod Error
2931
+ */
2932
+ 400: ZodError;
2933
+ };
2934
+ type PostV0FractionsSalesStatisticsError = PostV0FractionsSalesStatisticsErrors[keyof PostV0FractionsSalesStatisticsErrors];
2935
+ type PostV0FractionsSalesStatisticsResponses = {
2936
+ 200: FractionsSaleStatistics;
2937
+ };
2938
+ type PostV0FractionsSalesStatisticsResponse = PostV0FractionsSalesStatisticsResponses[keyof PostV0FractionsSalesStatisticsResponses];
2691
2939
  type PostV0FractionsSalesSetFeeCapLimitData = {
2692
2940
  body?: SetFeeCapLimitRequestSchema;
2693
2941
  path?: never;
@@ -3153,7 +3401,7 @@ type PostIssuanceErc20RenounceRoleResponses = {
3153
3401
  };
3154
3402
  type PostIssuanceErc20RenounceRoleResponse = PostIssuanceErc20RenounceRoleResponses[keyof PostIssuanceErc20RenounceRoleResponses];
3155
3403
  type ClientOptions = {
3156
- baseUrl: 'http://localhost:3000' | (string & {});
3404
+ baseUrl: 'https://protocol-api.tmi.evergonlabs.com/' | (string & {});
3157
3405
  };
3158
3406
 
3159
3407
  type Options<TData extends TDataShape = TDataShape, ThrowOnError extends boolean = boolean> = Options$1<TData, ThrowOnError> & {
@@ -3307,8 +3555,8 @@ declare const api: {
3307
3555
  admin: string;
3308
3556
  wrapperAddress: string;
3309
3557
  }, ZodError, ThrowOnError>;
3310
- search: <ThrowOnError extends boolean = false>(options?: Options<PostV0FractionsMarketsSearchData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<Platform[], ZodError, ThrowOnError>;
3311
- get: <ThrowOnError extends boolean = false>(options: Options<GetV0FractionsMarketsGetData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<Platform, GetV0FractionsMarketsGetError, ThrowOnError>;
3558
+ search: <ThrowOnError extends boolean = false>(options?: Options<PostV0FractionsMarketsSearchData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<FractionsMarket[], ZodError, ThrowOnError>;
3559
+ get: <ThrowOnError extends boolean = false>(options: Options<GetV0FractionsMarketsGetData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<FractionsMarket, GetV0FractionsMarketsGetError, ThrowOnError>;
3312
3560
  initCompilot: <ThrowOnError extends boolean = false>(options: Options<GetV0FractionsPlatformsInitCompilotData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<Transaction, ZodError, ThrowOnError>;
3313
3561
  };
3314
3562
  roles: {
@@ -3322,6 +3570,8 @@ declare const api: {
3322
3570
  recover: <ThrowOnError extends boolean = false>(options?: Options<PostV0FractionsSalesRecoverData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<Transaction, ZodError, ThrowOnError>;
3323
3571
  completeSale: <ThrowOnError extends boolean = false>(options?: Options<PostV0FractionsSalesCompleteData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<Transaction, ZodError, ThrowOnError>;
3324
3572
  purchaseSale: <ThrowOnError extends boolean = false>(options?: Options<PostV0FractionsSalesPurchaseData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<Transaction, ZodError, ThrowOnError>;
3573
+ activity: <ThrowOnError extends boolean = false>(options?: Options<PostV0FractionsSalesActivityData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<FractionsActivity[], ZodError, ThrowOnError>;
3574
+ statistics: <ThrowOnError extends boolean = false>(options?: Options<PostV0FractionsSalesStatisticsData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<FractionsSaleStatistics, ZodError, ThrowOnError>;
3325
3575
  withdrawPaymentToken: <ThrowOnError extends boolean = false>(options?: Options<PostV0FractionsSalesWithdrawPaymentTokenData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<Transaction, ZodError, ThrowOnError>;
3326
3576
  receiveFundsAfterNonFunded: <ThrowOnError extends boolean = false>(options?: Options<PostV0FractionsSalesReceiveFundsAfterNonFundedData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<Transaction, ZodError, ThrowOnError>;
3327
3577
  getFractionsCreatedEvent: <ThrowOnError extends boolean = false>(options: Options<GetV0FractionsSalesGetFractionsCreatedEventData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<{
@@ -3332,7 +3582,7 @@ declare const api: {
3332
3582
  fractionsAddress: string;
3333
3583
  vaultAddress: string;
3334
3584
  }, ZodError, ThrowOnError>;
3335
- search: <ThrowOnError extends boolean = false>(options?: Options<PostV0FractionsSalesSearchData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<StakeEvent[], ZodError, ThrowOnError>;
3585
+ search: <ThrowOnError extends boolean = false>(options?: Options<PostV0FractionsSalesSearchData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<FractionsSale[], ZodError, ThrowOnError>;
3336
3586
  getWithdrawEvent: <ThrowOnError extends boolean = false>(options: Options<GetV0FractionsSalesGetWithdrawEventData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<{
3337
3587
  campaignId: bigint;
3338
3588
  receiver: string;
@@ -3414,4 +3664,4 @@ type ApiResponse<T> = {
3414
3664
  };
3415
3665
  declare function handleApiResponse<T>(apiResponse: ApiResponse<T>): T;
3416
3666
 
3417
- 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 GetV0FractionsPlatformsInitCompilotData, type GetV0FractionsPlatformsInitCompilotError, type GetV0FractionsPlatformsInitCompilotErrors, type GetV0FractionsPlatformsInitCompilotResponse, type GetV0FractionsPlatformsInitCompilotResponses, type GetV0FractionsRolesData, type GetV0FractionsRolesError, type GetV0FractionsRolesErrors, type GetV0FractionsRolesResponse, type GetV0FractionsRolesResponses, type GetV0FractionsSalesGetFractionsCreatedEventData, type GetV0FractionsSalesGetFractionsCreatedEventError, type GetV0FractionsSalesGetFractionsCreatedEventErrors, type GetV0FractionsSalesGetFractionsCreatedEventResponse, type GetV0FractionsSalesGetFractionsCreatedEventResponses, type GetV0FractionsSalesGetVaultAddressData, type GetV0FractionsSalesGetVaultAddressError, type GetV0FractionsSalesGetVaultAddressErrors, type GetV0FractionsSalesGetVaultAddressResponse, type GetV0FractionsSalesGetVaultAddressResponses, type GetV0FractionsSalesGetWithdrawEventData, type GetV0FractionsSalesGetWithdrawEventError, type GetV0FractionsSalesGetWithdrawEventErrors, type GetV0FractionsSalesGetWithdrawEventResponse, type GetV0FractionsSalesGetWithdrawEventResponses, type GetV0FractionsSalesVestingGetClaimVestedTokensEventData, type GetV0FractionsSalesVestingGetClaimVestedTokensEventError, type GetV0FractionsSalesVestingGetClaimVestedTokensEventErrors, type GetV0FractionsSalesVestingGetClaimVestedTokensEventResponse, type GetV0FractionsSalesVestingGetClaimVestedTokensEventResponses, type GrantMarketRoleRequestSchema, type IApiConfig, type IEnv, type IEnvName, type IssuanceDeployErc1967Schema, type IssuanceDeployErc20Schema, 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 PostIssuanceErc20ApproveData, type PostIssuanceErc20ApproveError, type PostIssuanceErc20ApproveErrors, type PostIssuanceErc20ApproveResponse, type PostIssuanceErc20ApproveResponses, type PostIssuanceErc20BurnData, type PostIssuanceErc20BurnError, type PostIssuanceErc20BurnErrors, type PostIssuanceErc20BurnResponse, type PostIssuanceErc20BurnResponses, type PostIssuanceErc20GrantRoleData, type PostIssuanceErc20GrantRoleError, type PostIssuanceErc20GrantRoleErrors, type PostIssuanceErc20GrantRoleResponse, type PostIssuanceErc20GrantRoleResponses, type PostIssuanceErc20MintData, type PostIssuanceErc20MintError, type PostIssuanceErc20MintErrors, type PostIssuanceErc20MintResponse, type PostIssuanceErc20MintResponses, type PostIssuanceErc20ProxyData, type PostIssuanceErc20ProxyError, type PostIssuanceErc20ProxyErrors, type PostIssuanceErc20ProxyResponse, type PostIssuanceErc20ProxyResponses, type PostIssuanceErc20RenounceRoleData, type PostIssuanceErc20RenounceRoleError, type PostIssuanceErc20RenounceRoleErrors, type PostIssuanceErc20RenounceRoleResponse, type PostIssuanceErc20RenounceRoleResponses, type PostIssuanceErc20TransferData, type PostIssuanceErc20TransferError, type PostIssuanceErc20TransferErrors, type PostIssuanceErc20TransferResponse, type PostIssuanceErc20TransferResponses, 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 PostV0FractionsPlatformsDeployContinuousWithdrawData, type PostV0FractionsPlatformsDeployContinuousWithdrawError, type PostV0FractionsPlatformsDeployContinuousWithdrawErrors, type PostV0FractionsPlatformsDeployContinuousWithdrawNidData, type PostV0FractionsPlatformsDeployContinuousWithdrawNidError, type PostV0FractionsPlatformsDeployContinuousWithdrawNidErrors, type PostV0FractionsPlatformsDeployContinuousWithdrawNidResponse, type PostV0FractionsPlatformsDeployContinuousWithdrawNidResponses, type PostV0FractionsPlatformsDeployContinuousWithdrawResponse, type PostV0FractionsPlatformsDeployContinuousWithdrawResponses, 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 PostV0FractionsSalesCheckAndJumpToNonFundedData, type PostV0FractionsSalesCheckAndJumpToNonFundedError, type PostV0FractionsSalesCheckAndJumpToNonFundedErrors, type PostV0FractionsSalesCheckAndJumpToNonFundedResponse, type PostV0FractionsSalesCheckAndJumpToNonFundedResponses, 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 PostV0FractionsSalesReceiveFundsAfterNonFundedData, type PostV0FractionsSalesReceiveFundsAfterNonFundedError, type PostV0FractionsSalesReceiveFundsAfterNonFundedErrors, type PostV0FractionsSalesReceiveFundsAfterNonFundedResponse, type PostV0FractionsSalesReceiveFundsAfterNonFundedResponses, type PostV0FractionsSalesReceiveNonPurchasedWrappedAssetsData, type PostV0FractionsSalesReceiveNonPurchasedWrappedAssetsError, type PostV0FractionsSalesReceiveNonPurchasedWrappedAssetsErrors, type PostV0FractionsSalesReceiveNonPurchasedWrappedAssetsResponse, type PostV0FractionsSalesReceiveNonPurchasedWrappedAssetsResponses, type PostV0FractionsSalesRecoverData, type PostV0FractionsSalesRecoverError, type PostV0FractionsSalesRecoverErrors, type PostV0FractionsSalesRecoverResponse, type PostV0FractionsSalesRecoverResponses, 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 PostV0FractionsSalesUnlockWrappedAssetsData, type PostV0FractionsSalesUnlockWrappedAssetsError, type PostV0FractionsSalesUnlockWrappedAssetsErrors, type PostV0FractionsSalesUnlockWrappedAssetsResponse, type PostV0FractionsSalesUnlockWrappedAssetsResponses, 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 ReceiveFundsAfterNonFundedRequestSchema, type RecoverFractionsRequestSchema, type RejectFractionsRequestSchema, type RewardDistributionComplex, type Role, type RoleAssignment, type SetFeeCapLimitRequestSchema, type Stake, type StakeEvent, type TokenBalanceSchema, type Transaction, type TxAuthDataRequestSchema, type UnlockWrappedAssetsRequestSchema, type WithdrawRequestSchema, type ZodError, api, envs, getEnv, handleApiResponse };
3667
+ export { type AmountMultInterval, type AmountTwoBorder, type ApiClient, type ApiResponse, type ApproveErc20SpendingToWrapper, type ApproveErc721SpendingToWrapper, type ApproveSaleRequestSchema, type ApproveWrapperRequestSchema, type AssetMeta, type BalancesResponseSchema, type ClaimVestedTokensRequestSchema, type ClientOptions, type CompleteSaleRequestSchema, type CreateFractionsRequestSchema, type DeployMarketRequestSchema, type EditCliffRequestSchema, type Erc20Input, type Erc20Reward, type Erc721Meta, type EstimateGasResponse, type FractionsActivity, type FractionsMarket, type FractionsSale, type FractionsSaleStatistics, 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 GetV0FractionsPlatformsInitCompilotData, type GetV0FractionsPlatformsInitCompilotError, type GetV0FractionsPlatformsInitCompilotErrors, type GetV0FractionsPlatformsInitCompilotResponse, type GetV0FractionsPlatformsInitCompilotResponses, type GetV0FractionsRolesData, type GetV0FractionsRolesError, type GetV0FractionsRolesErrors, type GetV0FractionsRolesResponse, type GetV0FractionsRolesResponses, type GetV0FractionsSalesGetFractionsCreatedEventData, type GetV0FractionsSalesGetFractionsCreatedEventError, type GetV0FractionsSalesGetFractionsCreatedEventErrors, type GetV0FractionsSalesGetFractionsCreatedEventResponse, type GetV0FractionsSalesGetFractionsCreatedEventResponses, type GetV0FractionsSalesGetVaultAddressData, type GetV0FractionsSalesGetVaultAddressError, type GetV0FractionsSalesGetVaultAddressErrors, type GetV0FractionsSalesGetVaultAddressResponse, type GetV0FractionsSalesGetVaultAddressResponses, type GetV0FractionsSalesGetWithdrawEventData, type GetV0FractionsSalesGetWithdrawEventError, type GetV0FractionsSalesGetWithdrawEventErrors, type GetV0FractionsSalesGetWithdrawEventResponse, type GetV0FractionsSalesGetWithdrawEventResponses, type GetV0FractionsSalesVestingGetClaimVestedTokensEventData, type GetV0FractionsSalesVestingGetClaimVestedTokensEventError, type GetV0FractionsSalesVestingGetClaimVestedTokensEventErrors, type GetV0FractionsSalesVestingGetClaimVestedTokensEventResponse, type GetV0FractionsSalesVestingGetClaimVestedTokensEventResponses, type GrantMarketRoleRequestSchema, type IApiConfig, type IEnv, type IEnvName, type IssuanceDeployErc1967Schema, type IssuanceDeployErc20Schema, 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 PostIssuanceErc20ApproveData, type PostIssuanceErc20ApproveError, type PostIssuanceErc20ApproveErrors, type PostIssuanceErc20ApproveResponse, type PostIssuanceErc20ApproveResponses, type PostIssuanceErc20BurnData, type PostIssuanceErc20BurnError, type PostIssuanceErc20BurnErrors, type PostIssuanceErc20BurnResponse, type PostIssuanceErc20BurnResponses, type PostIssuanceErc20GrantRoleData, type PostIssuanceErc20GrantRoleError, type PostIssuanceErc20GrantRoleErrors, type PostIssuanceErc20GrantRoleResponse, type PostIssuanceErc20GrantRoleResponses, type PostIssuanceErc20MintData, type PostIssuanceErc20MintError, type PostIssuanceErc20MintErrors, type PostIssuanceErc20MintResponse, type PostIssuanceErc20MintResponses, type PostIssuanceErc20ProxyData, type PostIssuanceErc20ProxyError, type PostIssuanceErc20ProxyErrors, type PostIssuanceErc20ProxyResponse, type PostIssuanceErc20ProxyResponses, type PostIssuanceErc20RenounceRoleData, type PostIssuanceErc20RenounceRoleError, type PostIssuanceErc20RenounceRoleErrors, type PostIssuanceErc20RenounceRoleResponse, type PostIssuanceErc20RenounceRoleResponses, type PostIssuanceErc20TransferData, type PostIssuanceErc20TransferError, type PostIssuanceErc20TransferErrors, type PostIssuanceErc20TransferResponse, type PostIssuanceErc20TransferResponses, 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 PostV0FractionsPlatformsDeployContinuousWithdrawData, type PostV0FractionsPlatformsDeployContinuousWithdrawError, type PostV0FractionsPlatformsDeployContinuousWithdrawErrors, type PostV0FractionsPlatformsDeployContinuousWithdrawNidData, type PostV0FractionsPlatformsDeployContinuousWithdrawNidError, type PostV0FractionsPlatformsDeployContinuousWithdrawNidErrors, type PostV0FractionsPlatformsDeployContinuousWithdrawNidResponse, type PostV0FractionsPlatformsDeployContinuousWithdrawNidResponses, type PostV0FractionsPlatformsDeployContinuousWithdrawResponse, type PostV0FractionsPlatformsDeployContinuousWithdrawResponses, 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 PostV0FractionsSalesActivityData, type PostV0FractionsSalesActivityError, type PostV0FractionsSalesActivityErrors, type PostV0FractionsSalesActivityResponse, type PostV0FractionsSalesActivityResponses, type PostV0FractionsSalesApproveData, type PostV0FractionsSalesApproveError, type PostV0FractionsSalesApproveErrors, type PostV0FractionsSalesApproveResponse, type PostV0FractionsSalesApproveResponses, type PostV0FractionsSalesCheckAndJumpToNonFundedData, type PostV0FractionsSalesCheckAndJumpToNonFundedError, type PostV0FractionsSalesCheckAndJumpToNonFundedErrors, type PostV0FractionsSalesCheckAndJumpToNonFundedResponse, type PostV0FractionsSalesCheckAndJumpToNonFundedResponses, 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 PostV0FractionsSalesReceiveFundsAfterNonFundedData, type PostV0FractionsSalesReceiveFundsAfterNonFundedError, type PostV0FractionsSalesReceiveFundsAfterNonFundedErrors, type PostV0FractionsSalesReceiveFundsAfterNonFundedResponse, type PostV0FractionsSalesReceiveFundsAfterNonFundedResponses, type PostV0FractionsSalesReceiveNonPurchasedWrappedAssetsData, type PostV0FractionsSalesReceiveNonPurchasedWrappedAssetsError, type PostV0FractionsSalesReceiveNonPurchasedWrappedAssetsErrors, type PostV0FractionsSalesReceiveNonPurchasedWrappedAssetsResponse, type PostV0FractionsSalesReceiveNonPurchasedWrappedAssetsResponses, type PostV0FractionsSalesRecoverData, type PostV0FractionsSalesRecoverError, type PostV0FractionsSalesRecoverErrors, type PostV0FractionsSalesRecoverResponse, type PostV0FractionsSalesRecoverResponses, 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 PostV0FractionsSalesStatisticsData, type PostV0FractionsSalesStatisticsError, type PostV0FractionsSalesStatisticsErrors, type PostV0FractionsSalesStatisticsResponse, type PostV0FractionsSalesStatisticsResponses, type PostV0FractionsSalesUnlockWrappedAssetsData, type PostV0FractionsSalesUnlockWrappedAssetsError, type PostV0FractionsSalesUnlockWrappedAssetsErrors, type PostV0FractionsSalesUnlockWrappedAssetsResponse, type PostV0FractionsSalesUnlockWrappedAssetsResponses, 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 PostV0FractionsSalesWithdrawSearchData, type PostV0FractionsSalesWithdrawSearchError, type PostV0FractionsSalesWithdrawSearchErrors, type PostV0FractionsSalesWithdrawSearchResponse, type PostV0FractionsSalesWithdrawSearchResponses, type PostV0FractionsSigAuthDataData, type PostV0FractionsSigAuthDataError, type PostV0FractionsSigAuthDataErrors, type PostV0FractionsSigAuthDataResponse, type PostV0FractionsSigAuthDataResponses, type PostV0FractionsSigNonceData, type PostV0FractionsSigNonceError, type PostV0FractionsSigNonceErrors, type PostV0FractionsSigNonceResponse, type PostV0FractionsSigNonceResponses, type PurchaseRequestSchema, type ReceiveFundsAfterNonFundedRequestSchema, type RecoverFractionsRequestSchema, type RejectFractionsRequestSchema, type RewardDistributionComplex, type Role, type RoleAssignment, type SetFeeCapLimitRequestSchema, type Stake, type StakeEvent, type TokenBalanceSchema, type Transaction, type TxAuthDataRequestSchema, type UnlockWrappedAssetsRequestSchema, type WithdrawRequestSchema, type ZodError, api, envs, getEnv, handleApiResponse };
package/dist/index.js CHANGED
@@ -1,2 +1,2 @@
1
- import{createClient as gt}from"@hey-api/client-fetch";var o=e=>(e.createdAt=new Date(e.createdAt),e.updatedAt=new Date(e.updatedAt),e),c=async e=>(e=o(e),e),S=async e=>(e=e.map(r=>o(r)),e),k=e=>(e.poolId=BigInt(e.poolId.toString()),e.createdAt=new Date(e.createdAt),e),R=async e=>(e=e.map(r=>k(r)),e),T=async e=>(e=k(e),e),E=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),P=async e=>(e=e.map(r=>E(r)),e),V=e=>(e.campaignId&&(e.campaignId=BigInt(e.campaignId.toString())),e.createdAt=new Date(e.createdAt),e),g=async e=>(e=e.map(r=>V(r)),e),m=async e=>(e=E(e),e),u=e=>(e.poolId&&(e.poolId=BigInt(e.poolId.toString())),e.createdAt=new Date(e.createdAt),e.updatedAt=new Date(e.updatedAt),e),h=async e=>(e=e.map(r=>u(r)),e),w=async e=>(e=e.map(r=>u(r)),e),G=async e=>(e.poolId=BigInt(e.poolId.toString()),e.stakeId=BigInt(e.stakeId.toString()),e),d=async e=>(e.poolId=BigInt(e.poolId.toString()),e),f=async e=>(e.poolId=BigInt(e.poolId.toString()),e.stakeId=BigInt(e.stakeId.toString()),e),F=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),O=async e=>(e.poolId=BigInt(e.poolId.toString()),e),C=async e=>(e=o(e),e),D=async e=>(e=e.map(r=>o(r)),e),y=async e=>(e.nftId=BigInt(e.nftId.toString()),e.campaignId=BigInt(e.campaignId.toString()),e.fractionsCreated=BigInt(e.fractionsCreated.toString()),e),x=async e=>(e.campaignId=BigInt(e.campaignId.toString()),e.burnId=BigInt(e.burnId.toString()),e.nextBurnId=BigInt(e.nextBurnId.toString()),e.amountOfFractionsBurnt=BigInt(e.amountOfFractionsBurnt.toString()),e),I=async e=>(e=e.map(r=>V(r)),e),A=async e=>(e.campaignId=BigInt(e.campaignId.toString()),e.packetsReceived=BigInt(e.packetsReceived.toString()),e),L=async e=>(e.nonce=BigInt(e.nonce.toString()),e.blockExpiration=BigInt(e.blockExpiration.toString()),e),Tt=e=>(e.value=BigInt(e.value.toString()),e),b=async e=>(e=Tt(e),e),W=async e=>(e.balance=BigInt(e.balance.toString()),e),B=e=>(e.tokenId&&(e.tokenId=BigInt(e.tokenId.toString())),e),j=async e=>(e=e.map(r=>B(r)),e),Et=e=>(e.balances=e.balances.map(r=>B(r)),e),N=async e=>(e=Et(e),e);import{createClient as Pt,createConfig as Vt}from"@hey-api/client-fetch";var t=Pt(Vt({baseUrl:"http://localhost:3000"}));var U=e=>(e.client??t).get({responseTransformer:c,url:"/staking/platforms/get/v0",...e}),M=e=>(e?.client??t).post({responseTransformer:S,url:"/staking/platforms/search/v0",...e,headers:{"Content-Type":"application/json",...e?.headers}}),J=e=>(e?.client??t).post({responseTransformer:R,url:"/staking/pools/searchPools/v0",...e,headers:{"Content-Type":"application/json",...e?.headers}}),K=e=>(e.client??t).get({responseTransformer:T,url:"/staking/pools/getPool/v0",...e}),q=e=>(e?.client??t).post({responseTransformer:P,url:"/staking/stakes/searchStakes/v0",...e,headers:{"Content-Type":"application/json",...e?.headers}}),z=e=>(e?.client??t).post({responseTransformer:g,url:"/staking/stakes/searchStakeEvents/v0",...e,headers:{"Content-Type":"application/json",...e?.headers}}),_=e=>(e.client??t).get({responseTransformer:m,url:"/staking/stakes/getStake/v0",...e}),H=e=>(e?.client??t).get({url:"/staking/roles/getRoles/v0",...e}),Q=e=>(e?.client??t).post({url:"/staking/roles/grantRole/v0",...e,headers:{"Content-Type":"application/json",...e?.headers}}),X=e=>(e?.client??t).post({responseTransformer:h,url:"/staking/roles/searchRoles/v0",...e,headers:{"Content-Type":"application/json",...e?.headers}}),Y=e=>(e?.client??t).post({responseTransformer:w,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:G,url:"/stakingTemplates/reputation/v0/getStakeEvent",...e}),ee=e=>(e.client??t).get({responseTransformer:d,url:"/stakingTemplates/reputation/v0/getCreatePoolEvent",...e}),te=e=>(e?.client??t).post({url:"/stakingTemplates/reputation/v0/getReward",...e,headers:{"Content-Type":"application/json",...e?.headers}}),re=e=>(e?.client??t).post({url:"/stakingTemplates/reputation/v0/partialUnstake",...e,headers:{"Content-Type":"application/json",...e?.headers}}),oe=e=>(e?.client??t).post({url:"/stakingTemplates/reputation/v0/restake",...e,headers:{"Content-Type":"application/json",...e?.headers}}),ae=e=>(e?.client??t).post({url:"/stakingTemplates/reputation/v0/stake",...e,headers:{"Content-Type":"application/json",...e?.headers}}),se=e=>(e?.client??t).post({url:"/stakingTemplates/reputation/v0/unstake",...e,headers:{"Content-Type":"application/json",...e?.headers}}),ne=e=>(e?.client??t).post({url:"/stakingTemplates/reputation/v0/createPool",...e,headers:{"Content-Type":"application/json",...e?.headers}}),pe=e=>(e?.client??t).post({url:"/stakingTemplates/reputation/v0/createPlatform",...e,headers:{"Content-Type":"application/json",...e?.headers}}),ie=e=>(e.client??t).get({url:"/stakingTemplates/reputationLock/v0/getPlatformDeployEvent",...e}),le=e=>(e.client??t).get({responseTransformer:f,url:"/stakingTemplates/reputationLock/v0/getStakeEvent",...e}),ce=e=>(e.client??t).get({responseTransformer:F,url:"/stakingTemplates/reputationLock/v0/getCreatePoolEvent",...e}),Se=e=>(e?.client??t).post({url:"/stakingTemplates/reputationLock/v0/getReward",...e,headers:{"Content-Type":"application/json",...e?.headers}}),ke=e=>(e?.client??t).post({url:"/stakingTemplates/reputationLock/v0/partialUnstake",...e,headers:{"Content-Type":"application/json",...e?.headers}}),Re=e=>(e?.client??t).post({url:"/stakingTemplates/reputationLock/v0/restake",...e,headers:{"Content-Type":"application/json",...e?.headers}}),Te=e=>(e?.client??t).post({url:"/stakingTemplates/reputationLock/v0/stake",...e,headers:{"Content-Type":"application/json",...e?.headers}}),Ee=e=>(e?.client??t).post({url:"/stakingTemplates/reputationLock/v0/unstake",...e,headers:{"Content-Type":"application/json",...e?.headers}}),Pe=e=>(e?.client??t).post({url:"/stakingTemplates/reputationLock/v0/createPool",...e,headers:{"Content-Type":"application/json",...e?.headers}}),Ve=e=>(e?.client??t).post({url:"/stakingTemplates/reputationLock/v0/createPlatform",...e,headers:{"Content-Type":"application/json",...e?.headers}}),ge=e=>(e.client??t).get({url:"/stakingTemplates/rwa/v0/getPlatformDeployEvent",...e}),me=e=>(e.client??t).get({responseTransformer:v,url:"/stakingTemplates/rwa/v0/getStakeEvent",...e}),ue=e=>(e.client??t).get({responseTransformer:O,url:"/stakingTemplates/rwa/v0/getCreatePoolEvent",...e}),he=e=>(e?.client??t).post({url:"/stakingTemplates/rwa/v0/getReward",...e,headers:{"Content-Type":"application/json",...e?.headers}}),we=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}}),de=e=>(e?.client??t).post({url:"/stakingTemplates/rwa/v0/stake",...e,headers:{"Content-Type":"application/json",...e?.headers}}),fe=e=>(e?.client??t).post({url:"/stakingTemplates/rwa/v0/unstake",...e,headers:{"Content-Type":"application/json",...e?.headers}}),Fe=e=>(e?.client??t).post({url:"/stakingTemplates/rwa/v0/createPool",...e,headers:{"Content-Type":"application/json",...e?.headers}}),ve=e=>(e?.client??t).post({url:"/stakingTemplates/rwa/v0/createPlatform",...e,headers:{"Content-Type":"application/json",...e?.headers}}),Oe=e=>(e?.client??t).post({url:"/stakingTemplates/rwa/v0/notifyRewards",...e,headers:{"Content-Type":"application/json",...e?.headers}}),Ce=e=>(e.client??t).get({responseTransformer:C,url:"/v0/fractions/markets/get",...e}),De=e=>(e?.client??t).post({responseTransformer:D,url:"/v0/fractions/markets/search",...e,headers:{"Content-Type":"application/json",...e?.headers}}),ye=e=>(e.client??t).get({url:"/v0/fractions/markets/deployEvent",...e}),xe=e=>(e?.client??t).post({url:"/v0/fractions/platforms/deploy",...e,headers:{"Content-Type":"application/json",...e?.headers}}),Ie=e=>(e?.client??t).post({url:"/v0/fractions/platforms/deployNid",...e,headers:{"Content-Type":"application/json",...e?.headers}}),Ae=e=>(e?.client??t).post({url:"/v0/fractions/platforms/deployContinuousWithdraw",...e,headers:{"Content-Type":"application/json",...e?.headers}}),Le=e=>(e?.client??t).post({url:"/v0/fractions/platforms/deployContinuousWithdrawNid",...e,headers:{"Content-Type":"application/json",...e?.headers}}),be=e=>(e.client??t).get({url:"/v0/fractions/platforms/initCompilot",...e}),We=e=>(e?.client??t).post({url:"/v0/fractions/fractions/approveWrapper",...e,headers:{"Content-Type":"application/json",...e?.headers}}),Be=e=>(e?.client??t).post({url:"/v0/fractions/fractions/approveWrapperAsErc20Spender",...e,headers:{"Content-Type":"application/json",...e?.headers}}),je=e=>(e?.client??t).post({url:"/v0/fractions/fractions/approveWrapperAsErc721Spender",...e,headers:{"Content-Type":"application/json",...e?.headers}}),Ne=e=>(e?.client??t).get({url:"/v0/fractions/roles",...e}),Ue=e=>(e?.client??t).post({url:"/v0/fractions/roles/grant",...e,headers:{"Content-Type":"application/json",...e?.headers}}),Me=e=>(e?.client??t).post({url:"/v0/fractions/sales/fractions",...e,headers:{"Content-Type":"application/json",...e?.headers}}),Je=e=>(e.client??t).get({responseTransformer:y,url:"/v0/fractions/sales/getFractionsCreatedEvent",...e}),Ke=e=>(e?.client??t).post({url:"/v0/fractions/sales/approve",...e,headers:{"Content-Type":"application/json",...e?.headers}}),qe=e=>(e?.client??t).post({url:"/v0/fractions/sales/reject",...e,headers:{"Content-Type":"application/json",...e?.headers}}),ze=e=>(e?.client??t).post({url:"/v0/fractions/sales/recover",...e,headers:{"Content-Type":"application/json",...e?.headers}}),_e=e=>(e?.client??t).post({url:"/v0/fractions/sales/complete",...e,headers:{"Content-Type":"application/json",...e?.headers}}),He=e=>(e?.client??t).post({url:"/v0/fractions/sales/unlockWrappedAssets",...e,headers:{"Content-Type":"application/json",...e?.headers}}),Qe=e=>(e?.client??t).post({url:"/v0/fractions/sales/purchase",...e,headers:{"Content-Type":"application/json",...e?.headers}}),Xe=e=>(e?.client??t).post({url:"/v0/fractions/sales/withdrawPaymentToken",...e,headers:{"Content-Type":"application/json",...e?.headers}}),Ye=e=>(e?.client??t).post({url:"/v0/fractions/sales/receiveFundsAfterNonFunded",...e,headers:{"Content-Type":"application/json",...e?.headers}}),Ze=e=>(e?.client??t).post({url:"/v0/fractions/sales/checkAndJumpToNonFunded",...e,headers:{"Content-Type":"application/json",...e?.headers}}),$e=e=>(e?.client??t).post({url:"/v0/fractions/sales/receiveNonPurchasedWrappedAssets",...e,headers:{"Content-Type":"application/json",...e?.headers}}),et=e=>(e?.client??t).post({url:"/v0/fractions/sales/vesting/editCliff",...e,headers:{"Content-Type":"application/json",...e?.headers}}),tt=e=>(e?.client??t).post({url:"/v0/fractions/sales/vesting/claim",...e,headers:{"Content-Type":"application/json",...e?.headers}}),rt=e=>(e.client??t).get({responseTransformer:x,url:"/v0/fractions/sales/vesting/getClaimVestedTokensEvent",...e}),ot=e=>(e?.client??t).post({responseTransformer:I,url:"/v0/fractions/sales/search",...e,headers:{"Content-Type":"application/json",...e?.headers}}),at=e=>(e?.client??t).post({url:"/v0/fractions/sales/setFeeCapLimit",...e,headers:{"Content-Type":"application/json",...e?.headers}}),st=e=>(e.client??t).get({responseTransformer:A,url:"/v0/fractions/sales/getWithdrawEvent",...e});var a=e=>(e?.client??t).post({url:"/v0/fractions/sig/nonce",...e,headers:{"Content-Type":"application/json",...e?.headers}}),s=e=>(e?.client??t).post({responseTransformer:L,url:"/v0/fractions/sig/authData",...e,headers:{"Content-Type":"application/json",...e?.headers}}),nt=e=>(e?.client??t).post({responseTransformer:b,url:"/general/estimateGas",...e,headers:{"Content-Type":"application/json",...e?.headers}}),pt=e=>(e.client??t).get({responseTransformer:W,url:"/general/balance",...e}),it=e=>(e?.client??t).post({responseTransformer:j,url:"/general/balances",...e,headers:{"Content-Type":"application/json",...e?.headers}}),lt=e=>(e?.client??t).post({responseTransformer:N,url:"/general/searchBalances",...e,headers:{"Content-Type":"application/json",...e?.headers}}),n=e=>(e?.client??t).get({url:"/issuance/erc20",...e}),p=e=>(e?.client??t).post({url:"/issuance/erc20/mint",...e,headers:{"Content-Type":"application/json",...e?.headers}}),i=e=>(e?.client??t).post({url:"/issuance/erc20/burn",...e,headers:{"Content-Type":"application/json",...e?.headers}}),ct=e=>(e?.client??t).post({url:"/issuance/erc20/approve",...e,headers:{"Content-Type":"application/json",...e?.headers}}),St=e=>(e?.client??t).post({url:"/issuance/erc20/transfer",...e,headers:{"Content-Type":"application/json",...e?.headers}}),l=e=>(e?.client??t).post({url:"/issuance/erc20/proxy",...e,headers:{"Content-Type":"application/json",...e?.headers}}),kt=e=>(e?.client??t).post({url:"/issuance/erc20/grantRole",...e,headers:{"Content-Type":"application/json",...e?.headers}}),Rt=e=>(e?.client??t).post({url:"/issuance/erc20/renounceRole",...e,headers:{"Content-Type":"application/json",...e?.headers}});var It={createClient:(e,r={})=>gt({baseUrl:e.env.baseUrl,...r,headers:{Authorization:e.apiKey,...r.headers}}),general:{searchBalances:lt,getBalances:it,getBalance:pt,estimateGas:nt},stakingTemplates:{reputation:{createPlatform:pe,createPool:ne,getReward:te,partialUnstake:re,restake:oe,stake:ae,unstake:se,getCreatePoolEvent:ee,getPlatformDeployEvent:Z,getStakeEvent:$},reputationLock:{createPlatform:Ve,createPool:Pe,getReward:Se,partialUnstake:ke,restake:Re,stake:Te,unstake:Ee,getCreatePoolEvent:ce,getPlatformDeployEvent:ie,getStakeEvent:le},rwa:{createPlatform:ve,createPool:Fe,getReward:he,notifyRewards:Oe,partialUnstake:we,restake:Ge,stake:de,unstake:fe,getCreatePoolEvent:ue,getPlatformDeployEvent:ge,getStakeEvent:me}},staking:{roles:{getRoles:H,grantRole:Q,searchRoles:X,searchRoleEvents:Y},stakes:{getStake:_,searchStakes:q,searchStakeEvents:z},pools:{getPool:K,searchPools:J},platforms:{getPlatform:U,searchPlatforms:M}},fractions:{market:{deployMarket:xe,deployNidMarket:Ie,deployContinousWithdrawal:Ae,deployContinousWithdrawalNid:Le,getMarketDeployedEvent:ye,search:De,get:Ce,initCompilot:be},roles:{grantRole:Ue,getRoles:Ne},sales:{createFractions:Me,approveSale:Ke,rejectSale:qe,recover:ze,completeSale:_e,purchaseSale:Qe,withdrawPaymentToken:Xe,receiveFundsAfterNonFunded:Ye,getFractionsCreatedEvent:Je,search:ot,getWithdrawEvent:st,setFeeCapLimit:at,unlockWrappedAssets:He,checkAndJumpToNonFunded:Ze,receiveNonPurchased:$e,vesting:{claim:tt,getClaimVestedTokensEvent:rt,editCliff:et}},approvals:{approveWrapper:We,approveWrapperToSpendErc20:Be,approveWrapperToSpendErc721:je},compilot:{getAuthData:s,getNonce:a,erc20:n,erc1967Proxy:l,erc20Mint:p,erc20Burn:i},issuance:{getAuthData:s,getNonce:a,erc20:n,erc1967Proxy:l,erc20Mint:p,erc20Burn:i,erc20Approve:ct,erc20Transfer:St,erc20GrantRole:kt,erc20RenounceRole:Rt}}};import{apiEnvs as mt,getApiEnv as ut}from"@evergonlabs/tmi-protocol-shared/envs";var Bt=mt,jt=ut;function Ut(e){if(e.error)throw e.error;if(!e.data)throw new Error("No response provided from the API");return e.data}export{It as api,Bt as envs,jt as getEnv,Ut as handleApiResponse};
1
+ import{createClient as wt}from"@hey-api/client-fetch";var l=e=>(e.createdAt=new Date(e.createdAt),e.updatedAt=new Date(e.updatedAt),e),c=async e=>(e=l(e),e),S=async e=>(e=e.map(r=>l(r)),e),k=e=>(e.poolId=BigInt(e.poolId.toString()),e.createdAt=new Date(e.createdAt),e),R=async e=>(e=e.map(r=>k(r)),e),T=async e=>(e=k(e),e),P=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),V=async e=>(e=e.map(r=>P(r)),e),Vt=e=>(e.poolId&&(e.poolId=BigInt(e.poolId.toString())),e.stakeId=BigInt(e.stakeId.toString()),e.createdAt=new Date(e.createdAt),e),E=async e=>(e=e.map(r=>Vt(r)),e),g=async e=>(e=P(e),e),m=e=>(e.poolId&&(e.poolId=BigInt(e.poolId.toString())),e.createdAt=new Date(e.createdAt),e.updatedAt=new Date(e.updatedAt),e),u=async e=>(e=e.map(r=>m(r)),e),h=async e=>(e=e.map(r=>m(r)),e),w=async e=>(e.poolId=BigInt(e.poolId.toString()),e.stakeId=BigInt(e.stakeId.toString()),e),d=async e=>(e.poolId=BigInt(e.poolId.toString()),e),G=async e=>(e.poolId=BigInt(e.poolId.toString()),e.stakeId=BigInt(e.stakeId.toString()),e),f=async e=>(e.poolId=BigInt(e.poolId.toString()),e),F=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),O=e=>(e.createdAt=new Date(e.createdAt),e.updatedAt=new Date(e.updatedAt),e),D=async e=>(e=O(e),e),C=async e=>(e=e.map(r=>O(r)),e),y=async e=>(e.nftId=BigInt(e.nftId.toString()),e.campaignId=BigInt(e.campaignId.toString()),e.fractionsCreated=BigInt(e.fractionsCreated.toString()),e),Et=e=>{return e.timeline.startDate=new Date(e.timeline.startDate),e.timeline.endDate=new Date(e.timeline.endDate),e.timeline;return e.vesting.cliffDate=new Date(e.vesting.cliffDate),e.vesting;return e.wrappedAssets=e.wrappedAssets.map(r=>(r.wrappedAmount=BigInt(r.wrappedAmount.toString()),r)),e.fundingAssets=e.fundingAssets.map(r=>(r.amountPerPacket=BigInt(r.amountPerPacket.toString()),r)),e.createdAt=new Date(e.createdAt),e.updatedAt=new Date(e.updatedAt),e};var x=async e=>(e.campaignId=BigInt(e.campaignId.toString()),e.burnId=BigInt(e.burnId.toString()),e.nextBurnId=BigInt(e.nextBurnId.toString()),e.amountOfFractionsBurnt=BigInt(e.amountOfFractionsBurnt.toString()),e),A=async e=>(e=e.map(r=>Et(r)),e),I=async e=>(e.campaignId=BigInt(e.campaignId.toString()),e.packetsReceived=BigInt(e.packetsReceived.toString()),e),b=async e=>(e.nonce=BigInt(e.nonce.toString()),e.blockExpiration=BigInt(e.blockExpiration.toString()),e),gt=e=>(e.value=BigInt(e.value.toString()),e),L=async e=>(e=gt(e),e),W=async e=>(e.balance=BigInt(e.balance.toString()),e),B=e=>(e.tokenId&&(e.tokenId=BigInt(e.tokenId.toString())),e),j=async e=>(e=e.map(r=>B(r)),e),mt=e=>(e.balances=e.balances.map(r=>B(r)),e),N=async e=>(e=mt(e),e);import{createClient as ut,createConfig as ht}from"@hey-api/client-fetch";var t=ut(ht({baseUrl:"https://protocol-api.tmi.evergonlabs.com/"}));var U=e=>(e.client??t).get({responseTransformer:c,url:"/staking/platforms/get/v0",...e}),M=e=>(e?.client??t).post({responseTransformer:S,url:"/staking/platforms/search/v0",...e,headers:{"Content-Type":"application/json",...e?.headers}}),J=e=>(e?.client??t).post({responseTransformer:R,url:"/staking/pools/searchPools/v0",...e,headers:{"Content-Type":"application/json",...e?.headers}}),K=e=>(e.client??t).get({responseTransformer:T,url:"/staking/pools/getPool/v0",...e}),q=e=>(e?.client??t).post({responseTransformer:V,url:"/staking/stakes/searchStakes/v0",...e,headers:{"Content-Type":"application/json",...e?.headers}}),z=e=>(e?.client??t).post({responseTransformer:E,url:"/staking/stakes/searchStakeEvents/v0",...e,headers:{"Content-Type":"application/json",...e?.headers}}),_=e=>(e.client??t).get({responseTransformer:g,url:"/staking/stakes/getStake/v0",...e}),H=e=>(e?.client??t).get({url:"/staking/roles/getRoles/v0",...e}),Q=e=>(e?.client??t).post({url:"/staking/roles/grantRole/v0",...e,headers:{"Content-Type":"application/json",...e?.headers}}),X=e=>(e?.client??t).post({responseTransformer:u,url:"/staking/roles/searchRoles/v0",...e,headers:{"Content-Type":"application/json",...e?.headers}}),Y=e=>(e?.client??t).post({responseTransformer:h,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:w,url:"/stakingTemplates/reputation/v0/getStakeEvent",...e}),ee=e=>(e.client??t).get({responseTransformer:d,url:"/stakingTemplates/reputation/v0/getCreatePoolEvent",...e}),te=e=>(e?.client??t).post({url:"/stakingTemplates/reputation/v0/getReward",...e,headers:{"Content-Type":"application/json",...e?.headers}}),re=e=>(e?.client??t).post({url:"/stakingTemplates/reputation/v0/partialUnstake",...e,headers:{"Content-Type":"application/json",...e?.headers}}),oe=e=>(e?.client??t).post({url:"/stakingTemplates/reputation/v0/restake",...e,headers:{"Content-Type":"application/json",...e?.headers}}),se=e=>(e?.client??t).post({url:"/stakingTemplates/reputation/v0/stake",...e,headers:{"Content-Type":"application/json",...e?.headers}}),ae=e=>(e?.client??t).post({url:"/stakingTemplates/reputation/v0/unstake",...e,headers:{"Content-Type":"application/json",...e?.headers}}),ne=e=>(e?.client??t).post({url:"/stakingTemplates/reputation/v0/createPool",...e,headers:{"Content-Type":"application/json",...e?.headers}}),pe=e=>(e?.client??t).post({url:"/stakingTemplates/reputation/v0/createPlatform",...e,headers:{"Content-Type":"application/json",...e?.headers}}),ie=e=>(e.client??t).get({url:"/stakingTemplates/reputationLock/v0/getPlatformDeployEvent",...e}),le=e=>(e.client??t).get({responseTransformer:G,url:"/stakingTemplates/reputationLock/v0/getStakeEvent",...e}),ce=e=>(e.client??t).get({responseTransformer:f,url:"/stakingTemplates/reputationLock/v0/getCreatePoolEvent",...e}),Se=e=>(e?.client??t).post({url:"/stakingTemplates/reputationLock/v0/getReward",...e,headers:{"Content-Type":"application/json",...e?.headers}}),ke=e=>(e?.client??t).post({url:"/stakingTemplates/reputationLock/v0/partialUnstake",...e,headers:{"Content-Type":"application/json",...e?.headers}}),Re=e=>(e?.client??t).post({url:"/stakingTemplates/reputationLock/v0/restake",...e,headers:{"Content-Type":"application/json",...e?.headers}}),Te=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}}),Ve=e=>(e?.client??t).post({url:"/stakingTemplates/reputationLock/v0/createPool",...e,headers:{"Content-Type":"application/json",...e?.headers}}),Ee=e=>(e?.client??t).post({url:"/stakingTemplates/reputationLock/v0/createPlatform",...e,headers:{"Content-Type":"application/json",...e?.headers}}),ge=e=>(e.client??t).get({url:"/stakingTemplates/rwa/v0/getPlatformDeployEvent",...e}),me=e=>(e.client??t).get({responseTransformer:F,url:"/stakingTemplates/rwa/v0/getStakeEvent",...e}),ue=e=>(e.client??t).get({responseTransformer:v,url:"/stakingTemplates/rwa/v0/getCreatePoolEvent",...e}),he=e=>(e?.client??t).post({url:"/stakingTemplates/rwa/v0/getReward",...e,headers:{"Content-Type":"application/json",...e?.headers}}),we=e=>(e?.client??t).post({url:"/stakingTemplates/rwa/v0/partialUnstake",...e,headers:{"Content-Type":"application/json",...e?.headers}}),de=e=>(e?.client??t).post({url:"/stakingTemplates/rwa/v0/restake",...e,headers:{"Content-Type":"application/json",...e?.headers}}),Ge=e=>(e?.client??t).post({url:"/stakingTemplates/rwa/v0/stake",...e,headers:{"Content-Type":"application/json",...e?.headers}}),fe=e=>(e?.client??t).post({url:"/stakingTemplates/rwa/v0/unstake",...e,headers:{"Content-Type":"application/json",...e?.headers}}),Fe=e=>(e?.client??t).post({url:"/stakingTemplates/rwa/v0/createPool",...e,headers:{"Content-Type":"application/json",...e?.headers}}),ve=e=>(e?.client??t).post({url:"/stakingTemplates/rwa/v0/createPlatform",...e,headers:{"Content-Type":"application/json",...e?.headers}}),Oe=e=>(e?.client??t).post({url:"/stakingTemplates/rwa/v0/notifyRewards",...e,headers:{"Content-Type":"application/json",...e?.headers}}),De=e=>(e.client??t).get({responseTransformer:D,url:"/v0/fractions/markets/get",...e}),Ce=e=>(e?.client??t).post({responseTransformer:C,url:"/v0/fractions/markets/search",...e,headers:{"Content-Type":"application/json",...e?.headers}}),ye=e=>(e.client??t).get({url:"/v0/fractions/markets/deployEvent",...e}),xe=e=>(e?.client??t).post({url:"/v0/fractions/platforms/deploy",...e,headers:{"Content-Type":"application/json",...e?.headers}}),Ae=e=>(e?.client??t).post({url:"/v0/fractions/platforms/deployNid",...e,headers:{"Content-Type":"application/json",...e?.headers}}),Ie=e=>(e?.client??t).post({url:"/v0/fractions/platforms/deployContinuousWithdraw",...e,headers:{"Content-Type":"application/json",...e?.headers}}),be=e=>(e?.client??t).post({url:"/v0/fractions/platforms/deployContinuousWithdrawNid",...e,headers:{"Content-Type":"application/json",...e?.headers}}),Le=e=>(e.client??t).get({url:"/v0/fractions/platforms/initCompilot",...e}),We=e=>(e?.client??t).post({url:"/v0/fractions/fractions/approveWrapper",...e,headers:{"Content-Type":"application/json",...e?.headers}}),Be=e=>(e?.client??t).post({url:"/v0/fractions/fractions/approveWrapperAsErc20Spender",...e,headers:{"Content-Type":"application/json",...e?.headers}}),je=e=>(e?.client??t).post({url:"/v0/fractions/fractions/approveWrapperAsErc721Spender",...e,headers:{"Content-Type":"application/json",...e?.headers}}),Ne=e=>(e?.client??t).get({url:"/v0/fractions/roles",...e}),Ue=e=>(e?.client??t).post({url:"/v0/fractions/roles/grant",...e,headers:{"Content-Type":"application/json",...e?.headers}}),Me=e=>(e?.client??t).post({url:"/v0/fractions/sales/fractions",...e,headers:{"Content-Type":"application/json",...e?.headers}}),Je=e=>(e.client??t).get({responseTransformer:y,url:"/v0/fractions/sales/getFractionsCreatedEvent",...e}),Ke=e=>(e?.client??t).post({url:"/v0/fractions/sales/approve",...e,headers:{"Content-Type":"application/json",...e?.headers}}),qe=e=>(e?.client??t).post({url:"/v0/fractions/sales/reject",...e,headers:{"Content-Type":"application/json",...e?.headers}}),ze=e=>(e?.client??t).post({url:"/v0/fractions/sales/recover",...e,headers:{"Content-Type":"application/json",...e?.headers}}),_e=e=>(e?.client??t).post({url:"/v0/fractions/sales/complete",...e,headers:{"Content-Type":"application/json",...e?.headers}}),He=e=>(e?.client??t).post({url:"/v0/fractions/sales/unlockWrappedAssets",...e,headers:{"Content-Type":"application/json",...e?.headers}}),Qe=e=>(e?.client??t).post({url:"/v0/fractions/sales/purchase",...e,headers:{"Content-Type":"application/json",...e?.headers}});var Xe=e=>(e?.client??t).post({url:"/v0/fractions/sales/withdrawPaymentToken",...e,headers:{"Content-Type":"application/json",...e?.headers}}),Ye=e=>(e?.client??t).post({url:"/v0/fractions/sales/receiveFundsAfterNonFunded",...e,headers:{"Content-Type":"application/json",...e?.headers}}),Ze=e=>(e?.client??t).post({url:"/v0/fractions/sales/checkAndJumpToNonFunded",...e,headers:{"Content-Type":"application/json",...e?.headers}}),$e=e=>(e?.client??t).post({url:"/v0/fractions/sales/receiveNonPurchasedWrappedAssets",...e,headers:{"Content-Type":"application/json",...e?.headers}}),et=e=>(e?.client??t).post({url:"/v0/fractions/sales/vesting/editCliff",...e,headers:{"Content-Type":"application/json",...e?.headers}}),tt=e=>(e?.client??t).post({url:"/v0/fractions/sales/vesting/claim",...e,headers:{"Content-Type":"application/json",...e?.headers}}),rt=e=>(e.client??t).get({responseTransformer:x,url:"/v0/fractions/sales/vesting/getClaimVestedTokensEvent",...e}),ot=e=>(e?.client??t).post({responseTransformer:A,url:"/v0/fractions/sales/search",...e,headers:{"Content-Type":"application/json",...e?.headers}}),st=e=>(e?.client??t).post({url:"/v0/fractions/sales/activity",...e,headers:{"Content-Type":"application/json",...e?.headers}}),at=e=>(e?.client??t).post({url:"/v0/fractions/sales/statistics",...e,headers:{"Content-Type":"application/json",...e?.headers}}),nt=e=>(e?.client??t).post({url:"/v0/fractions/sales/setFeeCapLimit",...e,headers:{"Content-Type":"application/json",...e?.headers}}),pt=e=>(e.client??t).get({responseTransformer:I,url:"/v0/fractions/sales/getWithdrawEvent",...e});var o=e=>(e?.client??t).post({url:"/v0/fractions/sig/nonce",...e,headers:{"Content-Type":"application/json",...e?.headers}}),s=e=>(e?.client??t).post({responseTransformer:b,url:"/v0/fractions/sig/authData",...e,headers:{"Content-Type":"application/json",...e?.headers}}),it=e=>(e?.client??t).post({responseTransformer:L,url:"/general/estimateGas",...e,headers:{"Content-Type":"application/json",...e?.headers}}),lt=e=>(e.client??t).get({responseTransformer:W,url:"/general/balance",...e}),ct=e=>(e?.client??t).post({responseTransformer:j,url:"/general/balances",...e,headers:{"Content-Type":"application/json",...e?.headers}}),St=e=>(e?.client??t).post({responseTransformer:N,url:"/general/searchBalances",...e,headers:{"Content-Type":"application/json",...e?.headers}}),a=e=>(e?.client??t).get({url:"/issuance/erc20",...e}),n=e=>(e?.client??t).post({url:"/issuance/erc20/mint",...e,headers:{"Content-Type":"application/json",...e?.headers}}),p=e=>(e?.client??t).post({url:"/issuance/erc20/burn",...e,headers:{"Content-Type":"application/json",...e?.headers}}),kt=e=>(e?.client??t).post({url:"/issuance/erc20/approve",...e,headers:{"Content-Type":"application/json",...e?.headers}}),Rt=e=>(e?.client??t).post({url:"/issuance/erc20/transfer",...e,headers:{"Content-Type":"application/json",...e?.headers}}),i=e=>(e?.client??t).post({url:"/issuance/erc20/proxy",...e,headers:{"Content-Type":"application/json",...e?.headers}}),Tt=e=>(e?.client??t).post({url:"/issuance/erc20/grantRole",...e,headers:{"Content-Type":"application/json",...e?.headers}}),Pt=e=>(e?.client??t).post({url:"/issuance/erc20/renounceRole",...e,headers:{"Content-Type":"application/json",...e?.headers}});var Bt={createClient:(e,r={})=>wt({baseUrl:e.env.baseUrl,...r,headers:{Authorization:e.apiKey,...r.headers}}),general:{searchBalances:St,getBalances:ct,getBalance:lt,estimateGas:it},stakingTemplates:{reputation:{createPlatform:pe,createPool:ne,getReward:te,partialUnstake:re,restake:oe,stake:se,unstake:ae,getCreatePoolEvent:ee,getPlatformDeployEvent:Z,getStakeEvent:$},reputationLock:{createPlatform:Ee,createPool:Ve,getReward:Se,partialUnstake:ke,restake:Re,stake:Te,unstake:Pe,getCreatePoolEvent:ce,getPlatformDeployEvent:ie,getStakeEvent:le},rwa:{createPlatform:ve,createPool:Fe,getReward:he,notifyRewards:Oe,partialUnstake:we,restake:de,stake:Ge,unstake:fe,getCreatePoolEvent:ue,getPlatformDeployEvent:ge,getStakeEvent:me}},staking:{roles:{getRoles:H,grantRole:Q,searchRoles:X,searchRoleEvents:Y},stakes:{getStake:_,searchStakes:q,searchStakeEvents:z},pools:{getPool:K,searchPools:J},platforms:{getPlatform:U,searchPlatforms:M}},fractions:{market:{deployMarket:xe,deployNidMarket:Ae,deployContinousWithdrawal:Ie,deployContinousWithdrawalNid:be,getMarketDeployedEvent:ye,search:Ce,get:De,initCompilot:Le},roles:{grantRole:Ue,getRoles:Ne},sales:{createFractions:Me,approveSale:Ke,rejectSale:qe,recover:ze,completeSale:_e,purchaseSale:Qe,activity:st,statistics:at,withdrawPaymentToken:Xe,receiveFundsAfterNonFunded:Ye,getFractionsCreatedEvent:Je,search:ot,getWithdrawEvent:pt,setFeeCapLimit:nt,unlockWrappedAssets:He,checkAndJumpToNonFunded:Ze,receiveNonPurchased:$e,vesting:{claim:tt,getClaimVestedTokensEvent:rt,editCliff:et}},approvals:{approveWrapper:We,approveWrapperToSpendErc20:Be,approveWrapperToSpendErc721:je},compilot:{getAuthData:s,getNonce:o,erc20:a,erc1967Proxy:i,erc20Mint:n,erc20Burn:p},issuance:{getAuthData:s,getNonce:o,erc20:a,erc1967Proxy:i,erc20Mint:n,erc20Burn:p,erc20Approve:kt,erc20Transfer:Rt,erc20GrantRole:Tt,erc20RenounceRole:Pt}}};import{apiEnvs as dt,getApiEnv as Gt}from"@evergonlabs/tmi-protocol-shared/envs";var Jt=dt,Kt=Gt;function zt(e){if(e.error)throw e.error;if(!e.data)throw new Error("No response provided from the API");return e.data}export{Bt as api,Jt as envs,Kt as getEnv,zt as handleApiResponse};
2
2
  //# sourceMappingURL=index.js.map