@evergonlabs/tmi-protocol-api-client 0.19.0 → 0.20.1

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.cts CHANGED
@@ -770,7 +770,17 @@ type IssuanceDeployErc1967Schema = {
770
770
  */
771
771
  args: Array<unknown>;
772
772
  };
773
- type IssuanceDeployTransparentProxySchema = {
773
+ type Erc20InitDataResponse = {
774
+ data: string;
775
+ };
776
+ type Erc20InitDataParams = {
777
+ tokenName: string;
778
+ tokenSymbol: string;
779
+ cap: string;
780
+ defaultAdmin: string;
781
+ minter: string;
782
+ };
783
+ type IssuanceDeployProxyAdminSchema = {
774
784
  /**
775
785
  * Bytecode of the smartcontract
776
786
  */
@@ -779,12 +789,8 @@ type IssuanceDeployTransparentProxySchema = {
779
789
  * ABI of a contract.
780
790
  */
781
791
  abi: Array<unknown>;
782
- /**
783
- * Arguments for the transparent proxy initialization
784
- */
785
- args: Array<unknown>;
786
792
  };
787
- type IssuanceDeployProxyAdminSchema = {
793
+ type IssuanceDeployTransparentProxySchema = {
788
794
  /**
789
795
  * Bytecode of the smartcontract
790
796
  */
@@ -793,6 +799,10 @@ type IssuanceDeployProxyAdminSchema = {
793
799
  * ABI of a contract.
794
800
  */
795
801
  abi: Array<unknown>;
802
+ /**
803
+ * Arguments for the transparent proxy initialization
804
+ */
805
+ args: Array<unknown>;
796
806
  };
797
807
  type GetStakingPlatformsGetV0Data = {
798
808
  body?: never;
@@ -2897,29 +2907,19 @@ type PostIssuanceErc20RenounceRoleResponses = {
2897
2907
  200: Transaction;
2898
2908
  };
2899
2909
  type PostIssuanceErc20RenounceRoleResponse = PostIssuanceErc20RenounceRoleResponses[keyof PostIssuanceErc20RenounceRoleResponses];
2900
- type PostIssuanceProxyDeployTransparentProxyData = {
2901
- body?: {
2902
- implementation: string;
2903
- proxyAdmin: string;
2904
- erc20Data: {
2905
- tokenName: string;
2906
- tokenSymbol: string;
2907
- cap: bigint;
2908
- defaultAdmin: string;
2909
- minter: string;
2910
- };
2911
- };
2910
+ type PostIssuanceErc20GetInitDataData = {
2911
+ body?: Erc20InitDataParams;
2912
2912
  path?: never;
2913
2913
  query?: never;
2914
- url: '/issuance/proxy/deployTransparentProxy';
2914
+ url: '/issuance/erc20/getInitData';
2915
2915
  };
2916
- type PostIssuanceProxyDeployTransparentProxyResponses = {
2916
+ type PostIssuanceErc20GetInitDataResponses = {
2917
2917
  /**
2918
- * Returns transaction data for deploying a TransparentUpgradeableProxy
2918
+ * Init function call data in hex format
2919
2919
  */
2920
- 200: IssuanceDeployTransparentProxySchema;
2920
+ 200: Erc20InitDataResponse;
2921
2921
  };
2922
- type PostIssuanceProxyDeployTransparentProxyResponse = PostIssuanceProxyDeployTransparentProxyResponses[keyof PostIssuanceProxyDeployTransparentProxyResponses];
2922
+ type PostIssuanceErc20GetInitDataResponse = PostIssuanceErc20GetInitDataResponses[keyof PostIssuanceErc20GetInitDataResponses];
2923
2923
  type GetIssuanceProxyDeployProxyAdminData = {
2924
2924
  body?: never;
2925
2925
  path?: never;
@@ -2933,6 +2933,23 @@ type GetIssuanceProxyDeployProxyAdminResponses = {
2933
2933
  200: IssuanceDeployProxyAdminSchema;
2934
2934
  };
2935
2935
  type GetIssuanceProxyDeployProxyAdminResponse = GetIssuanceProxyDeployProxyAdminResponses[keyof GetIssuanceProxyDeployProxyAdminResponses];
2936
+ type PostIssuanceProxyDeployTransparentProxyData = {
2937
+ body?: {
2938
+ implementation: string;
2939
+ proxyAdminOwner: string;
2940
+ initData: string;
2941
+ };
2942
+ path?: never;
2943
+ query?: never;
2944
+ url: '/issuance/proxy/deployTransparentProxy';
2945
+ };
2946
+ type PostIssuanceProxyDeployTransparentProxyResponses = {
2947
+ /**
2948
+ * Returns transaction data for deploying a TransparentUpgradeableProxy
2949
+ */
2950
+ 200: IssuanceDeployTransparentProxySchema;
2951
+ };
2952
+ type PostIssuanceProxyDeployTransparentProxyResponse = PostIssuanceProxyDeployTransparentProxyResponses[keyof PostIssuanceProxyDeployTransparentProxyResponses];
2936
2953
  type PostIssuanceProxyUpgradeTransparentProxyData = {
2937
2954
  body?: {
2938
2955
  /**
@@ -2964,7 +2981,7 @@ type PostIssuanceProxyUpgradeTransparentProxyResponses = {
2964
2981
  };
2965
2982
  type PostIssuanceProxyUpgradeTransparentProxyResponse = PostIssuanceProxyUpgradeTransparentProxyResponses[keyof PostIssuanceProxyUpgradeTransparentProxyResponses];
2966
2983
  type ClientOptions = {
2967
- baseUrl: 'https://protocol-api.tmi.evergonlabs.com/' | (string & {});
2984
+ baseUrl: 'http://localhost:3000' | (string & {});
2968
2985
  };
2969
2986
 
2970
2987
  type Options<TData extends TDataShape = TDataShape, ThrowOnError extends boolean = boolean> = Options$1<TData, ThrowOnError> & {
@@ -3236,6 +3253,7 @@ declare const api: {
3236
3253
  erc20Transfer: <ThrowOnError extends boolean = false>(options?: Options<PostIssuanceErc20TransferData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<Transaction, unknown, ThrowOnError>;
3237
3254
  erc20GrantRole: <ThrowOnError extends boolean = false>(options?: Options<PostIssuanceErc20GrantRoleData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<Transaction, unknown, ThrowOnError>;
3238
3255
  erc20RenounceRole: <ThrowOnError extends boolean = false>(options?: Options<PostIssuanceErc20RenounceRoleData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<Transaction, unknown, ThrowOnError>;
3256
+ erc20GetInitData: <ThrowOnError extends boolean = false>(options?: Options<PostIssuanceErc20GetInitDataData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<Erc20InitDataResponse, unknown, ThrowOnError>;
3239
3257
  proxy: {
3240
3258
  deployProxyAdmin: <ThrowOnError extends boolean = false>(options?: Options<GetIssuanceProxyDeployProxyAdminData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<IssuanceDeployProxyAdminSchema, unknown, ThrowOnError>;
3241
3259
  deployTransparentUpgradeableProxy: <ThrowOnError extends boolean = false>(options?: Options<PostIssuanceProxyDeployTransparentProxyData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<IssuanceDeployTransparentProxySchema, unknown, ThrowOnError>;
@@ -3255,4 +3273,4 @@ type ApiResponse<T> = {
3255
3273
  };
3256
3274
  declare function handleApiResponse<T>(apiResponse: ApiResponse<T>): T;
3257
3275
 
3258
- export { type AmountMultInterval, type AmountTwoBorder, type ApiClient, type ApiResponse, type ApproveErc20SpendingToWrapper, type ApproveErc721SpendingToWrapper, type ApproveSaleRequestSchema, type ApproveWrapperRequestSchema, type AssetMeta, type BalancesResponseSchema, type ClaimStatisticsRequest, type ClaimStatisticsResponse, 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 GetGeneralBalanceResponse, type GetGeneralBalanceResponses, type GetIssuanceErc20Data, type GetIssuanceErc20Response, type GetIssuanceErc20Responses, type GetIssuanceProxyDeployProxyAdminData, type GetIssuanceProxyDeployProxyAdminResponse, type GetIssuanceProxyDeployProxyAdminResponses, type GetStakingPlatformsGetV0Data, type GetStakingPlatformsGetV0Error, type GetStakingPlatformsGetV0Errors, type GetStakingPlatformsGetV0Response, type GetStakingPlatformsGetV0Responses, type GetStakingPoolsGetPoolV0Data, type GetStakingPoolsGetPoolV0Error, type GetStakingPoolsGetPoolV0Errors, type GetStakingPoolsGetPoolV0Response, type GetStakingPoolsGetPoolV0Responses, type GetStakingRolesGetRolesV0Data, type GetStakingRolesGetRolesV0Response, type GetStakingRolesGetRolesV0Responses, type GetStakingStakesGetStakeV0Data, type GetStakingStakesGetStakeV0Error, type GetStakingStakesGetStakeV0Errors, type GetStakingStakesGetStakeV0Response, type GetStakingStakesGetStakeV0Responses, type GetStakingTemplatesReputationLockV0GetCreatePoolEventData, type GetStakingTemplatesReputationLockV0GetCreatePoolEventResponse, type GetStakingTemplatesReputationLockV0GetCreatePoolEventResponses, type GetStakingTemplatesReputationLockV0GetPlatformDeployEventData, type GetStakingTemplatesReputationLockV0GetPlatformDeployEventResponse, type GetStakingTemplatesReputationLockV0GetPlatformDeployEventResponses, type GetStakingTemplatesReputationLockV0GetStakeEventData, type GetStakingTemplatesReputationLockV0GetStakeEventResponse, type GetStakingTemplatesReputationLockV0GetStakeEventResponses, type GetStakingTemplatesReputationV0GetCreatePoolEventData, type GetStakingTemplatesReputationV0GetCreatePoolEventResponse, type GetStakingTemplatesReputationV0GetCreatePoolEventResponses, type GetStakingTemplatesReputationV0GetPlatformDeployEventData, type GetStakingTemplatesReputationV0GetPlatformDeployEventResponse, type GetStakingTemplatesReputationV0GetPlatformDeployEventResponses, type GetStakingTemplatesReputationV0GetStakeEventData, type GetStakingTemplatesReputationV0GetStakeEventResponse, type GetStakingTemplatesReputationV0GetStakeEventResponses, type GetStakingTemplatesRwaV0GetCreatePoolEventData, type GetStakingTemplatesRwaV0GetCreatePoolEventResponse, type GetStakingTemplatesRwaV0GetCreatePoolEventResponses, type GetStakingTemplatesRwaV0GetPlatformDeployEventData, type GetStakingTemplatesRwaV0GetPlatformDeployEventResponse, type GetStakingTemplatesRwaV0GetPlatformDeployEventResponses, type GetStakingTemplatesRwaV0GetStakeEventData, type GetStakingTemplatesRwaV0GetStakeEventResponse, type GetStakingTemplatesRwaV0GetStakeEventResponses, type GetV0FractionsMarketsDeployEventData, type GetV0FractionsMarketsDeployEventResponse, type GetV0FractionsMarketsDeployEventResponses, type GetV0FractionsMarketsGetData, type GetV0FractionsMarketsGetError, type GetV0FractionsMarketsGetErrors, type GetV0FractionsMarketsGetResponse, type GetV0FractionsMarketsGetResponses, type GetV0FractionsPlatformsInitCompilotData, type GetV0FractionsPlatformsInitCompilotResponse, type GetV0FractionsPlatformsInitCompilotResponses, type GetV0FractionsRolesData, type GetV0FractionsRolesResponse, type GetV0FractionsRolesResponses, type GetV0FractionsSalesGetFractionsCreatedEventData, type GetV0FractionsSalesGetFractionsCreatedEventResponse, type GetV0FractionsSalesGetFractionsCreatedEventResponses, type GetV0FractionsSalesGetVaultAddressData, type GetV0FractionsSalesGetVaultAddressResponse, type GetV0FractionsSalesGetVaultAddressResponses, type GetV0FractionsSalesGetWithdrawEventData, type GetV0FractionsSalesGetWithdrawEventResponse, type GetV0FractionsSalesGetWithdrawEventResponses, type GetV0FractionsSalesVestingGetClaimVestedTokensEventData, type GetV0FractionsSalesVestingGetClaimVestedTokensEventResponse, type GetV0FractionsSalesVestingGetClaimVestedTokensEventResponses, type GrantMarketRoleRequestSchema, type IApiConfig, type IEnv, type IEnvName, type IssuanceDeployErc1967Schema, type IssuanceDeployErc20Schema, type IssuanceDeployProxyAdminSchema, type IssuanceDeployTransparentProxySchema, type LockMultInterval, type LockTwoBorder, type NonceRequestSchema, type PageRequest, type Platform, type Pool, type PostGeneralBalancesData, type PostGeneralBalancesResponse, type PostGeneralBalancesResponses, type PostGeneralEstimateGasData, type PostGeneralEstimateGasResponse, type PostGeneralEstimateGasResponses, type PostGeneralSearchBalancesData, type PostGeneralSearchBalancesResponse, type PostGeneralSearchBalancesResponses, type PostIssuanceErc20ApproveData, type PostIssuanceErc20ApproveResponse, type PostIssuanceErc20ApproveResponses, type PostIssuanceErc20BurnData, type PostIssuanceErc20BurnResponse, type PostIssuanceErc20BurnResponses, type PostIssuanceErc20GrantRoleData, type PostIssuanceErc20GrantRoleResponse, type PostIssuanceErc20GrantRoleResponses, type PostIssuanceErc20MintData, type PostIssuanceErc20MintResponse, type PostIssuanceErc20MintResponses, type PostIssuanceErc20ProxyData, type PostIssuanceErc20ProxyResponse, type PostIssuanceErc20ProxyResponses, type PostIssuanceErc20RenounceRoleData, type PostIssuanceErc20RenounceRoleResponse, type PostIssuanceErc20RenounceRoleResponses, type PostIssuanceErc20TransferData, type PostIssuanceErc20TransferResponse, type PostIssuanceErc20TransferResponses, type PostIssuanceProxyDeployTransparentProxyData, type PostIssuanceProxyDeployTransparentProxyResponse, type PostIssuanceProxyDeployTransparentProxyResponses, type PostIssuanceProxyUpgradeTransparentProxyData, type PostIssuanceProxyUpgradeTransparentProxyResponse, type PostIssuanceProxyUpgradeTransparentProxyResponses, type PostStakingPlatformsSearchV0Data, type PostStakingPlatformsSearchV0Response, type PostStakingPlatformsSearchV0Responses, type PostStakingPoolsSearchPoolsV0Data, type PostStakingPoolsSearchPoolsV0Response, type PostStakingPoolsSearchPoolsV0Responses, type PostStakingRolesGrantRoleV0Data, type PostStakingRolesGrantRoleV0Response, type PostStakingRolesGrantRoleV0Responses, type PostStakingRolesSearchRoleEventsV0Data, type PostStakingRolesSearchRoleEventsV0Response, type PostStakingRolesSearchRoleEventsV0Responses, type PostStakingRolesSearchRolesV0Data, type PostStakingRolesSearchRolesV0Response, type PostStakingRolesSearchRolesV0Responses, type PostStakingStakesSearchStakeEventsV0Data, type PostStakingStakesSearchStakeEventsV0Response, type PostStakingStakesSearchStakeEventsV0Responses, type PostStakingStakesSearchStakesV0Data, type PostStakingStakesSearchStakesV0Response, type PostStakingStakesSearchStakesV0Responses, type PostStakingTemplatesReputationLockV0CreatePlatformData, type PostStakingTemplatesReputationLockV0CreatePlatformResponse, type PostStakingTemplatesReputationLockV0CreatePlatformResponses, type PostStakingTemplatesReputationLockV0CreatePoolData, type PostStakingTemplatesReputationLockV0CreatePoolResponse, type PostStakingTemplatesReputationLockV0CreatePoolResponses, type PostStakingTemplatesReputationLockV0GetRewardData, type PostStakingTemplatesReputationLockV0GetRewardResponse, type PostStakingTemplatesReputationLockV0GetRewardResponses, type PostStakingTemplatesReputationLockV0PartialUnstakeData, type PostStakingTemplatesReputationLockV0PartialUnstakeResponse, type PostStakingTemplatesReputationLockV0PartialUnstakeResponses, type PostStakingTemplatesReputationLockV0RestakeData, type PostStakingTemplatesReputationLockV0RestakeResponse, type PostStakingTemplatesReputationLockV0RestakeResponses, type PostStakingTemplatesReputationLockV0StakeData, type PostStakingTemplatesReputationLockV0StakeResponse, type PostStakingTemplatesReputationLockV0StakeResponses, type PostStakingTemplatesReputationLockV0UnstakeData, type PostStakingTemplatesReputationLockV0UnstakeResponse, type PostStakingTemplatesReputationLockV0UnstakeResponses, type PostStakingTemplatesReputationV0CreatePlatformData, type PostStakingTemplatesReputationV0CreatePlatformResponse, type PostStakingTemplatesReputationV0CreatePlatformResponses, type PostStakingTemplatesReputationV0CreatePoolData, type PostStakingTemplatesReputationV0CreatePoolResponse, type PostStakingTemplatesReputationV0CreatePoolResponses, type PostStakingTemplatesReputationV0GetRewardData, type PostStakingTemplatesReputationV0GetRewardResponse, type PostStakingTemplatesReputationV0GetRewardResponses, type PostStakingTemplatesReputationV0PartialUnstakeData, type PostStakingTemplatesReputationV0PartialUnstakeResponse, type PostStakingTemplatesReputationV0PartialUnstakeResponses, type PostStakingTemplatesReputationV0RestakeData, type PostStakingTemplatesReputationV0RestakeResponse, type PostStakingTemplatesReputationV0RestakeResponses, type PostStakingTemplatesReputationV0StakeData, type PostStakingTemplatesReputationV0StakeResponse, type PostStakingTemplatesReputationV0StakeResponses, type PostStakingTemplatesReputationV0UnstakeData, type PostStakingTemplatesReputationV0UnstakeResponse, type PostStakingTemplatesReputationV0UnstakeResponses, type PostStakingTemplatesRwaV0CreatePlatformData, type PostStakingTemplatesRwaV0CreatePlatformResponse, type PostStakingTemplatesRwaV0CreatePlatformResponses, type PostStakingTemplatesRwaV0CreatePoolData, type PostStakingTemplatesRwaV0CreatePoolResponse, type PostStakingTemplatesRwaV0CreatePoolResponses, type PostStakingTemplatesRwaV0GetRewardData, type PostStakingTemplatesRwaV0GetRewardResponse, type PostStakingTemplatesRwaV0GetRewardResponses, type PostStakingTemplatesRwaV0NotifyRewardsData, type PostStakingTemplatesRwaV0NotifyRewardsResponse, type PostStakingTemplatesRwaV0NotifyRewardsResponses, type PostStakingTemplatesRwaV0PartialUnstakeData, type PostStakingTemplatesRwaV0PartialUnstakeResponse, type PostStakingTemplatesRwaV0PartialUnstakeResponses, type PostStakingTemplatesRwaV0RestakeData, type PostStakingTemplatesRwaV0RestakeResponse, type PostStakingTemplatesRwaV0RestakeResponses, type PostStakingTemplatesRwaV0StakeData, type PostStakingTemplatesRwaV0StakeResponse, type PostStakingTemplatesRwaV0StakeResponses, type PostStakingTemplatesRwaV0UnstakeData, type PostStakingTemplatesRwaV0UnstakeResponse, type PostStakingTemplatesRwaV0UnstakeResponses, type PostV0FractionsFractionsApproveWrapperAsErc20SpenderData, type PostV0FractionsFractionsApproveWrapperAsErc20SpenderResponse, type PostV0FractionsFractionsApproveWrapperAsErc20SpenderResponses, type PostV0FractionsFractionsApproveWrapperAsErc721SpenderData, type PostV0FractionsFractionsApproveWrapperAsErc721SpenderResponse, type PostV0FractionsFractionsApproveWrapperAsErc721SpenderResponses, type PostV0FractionsFractionsApproveWrapperData, type PostV0FractionsFractionsApproveWrapperResponse, type PostV0FractionsFractionsApproveWrapperResponses, type PostV0FractionsMarketsSearchData, type PostV0FractionsMarketsSearchResponse, type PostV0FractionsMarketsSearchResponses, type PostV0FractionsPlatformsDeployContinuousWithdrawData, type PostV0FractionsPlatformsDeployContinuousWithdrawNidData, type PostV0FractionsPlatformsDeployContinuousWithdrawNidResponse, type PostV0FractionsPlatformsDeployContinuousWithdrawNidResponses, type PostV0FractionsPlatformsDeployContinuousWithdrawResponse, type PostV0FractionsPlatformsDeployContinuousWithdrawResponses, type PostV0FractionsPlatformsDeployData, type PostV0FractionsPlatformsDeployNidData, type PostV0FractionsPlatformsDeployNidResponse, type PostV0FractionsPlatformsDeployNidResponses, type PostV0FractionsPlatformsDeployResponse, type PostV0FractionsPlatformsDeployResponses, type PostV0FractionsRolesGrantData, type PostV0FractionsRolesGrantResponse, type PostV0FractionsRolesGrantResponses, type PostV0FractionsSalesActivityData, type PostV0FractionsSalesActivityResponse, type PostV0FractionsSalesActivityResponses, type PostV0FractionsSalesApproveData, type PostV0FractionsSalesApproveResponse, type PostV0FractionsSalesApproveResponses, type PostV0FractionsSalesCheckAndJumpToNonFundedData, type PostV0FractionsSalesCheckAndJumpToNonFundedResponse, type PostV0FractionsSalesCheckAndJumpToNonFundedResponses, type PostV0FractionsSalesCompleteData, type PostV0FractionsSalesCompleteResponse, type PostV0FractionsSalesCompleteResponses, type PostV0FractionsSalesFractionsData, type PostV0FractionsSalesFractionsResponse, type PostV0FractionsSalesFractionsResponses, type PostV0FractionsSalesPurchaseData, type PostV0FractionsSalesPurchaseResponse, type PostV0FractionsSalesPurchaseResponses, type PostV0FractionsSalesPurchaseStatisticsData, type PostV0FractionsSalesPurchaseStatisticsResponse, type PostV0FractionsSalesPurchaseStatisticsResponses, type PostV0FractionsSalesReceiveFundsAfterNonFundedData, type PostV0FractionsSalesReceiveFundsAfterNonFundedResponse, type PostV0FractionsSalesReceiveFundsAfterNonFundedResponses, type PostV0FractionsSalesReceiveNonPurchasedWrappedAssetsData, type PostV0FractionsSalesReceiveNonPurchasedWrappedAssetsResponse, type PostV0FractionsSalesReceiveNonPurchasedWrappedAssetsResponses, type PostV0FractionsSalesRecoverData, type PostV0FractionsSalesRecoverResponse, type PostV0FractionsSalesRecoverResponses, type PostV0FractionsSalesRejectData, type PostV0FractionsSalesRejectResponse, type PostV0FractionsSalesRejectResponses, type PostV0FractionsSalesSearchData, type PostV0FractionsSalesSearchResponse, type PostV0FractionsSalesSearchResponses, type PostV0FractionsSalesSetFeeCapLimitData, type PostV0FractionsSalesSetFeeCapLimitResponse, type PostV0FractionsSalesSetFeeCapLimitResponses, type PostV0FractionsSalesStatisticsData, type PostV0FractionsSalesStatisticsResponse, type PostV0FractionsSalesStatisticsResponses, type PostV0FractionsSalesUnlockWrappedAssetsData, type PostV0FractionsSalesUnlockWrappedAssetsResponse, type PostV0FractionsSalesUnlockWrappedAssetsResponses, type PostV0FractionsSalesVestingClaimData, type PostV0FractionsSalesVestingClaimResponse, type PostV0FractionsSalesVestingClaimResponses, type PostV0FractionsSalesVestingClaimStatisticsData, type PostV0FractionsSalesVestingClaimStatisticsResponse, type PostV0FractionsSalesVestingClaimStatisticsResponses, type PostV0FractionsSalesVestingEditCliffData, type PostV0FractionsSalesVestingEditCliffResponse, type PostV0FractionsSalesVestingEditCliffResponses, type PostV0FractionsSalesWithdrawPaymentTokenData, type PostV0FractionsSalesWithdrawPaymentTokenResponse, type PostV0FractionsSalesWithdrawPaymentTokenResponses, type PostV0FractionsSalesWithdrawSearchData, type PostV0FractionsSalesWithdrawSearchResponse, type PostV0FractionsSalesWithdrawSearchResponses, type PostV0FractionsSigAuthDataData, type PostV0FractionsSigAuthDataResponse, type PostV0FractionsSigAuthDataResponses, type PostV0FractionsSigNonceData, 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, api, envs, getEnv, handleApiResponse };
3276
+ export { type AmountMultInterval, type AmountTwoBorder, type ApiClient, type ApiResponse, type ApproveErc20SpendingToWrapper, type ApproveErc721SpendingToWrapper, type ApproveSaleRequestSchema, type ApproveWrapperRequestSchema, type AssetMeta, type BalancesResponseSchema, type ClaimStatisticsRequest, type ClaimStatisticsResponse, type ClaimVestedTokensRequestSchema, type ClientOptions, type CompleteSaleRequestSchema, type CreateFractionsRequestSchema, type DeployMarketRequestSchema, type EditCliffRequestSchema, type Erc20InitDataParams, type Erc20InitDataResponse, type Erc20Input, type Erc20Reward, type Erc721Meta, type EstimateGasResponse, type FractionsActivity, type FractionsMarket, type FractionsSale, type FractionsSaleStatistics, type GetGeneralBalanceData, type GetGeneralBalanceResponse, type GetGeneralBalanceResponses, type GetIssuanceErc20Data, type GetIssuanceErc20Response, type GetIssuanceErc20Responses, type GetIssuanceProxyDeployProxyAdminData, type GetIssuanceProxyDeployProxyAdminResponse, type GetIssuanceProxyDeployProxyAdminResponses, type GetStakingPlatformsGetV0Data, type GetStakingPlatformsGetV0Error, type GetStakingPlatformsGetV0Errors, type GetStakingPlatformsGetV0Response, type GetStakingPlatformsGetV0Responses, type GetStakingPoolsGetPoolV0Data, type GetStakingPoolsGetPoolV0Error, type GetStakingPoolsGetPoolV0Errors, type GetStakingPoolsGetPoolV0Response, type GetStakingPoolsGetPoolV0Responses, type GetStakingRolesGetRolesV0Data, type GetStakingRolesGetRolesV0Response, type GetStakingRolesGetRolesV0Responses, type GetStakingStakesGetStakeV0Data, type GetStakingStakesGetStakeV0Error, type GetStakingStakesGetStakeV0Errors, type GetStakingStakesGetStakeV0Response, type GetStakingStakesGetStakeV0Responses, type GetStakingTemplatesReputationLockV0GetCreatePoolEventData, type GetStakingTemplatesReputationLockV0GetCreatePoolEventResponse, type GetStakingTemplatesReputationLockV0GetCreatePoolEventResponses, type GetStakingTemplatesReputationLockV0GetPlatformDeployEventData, type GetStakingTemplatesReputationLockV0GetPlatformDeployEventResponse, type GetStakingTemplatesReputationLockV0GetPlatformDeployEventResponses, type GetStakingTemplatesReputationLockV0GetStakeEventData, type GetStakingTemplatesReputationLockV0GetStakeEventResponse, type GetStakingTemplatesReputationLockV0GetStakeEventResponses, type GetStakingTemplatesReputationV0GetCreatePoolEventData, type GetStakingTemplatesReputationV0GetCreatePoolEventResponse, type GetStakingTemplatesReputationV0GetCreatePoolEventResponses, type GetStakingTemplatesReputationV0GetPlatformDeployEventData, type GetStakingTemplatesReputationV0GetPlatformDeployEventResponse, type GetStakingTemplatesReputationV0GetPlatformDeployEventResponses, type GetStakingTemplatesReputationV0GetStakeEventData, type GetStakingTemplatesReputationV0GetStakeEventResponse, type GetStakingTemplatesReputationV0GetStakeEventResponses, type GetStakingTemplatesRwaV0GetCreatePoolEventData, type GetStakingTemplatesRwaV0GetCreatePoolEventResponse, type GetStakingTemplatesRwaV0GetCreatePoolEventResponses, type GetStakingTemplatesRwaV0GetPlatformDeployEventData, type GetStakingTemplatesRwaV0GetPlatformDeployEventResponse, type GetStakingTemplatesRwaV0GetPlatformDeployEventResponses, type GetStakingTemplatesRwaV0GetStakeEventData, type GetStakingTemplatesRwaV0GetStakeEventResponse, type GetStakingTemplatesRwaV0GetStakeEventResponses, type GetV0FractionsMarketsDeployEventData, type GetV0FractionsMarketsDeployEventResponse, type GetV0FractionsMarketsDeployEventResponses, type GetV0FractionsMarketsGetData, type GetV0FractionsMarketsGetError, type GetV0FractionsMarketsGetErrors, type GetV0FractionsMarketsGetResponse, type GetV0FractionsMarketsGetResponses, type GetV0FractionsPlatformsInitCompilotData, type GetV0FractionsPlatformsInitCompilotResponse, type GetV0FractionsPlatformsInitCompilotResponses, type GetV0FractionsRolesData, type GetV0FractionsRolesResponse, type GetV0FractionsRolesResponses, type GetV0FractionsSalesGetFractionsCreatedEventData, type GetV0FractionsSalesGetFractionsCreatedEventResponse, type GetV0FractionsSalesGetFractionsCreatedEventResponses, type GetV0FractionsSalesGetVaultAddressData, type GetV0FractionsSalesGetVaultAddressResponse, type GetV0FractionsSalesGetVaultAddressResponses, type GetV0FractionsSalesGetWithdrawEventData, type GetV0FractionsSalesGetWithdrawEventResponse, type GetV0FractionsSalesGetWithdrawEventResponses, type GetV0FractionsSalesVestingGetClaimVestedTokensEventData, type GetV0FractionsSalesVestingGetClaimVestedTokensEventResponse, type GetV0FractionsSalesVestingGetClaimVestedTokensEventResponses, type GrantMarketRoleRequestSchema, type IApiConfig, type IEnv, type IEnvName, type IssuanceDeployErc1967Schema, type IssuanceDeployErc20Schema, type IssuanceDeployProxyAdminSchema, type IssuanceDeployTransparentProxySchema, type LockMultInterval, type LockTwoBorder, type NonceRequestSchema, type PageRequest, type Platform, type Pool, type PostGeneralBalancesData, type PostGeneralBalancesResponse, type PostGeneralBalancesResponses, type PostGeneralEstimateGasData, type PostGeneralEstimateGasResponse, type PostGeneralEstimateGasResponses, type PostGeneralSearchBalancesData, type PostGeneralSearchBalancesResponse, type PostGeneralSearchBalancesResponses, type PostIssuanceErc20ApproveData, type PostIssuanceErc20ApproveResponse, type PostIssuanceErc20ApproveResponses, type PostIssuanceErc20BurnData, type PostIssuanceErc20BurnResponse, type PostIssuanceErc20BurnResponses, type PostIssuanceErc20GetInitDataData, type PostIssuanceErc20GetInitDataResponse, type PostIssuanceErc20GetInitDataResponses, type PostIssuanceErc20GrantRoleData, type PostIssuanceErc20GrantRoleResponse, type PostIssuanceErc20GrantRoleResponses, type PostIssuanceErc20MintData, type PostIssuanceErc20MintResponse, type PostIssuanceErc20MintResponses, type PostIssuanceErc20ProxyData, type PostIssuanceErc20ProxyResponse, type PostIssuanceErc20ProxyResponses, type PostIssuanceErc20RenounceRoleData, type PostIssuanceErc20RenounceRoleResponse, type PostIssuanceErc20RenounceRoleResponses, type PostIssuanceErc20TransferData, type PostIssuanceErc20TransferResponse, type PostIssuanceErc20TransferResponses, type PostIssuanceProxyDeployTransparentProxyData, type PostIssuanceProxyDeployTransparentProxyResponse, type PostIssuanceProxyDeployTransparentProxyResponses, type PostIssuanceProxyUpgradeTransparentProxyData, type PostIssuanceProxyUpgradeTransparentProxyResponse, type PostIssuanceProxyUpgradeTransparentProxyResponses, type PostStakingPlatformsSearchV0Data, type PostStakingPlatformsSearchV0Response, type PostStakingPlatformsSearchV0Responses, type PostStakingPoolsSearchPoolsV0Data, type PostStakingPoolsSearchPoolsV0Response, type PostStakingPoolsSearchPoolsV0Responses, type PostStakingRolesGrantRoleV0Data, type PostStakingRolesGrantRoleV0Response, type PostStakingRolesGrantRoleV0Responses, type PostStakingRolesSearchRoleEventsV0Data, type PostStakingRolesSearchRoleEventsV0Response, type PostStakingRolesSearchRoleEventsV0Responses, type PostStakingRolesSearchRolesV0Data, type PostStakingRolesSearchRolesV0Response, type PostStakingRolesSearchRolesV0Responses, type PostStakingStakesSearchStakeEventsV0Data, type PostStakingStakesSearchStakeEventsV0Response, type PostStakingStakesSearchStakeEventsV0Responses, type PostStakingStakesSearchStakesV0Data, type PostStakingStakesSearchStakesV0Response, type PostStakingStakesSearchStakesV0Responses, type PostStakingTemplatesReputationLockV0CreatePlatformData, type PostStakingTemplatesReputationLockV0CreatePlatformResponse, type PostStakingTemplatesReputationLockV0CreatePlatformResponses, type PostStakingTemplatesReputationLockV0CreatePoolData, type PostStakingTemplatesReputationLockV0CreatePoolResponse, type PostStakingTemplatesReputationLockV0CreatePoolResponses, type PostStakingTemplatesReputationLockV0GetRewardData, type PostStakingTemplatesReputationLockV0GetRewardResponse, type PostStakingTemplatesReputationLockV0GetRewardResponses, type PostStakingTemplatesReputationLockV0PartialUnstakeData, type PostStakingTemplatesReputationLockV0PartialUnstakeResponse, type PostStakingTemplatesReputationLockV0PartialUnstakeResponses, type PostStakingTemplatesReputationLockV0RestakeData, type PostStakingTemplatesReputationLockV0RestakeResponse, type PostStakingTemplatesReputationLockV0RestakeResponses, type PostStakingTemplatesReputationLockV0StakeData, type PostStakingTemplatesReputationLockV0StakeResponse, type PostStakingTemplatesReputationLockV0StakeResponses, type PostStakingTemplatesReputationLockV0UnstakeData, type PostStakingTemplatesReputationLockV0UnstakeResponse, type PostStakingTemplatesReputationLockV0UnstakeResponses, type PostStakingTemplatesReputationV0CreatePlatformData, type PostStakingTemplatesReputationV0CreatePlatformResponse, type PostStakingTemplatesReputationV0CreatePlatformResponses, type PostStakingTemplatesReputationV0CreatePoolData, type PostStakingTemplatesReputationV0CreatePoolResponse, type PostStakingTemplatesReputationV0CreatePoolResponses, type PostStakingTemplatesReputationV0GetRewardData, type PostStakingTemplatesReputationV0GetRewardResponse, type PostStakingTemplatesReputationV0GetRewardResponses, type PostStakingTemplatesReputationV0PartialUnstakeData, type PostStakingTemplatesReputationV0PartialUnstakeResponse, type PostStakingTemplatesReputationV0PartialUnstakeResponses, type PostStakingTemplatesReputationV0RestakeData, type PostStakingTemplatesReputationV0RestakeResponse, type PostStakingTemplatesReputationV0RestakeResponses, type PostStakingTemplatesReputationV0StakeData, type PostStakingTemplatesReputationV0StakeResponse, type PostStakingTemplatesReputationV0StakeResponses, type PostStakingTemplatesReputationV0UnstakeData, type PostStakingTemplatesReputationV0UnstakeResponse, type PostStakingTemplatesReputationV0UnstakeResponses, type PostStakingTemplatesRwaV0CreatePlatformData, type PostStakingTemplatesRwaV0CreatePlatformResponse, type PostStakingTemplatesRwaV0CreatePlatformResponses, type PostStakingTemplatesRwaV0CreatePoolData, type PostStakingTemplatesRwaV0CreatePoolResponse, type PostStakingTemplatesRwaV0CreatePoolResponses, type PostStakingTemplatesRwaV0GetRewardData, type PostStakingTemplatesRwaV0GetRewardResponse, type PostStakingTemplatesRwaV0GetRewardResponses, type PostStakingTemplatesRwaV0NotifyRewardsData, type PostStakingTemplatesRwaV0NotifyRewardsResponse, type PostStakingTemplatesRwaV0NotifyRewardsResponses, type PostStakingTemplatesRwaV0PartialUnstakeData, type PostStakingTemplatesRwaV0PartialUnstakeResponse, type PostStakingTemplatesRwaV0PartialUnstakeResponses, type PostStakingTemplatesRwaV0RestakeData, type PostStakingTemplatesRwaV0RestakeResponse, type PostStakingTemplatesRwaV0RestakeResponses, type PostStakingTemplatesRwaV0StakeData, type PostStakingTemplatesRwaV0StakeResponse, type PostStakingTemplatesRwaV0StakeResponses, type PostStakingTemplatesRwaV0UnstakeData, type PostStakingTemplatesRwaV0UnstakeResponse, type PostStakingTemplatesRwaV0UnstakeResponses, type PostV0FractionsFractionsApproveWrapperAsErc20SpenderData, type PostV0FractionsFractionsApproveWrapperAsErc20SpenderResponse, type PostV0FractionsFractionsApproveWrapperAsErc20SpenderResponses, type PostV0FractionsFractionsApproveWrapperAsErc721SpenderData, type PostV0FractionsFractionsApproveWrapperAsErc721SpenderResponse, type PostV0FractionsFractionsApproveWrapperAsErc721SpenderResponses, type PostV0FractionsFractionsApproveWrapperData, type PostV0FractionsFractionsApproveWrapperResponse, type PostV0FractionsFractionsApproveWrapperResponses, type PostV0FractionsMarketsSearchData, type PostV0FractionsMarketsSearchResponse, type PostV0FractionsMarketsSearchResponses, type PostV0FractionsPlatformsDeployContinuousWithdrawData, type PostV0FractionsPlatformsDeployContinuousWithdrawNidData, type PostV0FractionsPlatformsDeployContinuousWithdrawNidResponse, type PostV0FractionsPlatformsDeployContinuousWithdrawNidResponses, type PostV0FractionsPlatformsDeployContinuousWithdrawResponse, type PostV0FractionsPlatformsDeployContinuousWithdrawResponses, type PostV0FractionsPlatformsDeployData, type PostV0FractionsPlatformsDeployNidData, type PostV0FractionsPlatformsDeployNidResponse, type PostV0FractionsPlatformsDeployNidResponses, type PostV0FractionsPlatformsDeployResponse, type PostV0FractionsPlatformsDeployResponses, type PostV0FractionsRolesGrantData, type PostV0FractionsRolesGrantResponse, type PostV0FractionsRolesGrantResponses, type PostV0FractionsSalesActivityData, type PostV0FractionsSalesActivityResponse, type PostV0FractionsSalesActivityResponses, type PostV0FractionsSalesApproveData, type PostV0FractionsSalesApproveResponse, type PostV0FractionsSalesApproveResponses, type PostV0FractionsSalesCheckAndJumpToNonFundedData, type PostV0FractionsSalesCheckAndJumpToNonFundedResponse, type PostV0FractionsSalesCheckAndJumpToNonFundedResponses, type PostV0FractionsSalesCompleteData, type PostV0FractionsSalesCompleteResponse, type PostV0FractionsSalesCompleteResponses, type PostV0FractionsSalesFractionsData, type PostV0FractionsSalesFractionsResponse, type PostV0FractionsSalesFractionsResponses, type PostV0FractionsSalesPurchaseData, type PostV0FractionsSalesPurchaseResponse, type PostV0FractionsSalesPurchaseResponses, type PostV0FractionsSalesPurchaseStatisticsData, type PostV0FractionsSalesPurchaseStatisticsResponse, type PostV0FractionsSalesPurchaseStatisticsResponses, type PostV0FractionsSalesReceiveFundsAfterNonFundedData, type PostV0FractionsSalesReceiveFundsAfterNonFundedResponse, type PostV0FractionsSalesReceiveFundsAfterNonFundedResponses, type PostV0FractionsSalesReceiveNonPurchasedWrappedAssetsData, type PostV0FractionsSalesReceiveNonPurchasedWrappedAssetsResponse, type PostV0FractionsSalesReceiveNonPurchasedWrappedAssetsResponses, type PostV0FractionsSalesRecoverData, type PostV0FractionsSalesRecoverResponse, type PostV0FractionsSalesRecoverResponses, type PostV0FractionsSalesRejectData, type PostV0FractionsSalesRejectResponse, type PostV0FractionsSalesRejectResponses, type PostV0FractionsSalesSearchData, type PostV0FractionsSalesSearchResponse, type PostV0FractionsSalesSearchResponses, type PostV0FractionsSalesSetFeeCapLimitData, type PostV0FractionsSalesSetFeeCapLimitResponse, type PostV0FractionsSalesSetFeeCapLimitResponses, type PostV0FractionsSalesStatisticsData, type PostV0FractionsSalesStatisticsResponse, type PostV0FractionsSalesStatisticsResponses, type PostV0FractionsSalesUnlockWrappedAssetsData, type PostV0FractionsSalesUnlockWrappedAssetsResponse, type PostV0FractionsSalesUnlockWrappedAssetsResponses, type PostV0FractionsSalesVestingClaimData, type PostV0FractionsSalesVestingClaimResponse, type PostV0FractionsSalesVestingClaimResponses, type PostV0FractionsSalesVestingClaimStatisticsData, type PostV0FractionsSalesVestingClaimStatisticsResponse, type PostV0FractionsSalesVestingClaimStatisticsResponses, type PostV0FractionsSalesVestingEditCliffData, type PostV0FractionsSalesVestingEditCliffResponse, type PostV0FractionsSalesVestingEditCliffResponses, type PostV0FractionsSalesWithdrawPaymentTokenData, type PostV0FractionsSalesWithdrawPaymentTokenResponse, type PostV0FractionsSalesWithdrawPaymentTokenResponses, type PostV0FractionsSalesWithdrawSearchData, type PostV0FractionsSalesWithdrawSearchResponse, type PostV0FractionsSalesWithdrawSearchResponses, type PostV0FractionsSigAuthDataData, type PostV0FractionsSigAuthDataResponse, type PostV0FractionsSigAuthDataResponses, type PostV0FractionsSigNonceData, 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, api, envs, getEnv, handleApiResponse };
package/dist/index.d.ts CHANGED
@@ -770,7 +770,17 @@ type IssuanceDeployErc1967Schema = {
770
770
  */
771
771
  args: Array<unknown>;
772
772
  };
773
- type IssuanceDeployTransparentProxySchema = {
773
+ type Erc20InitDataResponse = {
774
+ data: string;
775
+ };
776
+ type Erc20InitDataParams = {
777
+ tokenName: string;
778
+ tokenSymbol: string;
779
+ cap: string;
780
+ defaultAdmin: string;
781
+ minter: string;
782
+ };
783
+ type IssuanceDeployProxyAdminSchema = {
774
784
  /**
775
785
  * Bytecode of the smartcontract
776
786
  */
@@ -779,12 +789,8 @@ type IssuanceDeployTransparentProxySchema = {
779
789
  * ABI of a contract.
780
790
  */
781
791
  abi: Array<unknown>;
782
- /**
783
- * Arguments for the transparent proxy initialization
784
- */
785
- args: Array<unknown>;
786
792
  };
787
- type IssuanceDeployProxyAdminSchema = {
793
+ type IssuanceDeployTransparentProxySchema = {
788
794
  /**
789
795
  * Bytecode of the smartcontract
790
796
  */
@@ -793,6 +799,10 @@ type IssuanceDeployProxyAdminSchema = {
793
799
  * ABI of a contract.
794
800
  */
795
801
  abi: Array<unknown>;
802
+ /**
803
+ * Arguments for the transparent proxy initialization
804
+ */
805
+ args: Array<unknown>;
796
806
  };
797
807
  type GetStakingPlatformsGetV0Data = {
798
808
  body?: never;
@@ -2897,29 +2907,19 @@ type PostIssuanceErc20RenounceRoleResponses = {
2897
2907
  200: Transaction;
2898
2908
  };
2899
2909
  type PostIssuanceErc20RenounceRoleResponse = PostIssuanceErc20RenounceRoleResponses[keyof PostIssuanceErc20RenounceRoleResponses];
2900
- type PostIssuanceProxyDeployTransparentProxyData = {
2901
- body?: {
2902
- implementation: string;
2903
- proxyAdmin: string;
2904
- erc20Data: {
2905
- tokenName: string;
2906
- tokenSymbol: string;
2907
- cap: bigint;
2908
- defaultAdmin: string;
2909
- minter: string;
2910
- };
2911
- };
2910
+ type PostIssuanceErc20GetInitDataData = {
2911
+ body?: Erc20InitDataParams;
2912
2912
  path?: never;
2913
2913
  query?: never;
2914
- url: '/issuance/proxy/deployTransparentProxy';
2914
+ url: '/issuance/erc20/getInitData';
2915
2915
  };
2916
- type PostIssuanceProxyDeployTransparentProxyResponses = {
2916
+ type PostIssuanceErc20GetInitDataResponses = {
2917
2917
  /**
2918
- * Returns transaction data for deploying a TransparentUpgradeableProxy
2918
+ * Init function call data in hex format
2919
2919
  */
2920
- 200: IssuanceDeployTransparentProxySchema;
2920
+ 200: Erc20InitDataResponse;
2921
2921
  };
2922
- type PostIssuanceProxyDeployTransparentProxyResponse = PostIssuanceProxyDeployTransparentProxyResponses[keyof PostIssuanceProxyDeployTransparentProxyResponses];
2922
+ type PostIssuanceErc20GetInitDataResponse = PostIssuanceErc20GetInitDataResponses[keyof PostIssuanceErc20GetInitDataResponses];
2923
2923
  type GetIssuanceProxyDeployProxyAdminData = {
2924
2924
  body?: never;
2925
2925
  path?: never;
@@ -2933,6 +2933,23 @@ type GetIssuanceProxyDeployProxyAdminResponses = {
2933
2933
  200: IssuanceDeployProxyAdminSchema;
2934
2934
  };
2935
2935
  type GetIssuanceProxyDeployProxyAdminResponse = GetIssuanceProxyDeployProxyAdminResponses[keyof GetIssuanceProxyDeployProxyAdminResponses];
2936
+ type PostIssuanceProxyDeployTransparentProxyData = {
2937
+ body?: {
2938
+ implementation: string;
2939
+ proxyAdminOwner: string;
2940
+ initData: string;
2941
+ };
2942
+ path?: never;
2943
+ query?: never;
2944
+ url: '/issuance/proxy/deployTransparentProxy';
2945
+ };
2946
+ type PostIssuanceProxyDeployTransparentProxyResponses = {
2947
+ /**
2948
+ * Returns transaction data for deploying a TransparentUpgradeableProxy
2949
+ */
2950
+ 200: IssuanceDeployTransparentProxySchema;
2951
+ };
2952
+ type PostIssuanceProxyDeployTransparentProxyResponse = PostIssuanceProxyDeployTransparentProxyResponses[keyof PostIssuanceProxyDeployTransparentProxyResponses];
2936
2953
  type PostIssuanceProxyUpgradeTransparentProxyData = {
2937
2954
  body?: {
2938
2955
  /**
@@ -2964,7 +2981,7 @@ type PostIssuanceProxyUpgradeTransparentProxyResponses = {
2964
2981
  };
2965
2982
  type PostIssuanceProxyUpgradeTransparentProxyResponse = PostIssuanceProxyUpgradeTransparentProxyResponses[keyof PostIssuanceProxyUpgradeTransparentProxyResponses];
2966
2983
  type ClientOptions = {
2967
- baseUrl: 'https://protocol-api.tmi.evergonlabs.com/' | (string & {});
2984
+ baseUrl: 'http://localhost:3000' | (string & {});
2968
2985
  };
2969
2986
 
2970
2987
  type Options<TData extends TDataShape = TDataShape, ThrowOnError extends boolean = boolean> = Options$1<TData, ThrowOnError> & {
@@ -3236,6 +3253,7 @@ declare const api: {
3236
3253
  erc20Transfer: <ThrowOnError extends boolean = false>(options?: Options<PostIssuanceErc20TransferData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<Transaction, unknown, ThrowOnError>;
3237
3254
  erc20GrantRole: <ThrowOnError extends boolean = false>(options?: Options<PostIssuanceErc20GrantRoleData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<Transaction, unknown, ThrowOnError>;
3238
3255
  erc20RenounceRole: <ThrowOnError extends boolean = false>(options?: Options<PostIssuanceErc20RenounceRoleData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<Transaction, unknown, ThrowOnError>;
3256
+ erc20GetInitData: <ThrowOnError extends boolean = false>(options?: Options<PostIssuanceErc20GetInitDataData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<Erc20InitDataResponse, unknown, ThrowOnError>;
3239
3257
  proxy: {
3240
3258
  deployProxyAdmin: <ThrowOnError extends boolean = false>(options?: Options<GetIssuanceProxyDeployProxyAdminData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<IssuanceDeployProxyAdminSchema, unknown, ThrowOnError>;
3241
3259
  deployTransparentUpgradeableProxy: <ThrowOnError extends boolean = false>(options?: Options<PostIssuanceProxyDeployTransparentProxyData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<IssuanceDeployTransparentProxySchema, unknown, ThrowOnError>;
@@ -3255,4 +3273,4 @@ type ApiResponse<T> = {
3255
3273
  };
3256
3274
  declare function handleApiResponse<T>(apiResponse: ApiResponse<T>): T;
3257
3275
 
3258
- export { type AmountMultInterval, type AmountTwoBorder, type ApiClient, type ApiResponse, type ApproveErc20SpendingToWrapper, type ApproveErc721SpendingToWrapper, type ApproveSaleRequestSchema, type ApproveWrapperRequestSchema, type AssetMeta, type BalancesResponseSchema, type ClaimStatisticsRequest, type ClaimStatisticsResponse, 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 GetGeneralBalanceResponse, type GetGeneralBalanceResponses, type GetIssuanceErc20Data, type GetIssuanceErc20Response, type GetIssuanceErc20Responses, type GetIssuanceProxyDeployProxyAdminData, type GetIssuanceProxyDeployProxyAdminResponse, type GetIssuanceProxyDeployProxyAdminResponses, type GetStakingPlatformsGetV0Data, type GetStakingPlatformsGetV0Error, type GetStakingPlatformsGetV0Errors, type GetStakingPlatformsGetV0Response, type GetStakingPlatformsGetV0Responses, type GetStakingPoolsGetPoolV0Data, type GetStakingPoolsGetPoolV0Error, type GetStakingPoolsGetPoolV0Errors, type GetStakingPoolsGetPoolV0Response, type GetStakingPoolsGetPoolV0Responses, type GetStakingRolesGetRolesV0Data, type GetStakingRolesGetRolesV0Response, type GetStakingRolesGetRolesV0Responses, type GetStakingStakesGetStakeV0Data, type GetStakingStakesGetStakeV0Error, type GetStakingStakesGetStakeV0Errors, type GetStakingStakesGetStakeV0Response, type GetStakingStakesGetStakeV0Responses, type GetStakingTemplatesReputationLockV0GetCreatePoolEventData, type GetStakingTemplatesReputationLockV0GetCreatePoolEventResponse, type GetStakingTemplatesReputationLockV0GetCreatePoolEventResponses, type GetStakingTemplatesReputationLockV0GetPlatformDeployEventData, type GetStakingTemplatesReputationLockV0GetPlatformDeployEventResponse, type GetStakingTemplatesReputationLockV0GetPlatformDeployEventResponses, type GetStakingTemplatesReputationLockV0GetStakeEventData, type GetStakingTemplatesReputationLockV0GetStakeEventResponse, type GetStakingTemplatesReputationLockV0GetStakeEventResponses, type GetStakingTemplatesReputationV0GetCreatePoolEventData, type GetStakingTemplatesReputationV0GetCreatePoolEventResponse, type GetStakingTemplatesReputationV0GetCreatePoolEventResponses, type GetStakingTemplatesReputationV0GetPlatformDeployEventData, type GetStakingTemplatesReputationV0GetPlatformDeployEventResponse, type GetStakingTemplatesReputationV0GetPlatformDeployEventResponses, type GetStakingTemplatesReputationV0GetStakeEventData, type GetStakingTemplatesReputationV0GetStakeEventResponse, type GetStakingTemplatesReputationV0GetStakeEventResponses, type GetStakingTemplatesRwaV0GetCreatePoolEventData, type GetStakingTemplatesRwaV0GetCreatePoolEventResponse, type GetStakingTemplatesRwaV0GetCreatePoolEventResponses, type GetStakingTemplatesRwaV0GetPlatformDeployEventData, type GetStakingTemplatesRwaV0GetPlatformDeployEventResponse, type GetStakingTemplatesRwaV0GetPlatformDeployEventResponses, type GetStakingTemplatesRwaV0GetStakeEventData, type GetStakingTemplatesRwaV0GetStakeEventResponse, type GetStakingTemplatesRwaV0GetStakeEventResponses, type GetV0FractionsMarketsDeployEventData, type GetV0FractionsMarketsDeployEventResponse, type GetV0FractionsMarketsDeployEventResponses, type GetV0FractionsMarketsGetData, type GetV0FractionsMarketsGetError, type GetV0FractionsMarketsGetErrors, type GetV0FractionsMarketsGetResponse, type GetV0FractionsMarketsGetResponses, type GetV0FractionsPlatformsInitCompilotData, type GetV0FractionsPlatformsInitCompilotResponse, type GetV0FractionsPlatformsInitCompilotResponses, type GetV0FractionsRolesData, type GetV0FractionsRolesResponse, type GetV0FractionsRolesResponses, type GetV0FractionsSalesGetFractionsCreatedEventData, type GetV0FractionsSalesGetFractionsCreatedEventResponse, type GetV0FractionsSalesGetFractionsCreatedEventResponses, type GetV0FractionsSalesGetVaultAddressData, type GetV0FractionsSalesGetVaultAddressResponse, type GetV0FractionsSalesGetVaultAddressResponses, type GetV0FractionsSalesGetWithdrawEventData, type GetV0FractionsSalesGetWithdrawEventResponse, type GetV0FractionsSalesGetWithdrawEventResponses, type GetV0FractionsSalesVestingGetClaimVestedTokensEventData, type GetV0FractionsSalesVestingGetClaimVestedTokensEventResponse, type GetV0FractionsSalesVestingGetClaimVestedTokensEventResponses, type GrantMarketRoleRequestSchema, type IApiConfig, type IEnv, type IEnvName, type IssuanceDeployErc1967Schema, type IssuanceDeployErc20Schema, type IssuanceDeployProxyAdminSchema, type IssuanceDeployTransparentProxySchema, type LockMultInterval, type LockTwoBorder, type NonceRequestSchema, type PageRequest, type Platform, type Pool, type PostGeneralBalancesData, type PostGeneralBalancesResponse, type PostGeneralBalancesResponses, type PostGeneralEstimateGasData, type PostGeneralEstimateGasResponse, type PostGeneralEstimateGasResponses, type PostGeneralSearchBalancesData, type PostGeneralSearchBalancesResponse, type PostGeneralSearchBalancesResponses, type PostIssuanceErc20ApproveData, type PostIssuanceErc20ApproveResponse, type PostIssuanceErc20ApproveResponses, type PostIssuanceErc20BurnData, type PostIssuanceErc20BurnResponse, type PostIssuanceErc20BurnResponses, type PostIssuanceErc20GrantRoleData, type PostIssuanceErc20GrantRoleResponse, type PostIssuanceErc20GrantRoleResponses, type PostIssuanceErc20MintData, type PostIssuanceErc20MintResponse, type PostIssuanceErc20MintResponses, type PostIssuanceErc20ProxyData, type PostIssuanceErc20ProxyResponse, type PostIssuanceErc20ProxyResponses, type PostIssuanceErc20RenounceRoleData, type PostIssuanceErc20RenounceRoleResponse, type PostIssuanceErc20RenounceRoleResponses, type PostIssuanceErc20TransferData, type PostIssuanceErc20TransferResponse, type PostIssuanceErc20TransferResponses, type PostIssuanceProxyDeployTransparentProxyData, type PostIssuanceProxyDeployTransparentProxyResponse, type PostIssuanceProxyDeployTransparentProxyResponses, type PostIssuanceProxyUpgradeTransparentProxyData, type PostIssuanceProxyUpgradeTransparentProxyResponse, type PostIssuanceProxyUpgradeTransparentProxyResponses, type PostStakingPlatformsSearchV0Data, type PostStakingPlatformsSearchV0Response, type PostStakingPlatformsSearchV0Responses, type PostStakingPoolsSearchPoolsV0Data, type PostStakingPoolsSearchPoolsV0Response, type PostStakingPoolsSearchPoolsV0Responses, type PostStakingRolesGrantRoleV0Data, type PostStakingRolesGrantRoleV0Response, type PostStakingRolesGrantRoleV0Responses, type PostStakingRolesSearchRoleEventsV0Data, type PostStakingRolesSearchRoleEventsV0Response, type PostStakingRolesSearchRoleEventsV0Responses, type PostStakingRolesSearchRolesV0Data, type PostStakingRolesSearchRolesV0Response, type PostStakingRolesSearchRolesV0Responses, type PostStakingStakesSearchStakeEventsV0Data, type PostStakingStakesSearchStakeEventsV0Response, type PostStakingStakesSearchStakeEventsV0Responses, type PostStakingStakesSearchStakesV0Data, type PostStakingStakesSearchStakesV0Response, type PostStakingStakesSearchStakesV0Responses, type PostStakingTemplatesReputationLockV0CreatePlatformData, type PostStakingTemplatesReputationLockV0CreatePlatformResponse, type PostStakingTemplatesReputationLockV0CreatePlatformResponses, type PostStakingTemplatesReputationLockV0CreatePoolData, type PostStakingTemplatesReputationLockV0CreatePoolResponse, type PostStakingTemplatesReputationLockV0CreatePoolResponses, type PostStakingTemplatesReputationLockV0GetRewardData, type PostStakingTemplatesReputationLockV0GetRewardResponse, type PostStakingTemplatesReputationLockV0GetRewardResponses, type PostStakingTemplatesReputationLockV0PartialUnstakeData, type PostStakingTemplatesReputationLockV0PartialUnstakeResponse, type PostStakingTemplatesReputationLockV0PartialUnstakeResponses, type PostStakingTemplatesReputationLockV0RestakeData, type PostStakingTemplatesReputationLockV0RestakeResponse, type PostStakingTemplatesReputationLockV0RestakeResponses, type PostStakingTemplatesReputationLockV0StakeData, type PostStakingTemplatesReputationLockV0StakeResponse, type PostStakingTemplatesReputationLockV0StakeResponses, type PostStakingTemplatesReputationLockV0UnstakeData, type PostStakingTemplatesReputationLockV0UnstakeResponse, type PostStakingTemplatesReputationLockV0UnstakeResponses, type PostStakingTemplatesReputationV0CreatePlatformData, type PostStakingTemplatesReputationV0CreatePlatformResponse, type PostStakingTemplatesReputationV0CreatePlatformResponses, type PostStakingTemplatesReputationV0CreatePoolData, type PostStakingTemplatesReputationV0CreatePoolResponse, type PostStakingTemplatesReputationV0CreatePoolResponses, type PostStakingTemplatesReputationV0GetRewardData, type PostStakingTemplatesReputationV0GetRewardResponse, type PostStakingTemplatesReputationV0GetRewardResponses, type PostStakingTemplatesReputationV0PartialUnstakeData, type PostStakingTemplatesReputationV0PartialUnstakeResponse, type PostStakingTemplatesReputationV0PartialUnstakeResponses, type PostStakingTemplatesReputationV0RestakeData, type PostStakingTemplatesReputationV0RestakeResponse, type PostStakingTemplatesReputationV0RestakeResponses, type PostStakingTemplatesReputationV0StakeData, type PostStakingTemplatesReputationV0StakeResponse, type PostStakingTemplatesReputationV0StakeResponses, type PostStakingTemplatesReputationV0UnstakeData, type PostStakingTemplatesReputationV0UnstakeResponse, type PostStakingTemplatesReputationV0UnstakeResponses, type PostStakingTemplatesRwaV0CreatePlatformData, type PostStakingTemplatesRwaV0CreatePlatformResponse, type PostStakingTemplatesRwaV0CreatePlatformResponses, type PostStakingTemplatesRwaV0CreatePoolData, type PostStakingTemplatesRwaV0CreatePoolResponse, type PostStakingTemplatesRwaV0CreatePoolResponses, type PostStakingTemplatesRwaV0GetRewardData, type PostStakingTemplatesRwaV0GetRewardResponse, type PostStakingTemplatesRwaV0GetRewardResponses, type PostStakingTemplatesRwaV0NotifyRewardsData, type PostStakingTemplatesRwaV0NotifyRewardsResponse, type PostStakingTemplatesRwaV0NotifyRewardsResponses, type PostStakingTemplatesRwaV0PartialUnstakeData, type PostStakingTemplatesRwaV0PartialUnstakeResponse, type PostStakingTemplatesRwaV0PartialUnstakeResponses, type PostStakingTemplatesRwaV0RestakeData, type PostStakingTemplatesRwaV0RestakeResponse, type PostStakingTemplatesRwaV0RestakeResponses, type PostStakingTemplatesRwaV0StakeData, type PostStakingTemplatesRwaV0StakeResponse, type PostStakingTemplatesRwaV0StakeResponses, type PostStakingTemplatesRwaV0UnstakeData, type PostStakingTemplatesRwaV0UnstakeResponse, type PostStakingTemplatesRwaV0UnstakeResponses, type PostV0FractionsFractionsApproveWrapperAsErc20SpenderData, type PostV0FractionsFractionsApproveWrapperAsErc20SpenderResponse, type PostV0FractionsFractionsApproveWrapperAsErc20SpenderResponses, type PostV0FractionsFractionsApproveWrapperAsErc721SpenderData, type PostV0FractionsFractionsApproveWrapperAsErc721SpenderResponse, type PostV0FractionsFractionsApproveWrapperAsErc721SpenderResponses, type PostV0FractionsFractionsApproveWrapperData, type PostV0FractionsFractionsApproveWrapperResponse, type PostV0FractionsFractionsApproveWrapperResponses, type PostV0FractionsMarketsSearchData, type PostV0FractionsMarketsSearchResponse, type PostV0FractionsMarketsSearchResponses, type PostV0FractionsPlatformsDeployContinuousWithdrawData, type PostV0FractionsPlatformsDeployContinuousWithdrawNidData, type PostV0FractionsPlatformsDeployContinuousWithdrawNidResponse, type PostV0FractionsPlatformsDeployContinuousWithdrawNidResponses, type PostV0FractionsPlatformsDeployContinuousWithdrawResponse, type PostV0FractionsPlatformsDeployContinuousWithdrawResponses, type PostV0FractionsPlatformsDeployData, type PostV0FractionsPlatformsDeployNidData, type PostV0FractionsPlatformsDeployNidResponse, type PostV0FractionsPlatformsDeployNidResponses, type PostV0FractionsPlatformsDeployResponse, type PostV0FractionsPlatformsDeployResponses, type PostV0FractionsRolesGrantData, type PostV0FractionsRolesGrantResponse, type PostV0FractionsRolesGrantResponses, type PostV0FractionsSalesActivityData, type PostV0FractionsSalesActivityResponse, type PostV0FractionsSalesActivityResponses, type PostV0FractionsSalesApproveData, type PostV0FractionsSalesApproveResponse, type PostV0FractionsSalesApproveResponses, type PostV0FractionsSalesCheckAndJumpToNonFundedData, type PostV0FractionsSalesCheckAndJumpToNonFundedResponse, type PostV0FractionsSalesCheckAndJumpToNonFundedResponses, type PostV0FractionsSalesCompleteData, type PostV0FractionsSalesCompleteResponse, type PostV0FractionsSalesCompleteResponses, type PostV0FractionsSalesFractionsData, type PostV0FractionsSalesFractionsResponse, type PostV0FractionsSalesFractionsResponses, type PostV0FractionsSalesPurchaseData, type PostV0FractionsSalesPurchaseResponse, type PostV0FractionsSalesPurchaseResponses, type PostV0FractionsSalesPurchaseStatisticsData, type PostV0FractionsSalesPurchaseStatisticsResponse, type PostV0FractionsSalesPurchaseStatisticsResponses, type PostV0FractionsSalesReceiveFundsAfterNonFundedData, type PostV0FractionsSalesReceiveFundsAfterNonFundedResponse, type PostV0FractionsSalesReceiveFundsAfterNonFundedResponses, type PostV0FractionsSalesReceiveNonPurchasedWrappedAssetsData, type PostV0FractionsSalesReceiveNonPurchasedWrappedAssetsResponse, type PostV0FractionsSalesReceiveNonPurchasedWrappedAssetsResponses, type PostV0FractionsSalesRecoverData, type PostV0FractionsSalesRecoverResponse, type PostV0FractionsSalesRecoverResponses, type PostV0FractionsSalesRejectData, type PostV0FractionsSalesRejectResponse, type PostV0FractionsSalesRejectResponses, type PostV0FractionsSalesSearchData, type PostV0FractionsSalesSearchResponse, type PostV0FractionsSalesSearchResponses, type PostV0FractionsSalesSetFeeCapLimitData, type PostV0FractionsSalesSetFeeCapLimitResponse, type PostV0FractionsSalesSetFeeCapLimitResponses, type PostV0FractionsSalesStatisticsData, type PostV0FractionsSalesStatisticsResponse, type PostV0FractionsSalesStatisticsResponses, type PostV0FractionsSalesUnlockWrappedAssetsData, type PostV0FractionsSalesUnlockWrappedAssetsResponse, type PostV0FractionsSalesUnlockWrappedAssetsResponses, type PostV0FractionsSalesVestingClaimData, type PostV0FractionsSalesVestingClaimResponse, type PostV0FractionsSalesVestingClaimResponses, type PostV0FractionsSalesVestingClaimStatisticsData, type PostV0FractionsSalesVestingClaimStatisticsResponse, type PostV0FractionsSalesVestingClaimStatisticsResponses, type PostV0FractionsSalesVestingEditCliffData, type PostV0FractionsSalesVestingEditCliffResponse, type PostV0FractionsSalesVestingEditCliffResponses, type PostV0FractionsSalesWithdrawPaymentTokenData, type PostV0FractionsSalesWithdrawPaymentTokenResponse, type PostV0FractionsSalesWithdrawPaymentTokenResponses, type PostV0FractionsSalesWithdrawSearchData, type PostV0FractionsSalesWithdrawSearchResponse, type PostV0FractionsSalesWithdrawSearchResponses, type PostV0FractionsSigAuthDataData, type PostV0FractionsSigAuthDataResponse, type PostV0FractionsSigAuthDataResponses, type PostV0FractionsSigNonceData, 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, api, envs, getEnv, handleApiResponse };
3276
+ export { type AmountMultInterval, type AmountTwoBorder, type ApiClient, type ApiResponse, type ApproveErc20SpendingToWrapper, type ApproveErc721SpendingToWrapper, type ApproveSaleRequestSchema, type ApproveWrapperRequestSchema, type AssetMeta, type BalancesResponseSchema, type ClaimStatisticsRequest, type ClaimStatisticsResponse, type ClaimVestedTokensRequestSchema, type ClientOptions, type CompleteSaleRequestSchema, type CreateFractionsRequestSchema, type DeployMarketRequestSchema, type EditCliffRequestSchema, type Erc20InitDataParams, type Erc20InitDataResponse, type Erc20Input, type Erc20Reward, type Erc721Meta, type EstimateGasResponse, type FractionsActivity, type FractionsMarket, type FractionsSale, type FractionsSaleStatistics, type GetGeneralBalanceData, type GetGeneralBalanceResponse, type GetGeneralBalanceResponses, type GetIssuanceErc20Data, type GetIssuanceErc20Response, type GetIssuanceErc20Responses, type GetIssuanceProxyDeployProxyAdminData, type GetIssuanceProxyDeployProxyAdminResponse, type GetIssuanceProxyDeployProxyAdminResponses, type GetStakingPlatformsGetV0Data, type GetStakingPlatformsGetV0Error, type GetStakingPlatformsGetV0Errors, type GetStakingPlatformsGetV0Response, type GetStakingPlatformsGetV0Responses, type GetStakingPoolsGetPoolV0Data, type GetStakingPoolsGetPoolV0Error, type GetStakingPoolsGetPoolV0Errors, type GetStakingPoolsGetPoolV0Response, type GetStakingPoolsGetPoolV0Responses, type GetStakingRolesGetRolesV0Data, type GetStakingRolesGetRolesV0Response, type GetStakingRolesGetRolesV0Responses, type GetStakingStakesGetStakeV0Data, type GetStakingStakesGetStakeV0Error, type GetStakingStakesGetStakeV0Errors, type GetStakingStakesGetStakeV0Response, type GetStakingStakesGetStakeV0Responses, type GetStakingTemplatesReputationLockV0GetCreatePoolEventData, type GetStakingTemplatesReputationLockV0GetCreatePoolEventResponse, type GetStakingTemplatesReputationLockV0GetCreatePoolEventResponses, type GetStakingTemplatesReputationLockV0GetPlatformDeployEventData, type GetStakingTemplatesReputationLockV0GetPlatformDeployEventResponse, type GetStakingTemplatesReputationLockV0GetPlatformDeployEventResponses, type GetStakingTemplatesReputationLockV0GetStakeEventData, type GetStakingTemplatesReputationLockV0GetStakeEventResponse, type GetStakingTemplatesReputationLockV0GetStakeEventResponses, type GetStakingTemplatesReputationV0GetCreatePoolEventData, type GetStakingTemplatesReputationV0GetCreatePoolEventResponse, type GetStakingTemplatesReputationV0GetCreatePoolEventResponses, type GetStakingTemplatesReputationV0GetPlatformDeployEventData, type GetStakingTemplatesReputationV0GetPlatformDeployEventResponse, type GetStakingTemplatesReputationV0GetPlatformDeployEventResponses, type GetStakingTemplatesReputationV0GetStakeEventData, type GetStakingTemplatesReputationV0GetStakeEventResponse, type GetStakingTemplatesReputationV0GetStakeEventResponses, type GetStakingTemplatesRwaV0GetCreatePoolEventData, type GetStakingTemplatesRwaV0GetCreatePoolEventResponse, type GetStakingTemplatesRwaV0GetCreatePoolEventResponses, type GetStakingTemplatesRwaV0GetPlatformDeployEventData, type GetStakingTemplatesRwaV0GetPlatformDeployEventResponse, type GetStakingTemplatesRwaV0GetPlatformDeployEventResponses, type GetStakingTemplatesRwaV0GetStakeEventData, type GetStakingTemplatesRwaV0GetStakeEventResponse, type GetStakingTemplatesRwaV0GetStakeEventResponses, type GetV0FractionsMarketsDeployEventData, type GetV0FractionsMarketsDeployEventResponse, type GetV0FractionsMarketsDeployEventResponses, type GetV0FractionsMarketsGetData, type GetV0FractionsMarketsGetError, type GetV0FractionsMarketsGetErrors, type GetV0FractionsMarketsGetResponse, type GetV0FractionsMarketsGetResponses, type GetV0FractionsPlatformsInitCompilotData, type GetV0FractionsPlatformsInitCompilotResponse, type GetV0FractionsPlatformsInitCompilotResponses, type GetV0FractionsRolesData, type GetV0FractionsRolesResponse, type GetV0FractionsRolesResponses, type GetV0FractionsSalesGetFractionsCreatedEventData, type GetV0FractionsSalesGetFractionsCreatedEventResponse, type GetV0FractionsSalesGetFractionsCreatedEventResponses, type GetV0FractionsSalesGetVaultAddressData, type GetV0FractionsSalesGetVaultAddressResponse, type GetV0FractionsSalesGetVaultAddressResponses, type GetV0FractionsSalesGetWithdrawEventData, type GetV0FractionsSalesGetWithdrawEventResponse, type GetV0FractionsSalesGetWithdrawEventResponses, type GetV0FractionsSalesVestingGetClaimVestedTokensEventData, type GetV0FractionsSalesVestingGetClaimVestedTokensEventResponse, type GetV0FractionsSalesVestingGetClaimVestedTokensEventResponses, type GrantMarketRoleRequestSchema, type IApiConfig, type IEnv, type IEnvName, type IssuanceDeployErc1967Schema, type IssuanceDeployErc20Schema, type IssuanceDeployProxyAdminSchema, type IssuanceDeployTransparentProxySchema, type LockMultInterval, type LockTwoBorder, type NonceRequestSchema, type PageRequest, type Platform, type Pool, type PostGeneralBalancesData, type PostGeneralBalancesResponse, type PostGeneralBalancesResponses, type PostGeneralEstimateGasData, type PostGeneralEstimateGasResponse, type PostGeneralEstimateGasResponses, type PostGeneralSearchBalancesData, type PostGeneralSearchBalancesResponse, type PostGeneralSearchBalancesResponses, type PostIssuanceErc20ApproveData, type PostIssuanceErc20ApproveResponse, type PostIssuanceErc20ApproveResponses, type PostIssuanceErc20BurnData, type PostIssuanceErc20BurnResponse, type PostIssuanceErc20BurnResponses, type PostIssuanceErc20GetInitDataData, type PostIssuanceErc20GetInitDataResponse, type PostIssuanceErc20GetInitDataResponses, type PostIssuanceErc20GrantRoleData, type PostIssuanceErc20GrantRoleResponse, type PostIssuanceErc20GrantRoleResponses, type PostIssuanceErc20MintData, type PostIssuanceErc20MintResponse, type PostIssuanceErc20MintResponses, type PostIssuanceErc20ProxyData, type PostIssuanceErc20ProxyResponse, type PostIssuanceErc20ProxyResponses, type PostIssuanceErc20RenounceRoleData, type PostIssuanceErc20RenounceRoleResponse, type PostIssuanceErc20RenounceRoleResponses, type PostIssuanceErc20TransferData, type PostIssuanceErc20TransferResponse, type PostIssuanceErc20TransferResponses, type PostIssuanceProxyDeployTransparentProxyData, type PostIssuanceProxyDeployTransparentProxyResponse, type PostIssuanceProxyDeployTransparentProxyResponses, type PostIssuanceProxyUpgradeTransparentProxyData, type PostIssuanceProxyUpgradeTransparentProxyResponse, type PostIssuanceProxyUpgradeTransparentProxyResponses, type PostStakingPlatformsSearchV0Data, type PostStakingPlatformsSearchV0Response, type PostStakingPlatformsSearchV0Responses, type PostStakingPoolsSearchPoolsV0Data, type PostStakingPoolsSearchPoolsV0Response, type PostStakingPoolsSearchPoolsV0Responses, type PostStakingRolesGrantRoleV0Data, type PostStakingRolesGrantRoleV0Response, type PostStakingRolesGrantRoleV0Responses, type PostStakingRolesSearchRoleEventsV0Data, type PostStakingRolesSearchRoleEventsV0Response, type PostStakingRolesSearchRoleEventsV0Responses, type PostStakingRolesSearchRolesV0Data, type PostStakingRolesSearchRolesV0Response, type PostStakingRolesSearchRolesV0Responses, type PostStakingStakesSearchStakeEventsV0Data, type PostStakingStakesSearchStakeEventsV0Response, type PostStakingStakesSearchStakeEventsV0Responses, type PostStakingStakesSearchStakesV0Data, type PostStakingStakesSearchStakesV0Response, type PostStakingStakesSearchStakesV0Responses, type PostStakingTemplatesReputationLockV0CreatePlatformData, type PostStakingTemplatesReputationLockV0CreatePlatformResponse, type PostStakingTemplatesReputationLockV0CreatePlatformResponses, type PostStakingTemplatesReputationLockV0CreatePoolData, type PostStakingTemplatesReputationLockV0CreatePoolResponse, type PostStakingTemplatesReputationLockV0CreatePoolResponses, type PostStakingTemplatesReputationLockV0GetRewardData, type PostStakingTemplatesReputationLockV0GetRewardResponse, type PostStakingTemplatesReputationLockV0GetRewardResponses, type PostStakingTemplatesReputationLockV0PartialUnstakeData, type PostStakingTemplatesReputationLockV0PartialUnstakeResponse, type PostStakingTemplatesReputationLockV0PartialUnstakeResponses, type PostStakingTemplatesReputationLockV0RestakeData, type PostStakingTemplatesReputationLockV0RestakeResponse, type PostStakingTemplatesReputationLockV0RestakeResponses, type PostStakingTemplatesReputationLockV0StakeData, type PostStakingTemplatesReputationLockV0StakeResponse, type PostStakingTemplatesReputationLockV0StakeResponses, type PostStakingTemplatesReputationLockV0UnstakeData, type PostStakingTemplatesReputationLockV0UnstakeResponse, type PostStakingTemplatesReputationLockV0UnstakeResponses, type PostStakingTemplatesReputationV0CreatePlatformData, type PostStakingTemplatesReputationV0CreatePlatformResponse, type PostStakingTemplatesReputationV0CreatePlatformResponses, type PostStakingTemplatesReputationV0CreatePoolData, type PostStakingTemplatesReputationV0CreatePoolResponse, type PostStakingTemplatesReputationV0CreatePoolResponses, type PostStakingTemplatesReputationV0GetRewardData, type PostStakingTemplatesReputationV0GetRewardResponse, type PostStakingTemplatesReputationV0GetRewardResponses, type PostStakingTemplatesReputationV0PartialUnstakeData, type PostStakingTemplatesReputationV0PartialUnstakeResponse, type PostStakingTemplatesReputationV0PartialUnstakeResponses, type PostStakingTemplatesReputationV0RestakeData, type PostStakingTemplatesReputationV0RestakeResponse, type PostStakingTemplatesReputationV0RestakeResponses, type PostStakingTemplatesReputationV0StakeData, type PostStakingTemplatesReputationV0StakeResponse, type PostStakingTemplatesReputationV0StakeResponses, type PostStakingTemplatesReputationV0UnstakeData, type PostStakingTemplatesReputationV0UnstakeResponse, type PostStakingTemplatesReputationV0UnstakeResponses, type PostStakingTemplatesRwaV0CreatePlatformData, type PostStakingTemplatesRwaV0CreatePlatformResponse, type PostStakingTemplatesRwaV0CreatePlatformResponses, type PostStakingTemplatesRwaV0CreatePoolData, type PostStakingTemplatesRwaV0CreatePoolResponse, type PostStakingTemplatesRwaV0CreatePoolResponses, type PostStakingTemplatesRwaV0GetRewardData, type PostStakingTemplatesRwaV0GetRewardResponse, type PostStakingTemplatesRwaV0GetRewardResponses, type PostStakingTemplatesRwaV0NotifyRewardsData, type PostStakingTemplatesRwaV0NotifyRewardsResponse, type PostStakingTemplatesRwaV0NotifyRewardsResponses, type PostStakingTemplatesRwaV0PartialUnstakeData, type PostStakingTemplatesRwaV0PartialUnstakeResponse, type PostStakingTemplatesRwaV0PartialUnstakeResponses, type PostStakingTemplatesRwaV0RestakeData, type PostStakingTemplatesRwaV0RestakeResponse, type PostStakingTemplatesRwaV0RestakeResponses, type PostStakingTemplatesRwaV0StakeData, type PostStakingTemplatesRwaV0StakeResponse, type PostStakingTemplatesRwaV0StakeResponses, type PostStakingTemplatesRwaV0UnstakeData, type PostStakingTemplatesRwaV0UnstakeResponse, type PostStakingTemplatesRwaV0UnstakeResponses, type PostV0FractionsFractionsApproveWrapperAsErc20SpenderData, type PostV0FractionsFractionsApproveWrapperAsErc20SpenderResponse, type PostV0FractionsFractionsApproveWrapperAsErc20SpenderResponses, type PostV0FractionsFractionsApproveWrapperAsErc721SpenderData, type PostV0FractionsFractionsApproveWrapperAsErc721SpenderResponse, type PostV0FractionsFractionsApproveWrapperAsErc721SpenderResponses, type PostV0FractionsFractionsApproveWrapperData, type PostV0FractionsFractionsApproveWrapperResponse, type PostV0FractionsFractionsApproveWrapperResponses, type PostV0FractionsMarketsSearchData, type PostV0FractionsMarketsSearchResponse, type PostV0FractionsMarketsSearchResponses, type PostV0FractionsPlatformsDeployContinuousWithdrawData, type PostV0FractionsPlatformsDeployContinuousWithdrawNidData, type PostV0FractionsPlatformsDeployContinuousWithdrawNidResponse, type PostV0FractionsPlatformsDeployContinuousWithdrawNidResponses, type PostV0FractionsPlatformsDeployContinuousWithdrawResponse, type PostV0FractionsPlatformsDeployContinuousWithdrawResponses, type PostV0FractionsPlatformsDeployData, type PostV0FractionsPlatformsDeployNidData, type PostV0FractionsPlatformsDeployNidResponse, type PostV0FractionsPlatformsDeployNidResponses, type PostV0FractionsPlatformsDeployResponse, type PostV0FractionsPlatformsDeployResponses, type PostV0FractionsRolesGrantData, type PostV0FractionsRolesGrantResponse, type PostV0FractionsRolesGrantResponses, type PostV0FractionsSalesActivityData, type PostV0FractionsSalesActivityResponse, type PostV0FractionsSalesActivityResponses, type PostV0FractionsSalesApproveData, type PostV0FractionsSalesApproveResponse, type PostV0FractionsSalesApproveResponses, type PostV0FractionsSalesCheckAndJumpToNonFundedData, type PostV0FractionsSalesCheckAndJumpToNonFundedResponse, type PostV0FractionsSalesCheckAndJumpToNonFundedResponses, type PostV0FractionsSalesCompleteData, type PostV0FractionsSalesCompleteResponse, type PostV0FractionsSalesCompleteResponses, type PostV0FractionsSalesFractionsData, type PostV0FractionsSalesFractionsResponse, type PostV0FractionsSalesFractionsResponses, type PostV0FractionsSalesPurchaseData, type PostV0FractionsSalesPurchaseResponse, type PostV0FractionsSalesPurchaseResponses, type PostV0FractionsSalesPurchaseStatisticsData, type PostV0FractionsSalesPurchaseStatisticsResponse, type PostV0FractionsSalesPurchaseStatisticsResponses, type PostV0FractionsSalesReceiveFundsAfterNonFundedData, type PostV0FractionsSalesReceiveFundsAfterNonFundedResponse, type PostV0FractionsSalesReceiveFundsAfterNonFundedResponses, type PostV0FractionsSalesReceiveNonPurchasedWrappedAssetsData, type PostV0FractionsSalesReceiveNonPurchasedWrappedAssetsResponse, type PostV0FractionsSalesReceiveNonPurchasedWrappedAssetsResponses, type PostV0FractionsSalesRecoverData, type PostV0FractionsSalesRecoverResponse, type PostV0FractionsSalesRecoverResponses, type PostV0FractionsSalesRejectData, type PostV0FractionsSalesRejectResponse, type PostV0FractionsSalesRejectResponses, type PostV0FractionsSalesSearchData, type PostV0FractionsSalesSearchResponse, type PostV0FractionsSalesSearchResponses, type PostV0FractionsSalesSetFeeCapLimitData, type PostV0FractionsSalesSetFeeCapLimitResponse, type PostV0FractionsSalesSetFeeCapLimitResponses, type PostV0FractionsSalesStatisticsData, type PostV0FractionsSalesStatisticsResponse, type PostV0FractionsSalesStatisticsResponses, type PostV0FractionsSalesUnlockWrappedAssetsData, type PostV0FractionsSalesUnlockWrappedAssetsResponse, type PostV0FractionsSalesUnlockWrappedAssetsResponses, type PostV0FractionsSalesVestingClaimData, type PostV0FractionsSalesVestingClaimResponse, type PostV0FractionsSalesVestingClaimResponses, type PostV0FractionsSalesVestingClaimStatisticsData, type PostV0FractionsSalesVestingClaimStatisticsResponse, type PostV0FractionsSalesVestingClaimStatisticsResponses, type PostV0FractionsSalesVestingEditCliffData, type PostV0FractionsSalesVestingEditCliffResponse, type PostV0FractionsSalesVestingEditCliffResponses, type PostV0FractionsSalesWithdrawPaymentTokenData, type PostV0FractionsSalesWithdrawPaymentTokenResponse, type PostV0FractionsSalesWithdrawPaymentTokenResponses, type PostV0FractionsSalesWithdrawSearchData, type PostV0FractionsSalesWithdrawSearchResponse, type PostV0FractionsSalesWithdrawSearchResponses, type PostV0FractionsSigAuthDataData, type PostV0FractionsSigAuthDataResponse, type PostV0FractionsSigAuthDataResponses, type PostV0FractionsSigNonceData, 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, api, envs, getEnv, handleApiResponse };
package/dist/index.js CHANGED
@@ -1,2 +1,2 @@
1
- import{createClient as vt}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),k=async e=>(e=e.map(o=>l(o)),e),S=e=>(e.poolId=BigInt(e.poolId.toString()),e.createdAt=new Date(e.createdAt),e),T=async e=>(e=e.map(o=>S(o)),e),u=async e=>(e=S(e),e),R=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),g=async e=>(e=e.map(o=>R(o)),e),wt=e=>(e.poolId&&(e.poolId=BigInt(e.poolId.toString())),e.stakeId=BigInt(e.stakeId.toString()),e.createdAt=new Date(e.createdAt),e),h=async e=>(e=e.map(o=>wt(o)),e),P=async e=>(e=R(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),V=async e=>(e=e.map(o=>m(o)),e),w=async e=>(e=e.map(o=>m(o)),e),E=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),O=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),v=async e=>(e.poolId=BigInt(e.poolId.toString()),e),F=e=>(e.createdAt=new Date(e.createdAt),e.updatedAt=new Date(e.updatedAt),e),y=async e=>(e=F(e),e),D=async e=>(e=e.map(o=>F(o)),e),x=async e=>(e.nftId=BigInt(e.nftId.toString()),e.campaignId=BigInt(e.campaignId.toString()),e.fractionsCreated=BigInt(e.fractionsCreated.toString()),e),Et=e=>(e.timeline.startDate=new Date(e.timeline.startDate),e.timeline.endDate=new Date(e.timeline.endDate),e.vesting.cliffDate=new Date(e.vesting.cliffDate),e.wrappedAssets=e.wrappedAssets.map(o=>(o.wrappedAmount=BigInt(o.wrappedAmount.toString()),o)),e.fundingAssets=e.fundingAssets.map(o=>(o.amountPerPacket=BigInt(o.amountPerPacket.toString()),o)),e.createdAt=new Date(e.createdAt),e.updatedAt=new Date(e.updatedAt),e);var C=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(o=>Et(o)),e),A=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),dt=e=>(e.value=BigInt(e.value.toString()),e),L=async e=>(e=dt(e),e),W=async e=>(e.balance=BigInt(e.balance.toString()),e),j=e=>(e.tokenId&&(e.tokenId=BigInt(e.tokenId.toString())),e),B=async e=>(e=e.map(o=>j(o)),e),ft=e=>(e.balances=e.balances.map(o=>j(o)),e),N=async e=>(e=ft(e),e);import{createClient as Ot,createConfig as Gt}from"@hey-api/client-fetch";var t=Ot(Gt({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:k,url:"/staking/platforms/search/v0",...e,headers:{"Content-Type":"application/json",...e?.headers}}),J=e=>(e?.client??t).post({responseTransformer:T,url:"/staking/pools/searchPools/v0",...e,headers:{"Content-Type":"application/json",...e?.headers}}),K=e=>(e.client??t).get({responseTransformer:u,url:"/staking/pools/getPool/v0",...e}),q=e=>(e?.client??t).post({responseTransformer:g,url:"/staking/stakes/searchStakes/v0",...e,headers:{"Content-Type":"application/json",...e?.headers}}),z=e=>(e?.client??t).post({responseTransformer:h,url:"/staking/stakes/searchStakeEvents/v0",...e,headers:{"Content-Type":"application/json",...e?.headers}}),_=e=>(e.client??t).get({responseTransformer:P,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:V,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:E,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}}),oe=e=>(e?.client??t).post({url:"/stakingTemplates/reputation/v0/partialUnstake",...e,headers:{"Content-Type":"application/json",...e?.headers}}),re=e=>(e?.client??t).post({url:"/stakingTemplates/reputation/v0/restake",...e,headers:{"Content-Type":"application/json",...e?.headers}}),ne=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}}),ae=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:O,url:"/stakingTemplates/reputationLock/v0/getCreatePoolEvent",...e}),ke=e=>(e?.client??t).post({url:"/stakingTemplates/reputationLock/v0/getReward",...e,headers:{"Content-Type":"application/json",...e?.headers}}),Se=e=>(e?.client??t).post({url:"/stakingTemplates/reputationLock/v0/partialUnstake",...e,headers:{"Content-Type":"application/json",...e?.headers}}),Te=e=>(e?.client??t).post({url:"/stakingTemplates/reputationLock/v0/restake",...e,headers:{"Content-Type":"application/json",...e?.headers}}),ue=e=>(e?.client??t).post({url:"/stakingTemplates/reputationLock/v0/stake",...e,headers:{"Content-Type":"application/json",...e?.headers}}),Re=e=>(e?.client??t).post({url:"/stakingTemplates/reputationLock/v0/unstake",...e,headers:{"Content-Type":"application/json",...e?.headers}}),ge=e=>(e?.client??t).post({url:"/stakingTemplates/reputationLock/v0/createPool",...e,headers:{"Content-Type":"application/json",...e?.headers}}),he=e=>(e?.client??t).post({url:"/stakingTemplates/reputationLock/v0/createPlatform",...e,headers:{"Content-Type":"application/json",...e?.headers}}),Pe=e=>(e.client??t).get({url:"/stakingTemplates/rwa/v0/getPlatformDeployEvent",...e}),me=e=>(e.client??t).get({responseTransformer:G,url:"/stakingTemplates/rwa/v0/getStakeEvent",...e}),Ve=e=>(e.client??t).get({responseTransformer:v,url:"/stakingTemplates/rwa/v0/getCreatePoolEvent",...e}),we=e=>(e?.client??t).post({url:"/stakingTemplates/rwa/v0/getReward",...e,headers:{"Content-Type":"application/json",...e?.headers}}),Ee=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}}),fe=e=>(e?.client??t).post({url:"/stakingTemplates/rwa/v0/stake",...e,headers:{"Content-Type":"application/json",...e?.headers}}),Oe=e=>(e?.client??t).post({url:"/stakingTemplates/rwa/v0/unstake",...e,headers:{"Content-Type":"application/json",...e?.headers}}),Ge=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}}),Fe=e=>(e?.client??t).post({url:"/stakingTemplates/rwa/v0/notifyRewards",...e,headers:{"Content-Type":"application/json",...e?.headers}}),ye=e=>(e.client??t).get({responseTransformer:y,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}}),xe=e=>(e.client??t).get({url:"/v0/fractions/markets/deployEvent",...e}),Ce=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}}),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}}),je=e=>(e?.client??t).post({url:"/v0/fractions/fractions/approveWrapperAsErc20Spender",...e,headers:{"Content-Type":"application/json",...e?.headers}}),Be=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:x,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/purchase/statistics",...e,headers:{"Content-Type":"application/json",...e?.headers}});var Ye=e=>(e?.client??t).post({url:"/v0/fractions/sales/withdrawPaymentToken",...e,headers:{"Content-Type":"application/json",...e?.headers}}),Ze=e=>(e?.client??t).post({url:"/v0/fractions/sales/receiveFundsAfterNonFunded",...e,headers:{"Content-Type":"application/json",...e?.headers}}),$e=e=>(e?.client??t).post({url:"/v0/fractions/sales/checkAndJumpToNonFunded",...e,headers:{"Content-Type":"application/json",...e?.headers}}),et=e=>(e?.client??t).post({url:"/v0/fractions/sales/receiveNonPurchasedWrappedAssets",...e,headers:{"Content-Type":"application/json",...e?.headers}}),tt=e=>(e?.client??t).post({url:"/v0/fractions/sales/vesting/editCliff",...e,headers:{"Content-Type":"application/json",...e?.headers}}),ot=e=>(e?.client??t).post({url:"/v0/fractions/sales/vesting/claim",...e,headers:{"Content-Type":"application/json",...e?.headers}}),rt=e=>(e?.client??t).post({url:"/v0/fractions/sales/vesting/claim/statistics",...e,headers:{"Content-Type":"application/json",...e?.headers}}),nt=e=>(e.client??t).get({responseTransformer:C,url:"/v0/fractions/sales/vesting/getClaimVestedTokensEvent",...e}),st=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/activity",...e,headers:{"Content-Type":"application/json",...e?.headers}}),pt=e=>(e?.client??t).post({url:"/v0/fractions/sales/statistics",...e,headers:{"Content-Type":"application/json",...e?.headers}}),it=e=>(e?.client??t).post({url:"/v0/fractions/sales/setFeeCapLimit",...e,headers:{"Content-Type":"application/json",...e?.headers}}),lt=e=>(e.client??t).get({responseTransformer:A,url:"/v0/fractions/sales/getWithdrawEvent",...e});var r=e=>(e?.client??t).post({url:"/v0/fractions/sig/nonce",...e,headers:{"Content-Type":"application/json",...e?.headers}}),n=e=>(e?.client??t).post({responseTransformer:b,url:"/v0/fractions/sig/authData",...e,headers:{"Content-Type":"application/json",...e?.headers}}),ct=e=>(e?.client??t).post({responseTransformer:L,url:"/general/estimateGas",...e,headers:{"Content-Type":"application/json",...e?.headers}}),kt=e=>(e.client??t).get({responseTransformer:W,url:"/general/balance",...e}),St=e=>(e?.client??t).post({responseTransformer:B,url:"/general/balances",...e,headers:{"Content-Type":"application/json",...e?.headers}}),Tt=e=>(e?.client??t).post({responseTransformer:N,url:"/general/searchBalances",...e,headers:{"Content-Type":"application/json",...e?.headers}}),s=e=>(e?.client??t).get({url:"/issuance/erc20",...e}),a=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}}),ut=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}}),gt=e=>(e?.client??t).post({url:"/issuance/erc20/grantRole",...e,headers:{"Content-Type":"application/json",...e?.headers}}),ht=e=>(e?.client??t).post({url:"/issuance/erc20/renounceRole",...e,headers:{"Content-Type":"application/json",...e?.headers}}),Pt=e=>(e?.client??t).post({url:"/issuance/proxy/deployTransparentProxy",...e,headers:{"Content-Type":"application/json",...e?.headers}}),mt=e=>(e?.client??t).get({url:"/issuance/proxy/deployProxyAdmin",...e}),Vt=e=>(e?.client??t).post({url:"/issuance/proxy/upgradeTransparentProxy",...e,headers:{"Content-Type":"application/json",...e?.headers}});var Jt={createClient:(e,o={})=>vt({baseUrl:e.env.baseUrl,...o,headers:{Authorization:e.apiKey,...o.headers}}),general:{searchBalances:Tt,getBalances:St,getBalance:kt,estimateGas:ct},stakingTemplates:{reputation:{createPlatform:pe,createPool:ae,getReward:te,partialUnstake:oe,restake:re,stake:ne,unstake:se,getCreatePoolEvent:ee,getPlatformDeployEvent:Z,getStakeEvent:$},reputationLock:{createPlatform:he,createPool:ge,getReward:ke,partialUnstake:Se,restake:Te,stake:ue,unstake:Re,getCreatePoolEvent:ce,getPlatformDeployEvent:ie,getStakeEvent:le},rwa:{createPlatform:ve,createPool:Ge,getReward:we,notifyRewards:Fe,partialUnstake:Ee,restake:de,stake:fe,unstake:Oe,getCreatePoolEvent:Ve,getPlatformDeployEvent:Pe,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:Ce,deployNidMarket:Ie,deployContinousWithdrawal:Ae,deployContinousWithdrawalNid:be,getMarketDeployedEvent:xe,search:De,get:ye,initCompilot:Le},roles:{grantRole:Ue,getRoles:Ne},sales:{createFractions:Me,approveSale:Ke,rejectSale:qe,recover:ze,completeSale:_e,purchaseSale:Qe,investorStatistics:Xe,activity:at,statistics:pt,withdrawPaymentToken:Ye,receiveFundsAfterNonFunded:Ze,getFractionsCreatedEvent:Je,search:st,getWithdrawEvent:lt,setFeeCapLimit:it,unlockWrappedAssets:He,checkAndJumpToNonFunded:$e,receiveNonPurchased:et,vesting:{claim:ot,claimStatistics:rt,getClaimVestedTokensEvent:nt,editCliff:tt}},approvals:{approveWrapper:We,approveWrapperToSpendErc20:je,approveWrapperToSpendErc721:Be},compilot:{getAuthData:n,getNonce:r,erc20:s,erc1967Proxy:i,erc20Mint:a,erc20Burn:p},issuance:{getAuthData:n,getNonce:r,erc20:s,erc1967Proxy:i,erc20Mint:a,erc20Burn:p,erc20Approve:ut,erc20Transfer:Rt,erc20GrantRole:gt,erc20RenounceRole:ht,proxy:{deployProxyAdmin:mt,deployTransparentUpgradeableProxy:Pt,upgradeProxy:Vt}}}};import{apiEnvs as Ft,getApiEnv as yt}from"@evergonlabs/tmi-protocol-shared/envs";var Ht=Ft,Qt=yt;function Yt(e){if(e.error)throw e.error;if(!e.data)throw new Error("No response provided from the API");return e.data}export{Jt as api,Ht as envs,Qt as getEnv,Yt as handleApiResponse};
1
+ import{createClient as Ft}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),k=async e=>(e=e.map(o=>l(o)),e),S=e=>(e.poolId=BigInt(e.poolId.toString()),e.createdAt=new Date(e.createdAt),e),T=async e=>(e=e.map(o=>S(o)),e),u=async e=>(e=S(e),e),R=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),h=async e=>(e=e.map(o=>R(o)),e),Et=e=>(e.poolId&&(e.poolId=BigInt(e.poolId.toString())),e.stakeId=BigInt(e.stakeId.toString()),e.createdAt=new Date(e.createdAt),e),g=async e=>(e=e.map(o=>Et(o)),e),P=async e=>(e=R(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),V=async e=>(e=e.map(o=>m(o)),e),w=async e=>(e=e.map(o=>m(o)),e),E=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),O=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),v=async e=>(e.poolId=BigInt(e.poolId.toString()),e),F=e=>(e.createdAt=new Date(e.createdAt),e.updatedAt=new Date(e.updatedAt),e),y=async e=>(e=F(e),e),D=async e=>(e=e.map(o=>F(o)),e),x=async e=>(e.nftId=BigInt(e.nftId.toString()),e.campaignId=BigInt(e.campaignId.toString()),e.fractionsCreated=BigInt(e.fractionsCreated.toString()),e),dt=e=>(e.timeline.startDate=new Date(e.timeline.startDate),e.timeline.endDate=new Date(e.timeline.endDate),e.vesting.cliffDate=new Date(e.vesting.cliffDate),e.wrappedAssets=e.wrappedAssets.map(o=>(o.wrappedAmount=BigInt(o.wrappedAmount.toString()),o)),e.fundingAssets=e.fundingAssets.map(o=>(o.amountPerPacket=BigInt(o.amountPerPacket.toString()),o)),e.createdAt=new Date(e.createdAt),e.updatedAt=new Date(e.updatedAt),e);var C=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(o=>dt(o)),e),A=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),ft=e=>(e.value=BigInt(e.value.toString()),e),L=async e=>(e=ft(e),e),W=async e=>(e.balance=BigInt(e.balance.toString()),e),j=e=>(e.tokenId&&(e.tokenId=BigInt(e.tokenId.toString())),e),B=async e=>(e=e.map(o=>j(o)),e),Ot=e=>(e.balances=e.balances.map(o=>j(o)),e),N=async e=>(e=Ot(e),e);import{createClient as Gt,createConfig as vt}from"@hey-api/client-fetch";var t=Gt(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:k,url:"/staking/platforms/search/v0",...e,headers:{"Content-Type":"application/json",...e?.headers}}),J=e=>(e?.client??t).post({responseTransformer:T,url:"/staking/pools/searchPools/v0",...e,headers:{"Content-Type":"application/json",...e?.headers}}),K=e=>(e.client??t).get({responseTransformer:u,url:"/staking/pools/getPool/v0",...e}),q=e=>(e?.client??t).post({responseTransformer:h,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:P,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:V,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:E,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}}),oe=e=>(e?.client??t).post({url:"/stakingTemplates/reputation/v0/partialUnstake",...e,headers:{"Content-Type":"application/json",...e?.headers}}),re=e=>(e?.client??t).post({url:"/stakingTemplates/reputation/v0/restake",...e,headers:{"Content-Type":"application/json",...e?.headers}}),ne=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}}),ae=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:O,url:"/stakingTemplates/reputationLock/v0/getCreatePoolEvent",...e}),ke=e=>(e?.client??t).post({url:"/stakingTemplates/reputationLock/v0/getReward",...e,headers:{"Content-Type":"application/json",...e?.headers}}),Se=e=>(e?.client??t).post({url:"/stakingTemplates/reputationLock/v0/partialUnstake",...e,headers:{"Content-Type":"application/json",...e?.headers}}),Te=e=>(e?.client??t).post({url:"/stakingTemplates/reputationLock/v0/restake",...e,headers:{"Content-Type":"application/json",...e?.headers}}),ue=e=>(e?.client??t).post({url:"/stakingTemplates/reputationLock/v0/stake",...e,headers:{"Content-Type":"application/json",...e?.headers}}),Re=e=>(e?.client??t).post({url:"/stakingTemplates/reputationLock/v0/unstake",...e,headers:{"Content-Type":"application/json",...e?.headers}}),he=e=>(e?.client??t).post({url:"/stakingTemplates/reputationLock/v0/createPool",...e,headers:{"Content-Type":"application/json",...e?.headers}}),ge=e=>(e?.client??t).post({url:"/stakingTemplates/reputationLock/v0/createPlatform",...e,headers:{"Content-Type":"application/json",...e?.headers}}),Pe=e=>(e.client??t).get({url:"/stakingTemplates/rwa/v0/getPlatformDeployEvent",...e}),me=e=>(e.client??t).get({responseTransformer:G,url:"/stakingTemplates/rwa/v0/getStakeEvent",...e}),Ve=e=>(e.client??t).get({responseTransformer:v,url:"/stakingTemplates/rwa/v0/getCreatePoolEvent",...e}),we=e=>(e?.client??t).post({url:"/stakingTemplates/rwa/v0/getReward",...e,headers:{"Content-Type":"application/json",...e?.headers}}),Ee=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}}),fe=e=>(e?.client??t).post({url:"/stakingTemplates/rwa/v0/stake",...e,headers:{"Content-Type":"application/json",...e?.headers}}),Oe=e=>(e?.client??t).post({url:"/stakingTemplates/rwa/v0/unstake",...e,headers:{"Content-Type":"application/json",...e?.headers}}),Ge=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}}),Fe=e=>(e?.client??t).post({url:"/stakingTemplates/rwa/v0/notifyRewards",...e,headers:{"Content-Type":"application/json",...e?.headers}}),ye=e=>(e.client??t).get({responseTransformer:y,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}}),xe=e=>(e.client??t).get({url:"/v0/fractions/markets/deployEvent",...e}),Ce=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}}),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}}),je=e=>(e?.client??t).post({url:"/v0/fractions/fractions/approveWrapperAsErc20Spender",...e,headers:{"Content-Type":"application/json",...e?.headers}}),Be=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:x,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/purchase/statistics",...e,headers:{"Content-Type":"application/json",...e?.headers}});var Ye=e=>(e?.client??t).post({url:"/v0/fractions/sales/withdrawPaymentToken",...e,headers:{"Content-Type":"application/json",...e?.headers}}),Ze=e=>(e?.client??t).post({url:"/v0/fractions/sales/receiveFundsAfterNonFunded",...e,headers:{"Content-Type":"application/json",...e?.headers}}),$e=e=>(e?.client??t).post({url:"/v0/fractions/sales/checkAndJumpToNonFunded",...e,headers:{"Content-Type":"application/json",...e?.headers}}),et=e=>(e?.client??t).post({url:"/v0/fractions/sales/receiveNonPurchasedWrappedAssets",...e,headers:{"Content-Type":"application/json",...e?.headers}}),tt=e=>(e?.client??t).post({url:"/v0/fractions/sales/vesting/editCliff",...e,headers:{"Content-Type":"application/json",...e?.headers}}),ot=e=>(e?.client??t).post({url:"/v0/fractions/sales/vesting/claim",...e,headers:{"Content-Type":"application/json",...e?.headers}}),rt=e=>(e?.client??t).post({url:"/v0/fractions/sales/vesting/claim/statistics",...e,headers:{"Content-Type":"application/json",...e?.headers}}),nt=e=>(e.client??t).get({responseTransformer:C,url:"/v0/fractions/sales/vesting/getClaimVestedTokensEvent",...e}),st=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/activity",...e,headers:{"Content-Type":"application/json",...e?.headers}}),pt=e=>(e?.client??t).post({url:"/v0/fractions/sales/statistics",...e,headers:{"Content-Type":"application/json",...e?.headers}}),it=e=>(e?.client??t).post({url:"/v0/fractions/sales/setFeeCapLimit",...e,headers:{"Content-Type":"application/json",...e?.headers}}),lt=e=>(e.client??t).get({responseTransformer:A,url:"/v0/fractions/sales/getWithdrawEvent",...e});var r=e=>(e?.client??t).post({url:"/v0/fractions/sig/nonce",...e,headers:{"Content-Type":"application/json",...e?.headers}}),n=e=>(e?.client??t).post({responseTransformer:b,url:"/v0/fractions/sig/authData",...e,headers:{"Content-Type":"application/json",...e?.headers}}),ct=e=>(e?.client??t).post({responseTransformer:L,url:"/general/estimateGas",...e,headers:{"Content-Type":"application/json",...e?.headers}}),kt=e=>(e.client??t).get({responseTransformer:W,url:"/general/balance",...e}),St=e=>(e?.client??t).post({responseTransformer:B,url:"/general/balances",...e,headers:{"Content-Type":"application/json",...e?.headers}}),Tt=e=>(e?.client??t).post({responseTransformer:N,url:"/general/searchBalances",...e,headers:{"Content-Type":"application/json",...e?.headers}}),s=e=>(e?.client??t).get({url:"/issuance/erc20",...e}),a=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}}),ut=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}}),ht=e=>(e?.client??t).post({url:"/issuance/erc20/grantRole",...e,headers:{"Content-Type":"application/json",...e?.headers}}),gt=e=>(e?.client??t).post({url:"/issuance/erc20/renounceRole",...e,headers:{"Content-Type":"application/json",...e?.headers}}),Pt=e=>(e?.client??t).post({url:"/issuance/erc20/getInitData",...e,headers:{"Content-Type":"application/json",...e?.headers}}),mt=e=>(e?.client??t).get({url:"/issuance/proxy/deployProxyAdmin",...e}),Vt=e=>(e?.client??t).post({url:"/issuance/proxy/deployTransparentProxy",...e,headers:{"Content-Type":"application/json",...e?.headers}}),wt=e=>(e?.client??t).post({url:"/issuance/proxy/upgradeTransparentProxy",...e,headers:{"Content-Type":"application/json",...e?.headers}});var Kt={createClient:(e,o={})=>Ft({baseUrl:e.env.baseUrl,...o,headers:{Authorization:e.apiKey,...o.headers}}),general:{searchBalances:Tt,getBalances:St,getBalance:kt,estimateGas:ct},stakingTemplates:{reputation:{createPlatform:pe,createPool:ae,getReward:te,partialUnstake:oe,restake:re,stake:ne,unstake:se,getCreatePoolEvent:ee,getPlatformDeployEvent:Z,getStakeEvent:$},reputationLock:{createPlatform:ge,createPool:he,getReward:ke,partialUnstake:Se,restake:Te,stake:ue,unstake:Re,getCreatePoolEvent:ce,getPlatformDeployEvent:ie,getStakeEvent:le},rwa:{createPlatform:ve,createPool:Ge,getReward:we,notifyRewards:Fe,partialUnstake:Ee,restake:de,stake:fe,unstake:Oe,getCreatePoolEvent:Ve,getPlatformDeployEvent:Pe,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:Ce,deployNidMarket:Ie,deployContinousWithdrawal:Ae,deployContinousWithdrawalNid:be,getMarketDeployedEvent:xe,search:De,get:ye,initCompilot:Le},roles:{grantRole:Ue,getRoles:Ne},sales:{createFractions:Me,approveSale:Ke,rejectSale:qe,recover:ze,completeSale:_e,purchaseSale:Qe,investorStatistics:Xe,activity:at,statistics:pt,withdrawPaymentToken:Ye,receiveFundsAfterNonFunded:Ze,getFractionsCreatedEvent:Je,search:st,getWithdrawEvent:lt,setFeeCapLimit:it,unlockWrappedAssets:He,checkAndJumpToNonFunded:$e,receiveNonPurchased:et,vesting:{claim:ot,claimStatistics:rt,getClaimVestedTokensEvent:nt,editCliff:tt}},approvals:{approveWrapper:We,approveWrapperToSpendErc20:je,approveWrapperToSpendErc721:Be},compilot:{getAuthData:n,getNonce:r,erc20:s,erc1967Proxy:i,erc20Mint:a,erc20Burn:p},issuance:{getAuthData:n,getNonce:r,erc20:s,erc1967Proxy:i,erc20Mint:a,erc20Burn:p,erc20Approve:ut,erc20Transfer:Rt,erc20GrantRole:ht,erc20RenounceRole:gt,erc20GetInitData:Pt,proxy:{deployProxyAdmin:mt,deployTransparentUpgradeableProxy:Vt,upgradeProxy:wt}}}};import{apiEnvs as yt,getApiEnv as Dt}from"@evergonlabs/tmi-protocol-shared/envs";var Qt=yt,Xt=Dt;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{Kt as api,Qt as envs,Xt as getEnv,Zt as handleApiResponse};
2
2
  //# sourceMappingURL=index.js.map