@evergonlabs/tmi-protocol-api-client 0.17.2 → 0.18.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +101 -5
- package/dist/index.d.ts +101 -5
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/package.json +3 -3
package/dist/index.d.cts
CHANGED
|
@@ -675,11 +675,18 @@ type FractionsActivity = {
|
|
|
675
675
|
purchaser: string;
|
|
676
676
|
priceId: string;
|
|
677
677
|
amountOfFractions: string;
|
|
678
|
+
amountPaid: string;
|
|
679
|
+
amountBurnt: string;
|
|
678
680
|
} | {
|
|
679
681
|
type: 'claim';
|
|
680
682
|
receiver: string;
|
|
681
|
-
|
|
682
|
-
|
|
683
|
+
claimId: string;
|
|
684
|
+
fractionsBurnt: string;
|
|
685
|
+
received: Array<{
|
|
686
|
+
tokenAddress: string;
|
|
687
|
+
amount: string;
|
|
688
|
+
tokenId: string;
|
|
689
|
+
}>;
|
|
683
690
|
} | {
|
|
684
691
|
type: 'refund';
|
|
685
692
|
amount: string;
|
|
@@ -688,7 +695,12 @@ type FractionsActivity = {
|
|
|
688
695
|
amount: string;
|
|
689
696
|
} | {
|
|
690
697
|
type: 'withdraw_non_wrapped';
|
|
691
|
-
|
|
698
|
+
receiver: string;
|
|
699
|
+
received: Array<{
|
|
700
|
+
tokenAddress: string;
|
|
701
|
+
amount: string;
|
|
702
|
+
tokenId: string;
|
|
703
|
+
}>;
|
|
692
704
|
};
|
|
693
705
|
};
|
|
694
706
|
type SetFeeCapLimitRequestSchema = {
|
|
@@ -758,6 +770,30 @@ type IssuanceDeployErc1967Schema = {
|
|
|
758
770
|
*/
|
|
759
771
|
args: Array<unknown>;
|
|
760
772
|
};
|
|
773
|
+
type IssuanceDeployTransparentProxySchema = {
|
|
774
|
+
/**
|
|
775
|
+
* Bytecode of the smartcontract
|
|
776
|
+
*/
|
|
777
|
+
bytecode: string;
|
|
778
|
+
/**
|
|
779
|
+
* ABI of a contract.
|
|
780
|
+
*/
|
|
781
|
+
abi: Array<unknown>;
|
|
782
|
+
/**
|
|
783
|
+
* Arguments for the transparent proxy initialization
|
|
784
|
+
*/
|
|
785
|
+
args: Array<unknown>;
|
|
786
|
+
};
|
|
787
|
+
type IssuanceDeployProxyAdminSchema = {
|
|
788
|
+
/**
|
|
789
|
+
* Bytecode of the smartcontract
|
|
790
|
+
*/
|
|
791
|
+
bytecode: string;
|
|
792
|
+
/**
|
|
793
|
+
* ABI of a contract.
|
|
794
|
+
*/
|
|
795
|
+
abi: Array<unknown>;
|
|
796
|
+
};
|
|
761
797
|
type GetStakingPlatformsGetV0Data = {
|
|
762
798
|
body?: never;
|
|
763
799
|
path?: never;
|
|
@@ -2861,8 +2897,68 @@ type PostIssuanceErc20RenounceRoleResponses = {
|
|
|
2861
2897
|
200: Transaction;
|
|
2862
2898
|
};
|
|
2863
2899
|
type PostIssuanceErc20RenounceRoleResponse = PostIssuanceErc20RenounceRoleResponses[keyof PostIssuanceErc20RenounceRoleResponses];
|
|
2900
|
+
type PostIssuanceProxyDeployTransparentProxyData = {
|
|
2901
|
+
body?: {
|
|
2902
|
+
implementation: string;
|
|
2903
|
+
proxyAdmin: string;
|
|
2904
|
+
data?: string;
|
|
2905
|
+
};
|
|
2906
|
+
path?: never;
|
|
2907
|
+
query?: never;
|
|
2908
|
+
url: '/issuance/proxy/deployTransparentProxy';
|
|
2909
|
+
};
|
|
2910
|
+
type PostIssuanceProxyDeployTransparentProxyResponses = {
|
|
2911
|
+
/**
|
|
2912
|
+
* Returns transaction data for deploying a TransparentUpgradeableProxy
|
|
2913
|
+
*/
|
|
2914
|
+
200: IssuanceDeployTransparentProxySchema;
|
|
2915
|
+
};
|
|
2916
|
+
type PostIssuanceProxyDeployTransparentProxyResponse = PostIssuanceProxyDeployTransparentProxyResponses[keyof PostIssuanceProxyDeployTransparentProxyResponses];
|
|
2917
|
+
type GetIssuanceProxyDeployProxyAdminData = {
|
|
2918
|
+
body?: never;
|
|
2919
|
+
path?: never;
|
|
2920
|
+
query?: never;
|
|
2921
|
+
url: '/issuance/proxy/deployProxyAdmin';
|
|
2922
|
+
};
|
|
2923
|
+
type GetIssuanceProxyDeployProxyAdminResponses = {
|
|
2924
|
+
/**
|
|
2925
|
+
* Returns transaction data for deploying a ProxyAdmin contract
|
|
2926
|
+
*/
|
|
2927
|
+
200: IssuanceDeployProxyAdminSchema;
|
|
2928
|
+
};
|
|
2929
|
+
type GetIssuanceProxyDeployProxyAdminResponse = GetIssuanceProxyDeployProxyAdminResponses[keyof GetIssuanceProxyDeployProxyAdminResponses];
|
|
2930
|
+
type PostIssuanceProxyUpgradeTransparentProxyData = {
|
|
2931
|
+
body?: {
|
|
2932
|
+
/**
|
|
2933
|
+
* The address of the ProxyAdmin contract that manages the proxy
|
|
2934
|
+
*/
|
|
2935
|
+
proxyAdminAddress: string;
|
|
2936
|
+
/**
|
|
2937
|
+
* The address of the transparent proxy contract to upgrade
|
|
2938
|
+
*/
|
|
2939
|
+
proxyAddress: string;
|
|
2940
|
+
/**
|
|
2941
|
+
* The address of the new implementation contract
|
|
2942
|
+
*/
|
|
2943
|
+
newImplementation: string;
|
|
2944
|
+
/**
|
|
2945
|
+
* Initialization data
|
|
2946
|
+
*/
|
|
2947
|
+
data?: string;
|
|
2948
|
+
};
|
|
2949
|
+
path?: never;
|
|
2950
|
+
query?: never;
|
|
2951
|
+
url: '/issuance/proxy/upgradeTransparentProxy';
|
|
2952
|
+
};
|
|
2953
|
+
type PostIssuanceProxyUpgradeTransparentProxyResponses = {
|
|
2954
|
+
/**
|
|
2955
|
+
* Returns transaction data for upgrading transparent proxy implementation via ProxyAdmin
|
|
2956
|
+
*/
|
|
2957
|
+
200: Transaction;
|
|
2958
|
+
};
|
|
2959
|
+
type PostIssuanceProxyUpgradeTransparentProxyResponse = PostIssuanceProxyUpgradeTransparentProxyResponses[keyof PostIssuanceProxyUpgradeTransparentProxyResponses];
|
|
2864
2960
|
type ClientOptions = {
|
|
2865
|
-
baseUrl: '
|
|
2961
|
+
baseUrl: 'https://protocol-api.tmi.evergonlabs.com/' | (string & {});
|
|
2866
2962
|
};
|
|
2867
2963
|
|
|
2868
2964
|
type Options<TData extends TDataShape = TDataShape, ThrowOnError extends boolean = boolean> = Options$1<TData, ThrowOnError> & {
|
|
@@ -3148,4 +3244,4 @@ type ApiResponse<T> = {
|
|
|
3148
3244
|
};
|
|
3149
3245
|
declare function handleApiResponse<T>(apiResponse: ApiResponse<T>): T;
|
|
3150
3246
|
|
|
3151
|
-
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 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 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 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 };
|
|
3247
|
+
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 };
|
package/dist/index.d.ts
CHANGED
|
@@ -675,11 +675,18 @@ type FractionsActivity = {
|
|
|
675
675
|
purchaser: string;
|
|
676
676
|
priceId: string;
|
|
677
677
|
amountOfFractions: string;
|
|
678
|
+
amountPaid: string;
|
|
679
|
+
amountBurnt: string;
|
|
678
680
|
} | {
|
|
679
681
|
type: 'claim';
|
|
680
682
|
receiver: string;
|
|
681
|
-
|
|
682
|
-
|
|
683
|
+
claimId: string;
|
|
684
|
+
fractionsBurnt: string;
|
|
685
|
+
received: Array<{
|
|
686
|
+
tokenAddress: string;
|
|
687
|
+
amount: string;
|
|
688
|
+
tokenId: string;
|
|
689
|
+
}>;
|
|
683
690
|
} | {
|
|
684
691
|
type: 'refund';
|
|
685
692
|
amount: string;
|
|
@@ -688,7 +695,12 @@ type FractionsActivity = {
|
|
|
688
695
|
amount: string;
|
|
689
696
|
} | {
|
|
690
697
|
type: 'withdraw_non_wrapped';
|
|
691
|
-
|
|
698
|
+
receiver: string;
|
|
699
|
+
received: Array<{
|
|
700
|
+
tokenAddress: string;
|
|
701
|
+
amount: string;
|
|
702
|
+
tokenId: string;
|
|
703
|
+
}>;
|
|
692
704
|
};
|
|
693
705
|
};
|
|
694
706
|
type SetFeeCapLimitRequestSchema = {
|
|
@@ -758,6 +770,30 @@ type IssuanceDeployErc1967Schema = {
|
|
|
758
770
|
*/
|
|
759
771
|
args: Array<unknown>;
|
|
760
772
|
};
|
|
773
|
+
type IssuanceDeployTransparentProxySchema = {
|
|
774
|
+
/**
|
|
775
|
+
* Bytecode of the smartcontract
|
|
776
|
+
*/
|
|
777
|
+
bytecode: string;
|
|
778
|
+
/**
|
|
779
|
+
* ABI of a contract.
|
|
780
|
+
*/
|
|
781
|
+
abi: Array<unknown>;
|
|
782
|
+
/**
|
|
783
|
+
* Arguments for the transparent proxy initialization
|
|
784
|
+
*/
|
|
785
|
+
args: Array<unknown>;
|
|
786
|
+
};
|
|
787
|
+
type IssuanceDeployProxyAdminSchema = {
|
|
788
|
+
/**
|
|
789
|
+
* Bytecode of the smartcontract
|
|
790
|
+
*/
|
|
791
|
+
bytecode: string;
|
|
792
|
+
/**
|
|
793
|
+
* ABI of a contract.
|
|
794
|
+
*/
|
|
795
|
+
abi: Array<unknown>;
|
|
796
|
+
};
|
|
761
797
|
type GetStakingPlatformsGetV0Data = {
|
|
762
798
|
body?: never;
|
|
763
799
|
path?: never;
|
|
@@ -2861,8 +2897,68 @@ type PostIssuanceErc20RenounceRoleResponses = {
|
|
|
2861
2897
|
200: Transaction;
|
|
2862
2898
|
};
|
|
2863
2899
|
type PostIssuanceErc20RenounceRoleResponse = PostIssuanceErc20RenounceRoleResponses[keyof PostIssuanceErc20RenounceRoleResponses];
|
|
2900
|
+
type PostIssuanceProxyDeployTransparentProxyData = {
|
|
2901
|
+
body?: {
|
|
2902
|
+
implementation: string;
|
|
2903
|
+
proxyAdmin: string;
|
|
2904
|
+
data?: string;
|
|
2905
|
+
};
|
|
2906
|
+
path?: never;
|
|
2907
|
+
query?: never;
|
|
2908
|
+
url: '/issuance/proxy/deployTransparentProxy';
|
|
2909
|
+
};
|
|
2910
|
+
type PostIssuanceProxyDeployTransparentProxyResponses = {
|
|
2911
|
+
/**
|
|
2912
|
+
* Returns transaction data for deploying a TransparentUpgradeableProxy
|
|
2913
|
+
*/
|
|
2914
|
+
200: IssuanceDeployTransparentProxySchema;
|
|
2915
|
+
};
|
|
2916
|
+
type PostIssuanceProxyDeployTransparentProxyResponse = PostIssuanceProxyDeployTransparentProxyResponses[keyof PostIssuanceProxyDeployTransparentProxyResponses];
|
|
2917
|
+
type GetIssuanceProxyDeployProxyAdminData = {
|
|
2918
|
+
body?: never;
|
|
2919
|
+
path?: never;
|
|
2920
|
+
query?: never;
|
|
2921
|
+
url: '/issuance/proxy/deployProxyAdmin';
|
|
2922
|
+
};
|
|
2923
|
+
type GetIssuanceProxyDeployProxyAdminResponses = {
|
|
2924
|
+
/**
|
|
2925
|
+
* Returns transaction data for deploying a ProxyAdmin contract
|
|
2926
|
+
*/
|
|
2927
|
+
200: IssuanceDeployProxyAdminSchema;
|
|
2928
|
+
};
|
|
2929
|
+
type GetIssuanceProxyDeployProxyAdminResponse = GetIssuanceProxyDeployProxyAdminResponses[keyof GetIssuanceProxyDeployProxyAdminResponses];
|
|
2930
|
+
type PostIssuanceProxyUpgradeTransparentProxyData = {
|
|
2931
|
+
body?: {
|
|
2932
|
+
/**
|
|
2933
|
+
* The address of the ProxyAdmin contract that manages the proxy
|
|
2934
|
+
*/
|
|
2935
|
+
proxyAdminAddress: string;
|
|
2936
|
+
/**
|
|
2937
|
+
* The address of the transparent proxy contract to upgrade
|
|
2938
|
+
*/
|
|
2939
|
+
proxyAddress: string;
|
|
2940
|
+
/**
|
|
2941
|
+
* The address of the new implementation contract
|
|
2942
|
+
*/
|
|
2943
|
+
newImplementation: string;
|
|
2944
|
+
/**
|
|
2945
|
+
* Initialization data
|
|
2946
|
+
*/
|
|
2947
|
+
data?: string;
|
|
2948
|
+
};
|
|
2949
|
+
path?: never;
|
|
2950
|
+
query?: never;
|
|
2951
|
+
url: '/issuance/proxy/upgradeTransparentProxy';
|
|
2952
|
+
};
|
|
2953
|
+
type PostIssuanceProxyUpgradeTransparentProxyResponses = {
|
|
2954
|
+
/**
|
|
2955
|
+
* Returns transaction data for upgrading transparent proxy implementation via ProxyAdmin
|
|
2956
|
+
*/
|
|
2957
|
+
200: Transaction;
|
|
2958
|
+
};
|
|
2959
|
+
type PostIssuanceProxyUpgradeTransparentProxyResponse = PostIssuanceProxyUpgradeTransparentProxyResponses[keyof PostIssuanceProxyUpgradeTransparentProxyResponses];
|
|
2864
2960
|
type ClientOptions = {
|
|
2865
|
-
baseUrl: '
|
|
2961
|
+
baseUrl: 'https://protocol-api.tmi.evergonlabs.com/' | (string & {});
|
|
2866
2962
|
};
|
|
2867
2963
|
|
|
2868
2964
|
type Options<TData extends TDataShape = TDataShape, ThrowOnError extends boolean = boolean> = Options$1<TData, ThrowOnError> & {
|
|
@@ -3148,4 +3244,4 @@ type ApiResponse<T> = {
|
|
|
3148
3244
|
};
|
|
3149
3245
|
declare function handleApiResponse<T>(apiResponse: ApiResponse<T>): T;
|
|
3150
3246
|
|
|
3151
|
-
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 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 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 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 };
|
|
3247
|
+
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 };
|
package/dist/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
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),g=async e=>(e=e.map(o=>R(o)),e),mt=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=>mt(o)),e),m=async e=>(e=R(e),e),V=e=>(e.poolId&&(e.poolId=BigInt(e.poolId.toString())),e.createdAt=new Date(e.createdAt),e.updatedAt=new Date(e.updatedAt),e),P=async e=>(e=e.map(o=>V(o)),e),w=async e=>(e=e.map(o=>V(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),D=async e=>(e=F(e),e),y=async e=>(e=e.map(o=>F(o)),e),C=async e=>(e.nftId=BigInt(e.nftId.toString()),e.campaignId=BigInt(e.campaignId.toString()),e.fractionsCreated=BigInt(e.fractionsCreated.toString()),e),Vt=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 x=async e=>(e.campaignId=BigInt(e.campaignId.toString()),e.burnId=BigInt(e.burnId.toString()),e.nextBurnId=BigInt(e.nextBurnId.toString()),e.amountOfFractionsBurnt=BigInt(e.amountOfFractionsBurnt.toString()),e),I=async e=>(e=e.map(o=>Vt(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),Pt=e=>(e.value=BigInt(e.value.toString()),e),L=async e=>(e=Pt(e),e),W=async e=>(e.balance=BigInt(e.balance.toString()),e),B=e=>(e.tokenId&&(e.tokenId=BigInt(e.tokenId.toString())),e),j=async e=>(e=e.map(o=>B(o)),e),wt=e=>(e.balances=e.balances.map(o=>B(o)),e),N=async e=>(e=wt(e),e);import{createClient as Et,createConfig as dt}from"@hey-api/client-fetch";var t=Et(dt({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: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:m,url:"/staking/stakes/getStake/v0",...e}),H=e=>(e?.client??t).get({url:"/staking/roles/getRoles/v0",...e}),Q=e=>(e?.client??t).post({url:"/staking/roles/grantRole/v0",...e,headers:{"Content-Type":"application/json",...e?.headers}}),X=e=>(e?.client??t).post({responseTransformer:P,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}}),se=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}}),re=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}}),me=e=>(e.client??t).get({url:"/stakingTemplates/rwa/v0/getPlatformDeployEvent",...e}),Ve=e=>(e.client??t).get({responseTransformer:G,url:"/stakingTemplates/rwa/v0/getStakeEvent",...e}),Pe=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}}),De=e=>(e.client??t).get({responseTransformer:D,url:"/v0/fractions/markets/get",...e}),ye=e=>(e?.client??t).post({responseTransformer:y,url:"/v0/fractions/markets/search",...e,headers:{"Content-Type":"application/json",...e?.headers}}),Ce=e=>(e.client??t).get({url:"/v0/fractions/markets/deployEvent",...e}),xe=e=>(e?.client??t).post({url:"/v0/fractions/platforms/deploy",...e,headers:{"Content-Type":"application/json",...e?.headers}}),Ie=e=>(e?.client??t).post({url:"/v0/fractions/platforms/deployNid",...e,headers:{"Content-Type":"application/json",...e?.headers}}),Ae=e=>(e?.client??t).post({url:"/v0/fractions/platforms/deployContinuousWithdraw",...e,headers:{"Content-Type":"application/json",...e?.headers}}),be=e=>(e?.client??t).post({url:"/v0/fractions/platforms/deployContinuousWithdrawNid",...e,headers:{"Content-Type":"application/json",...e?.headers}}),Le=e=>(e.client??t).get({url:"/v0/fractions/platforms/initCompilot",...e}),We=e=>(e?.client??t).post({url:"/v0/fractions/fractions/approveWrapper",...e,headers:{"Content-Type":"application/json",...e?.headers}}),Be=e=>(e?.client??t).post({url:"/v0/fractions/fractions/approveWrapperAsErc20Spender",...e,headers:{"Content-Type":"application/json",...e?.headers}}),je=e=>(e?.client??t).post({url:"/v0/fractions/fractions/approveWrapperAsErc721Spender",...e,headers:{"Content-Type":"application/json",...e?.headers}}),Ne=e=>(e?.client??t).get({url:"/v0/fractions/roles",...e}),Ue=e=>(e?.client??t).post({url:"/v0/fractions/roles/grant",...e,headers:{"Content-Type":"application/json",...e?.headers}}),Me=e=>(e?.client??t).post({url:"/v0/fractions/sales/fractions",...e,headers:{"Content-Type":"application/json",...e?.headers}}),Je=e=>(e.client??t).get({responseTransformer:C,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}}),st=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:x,url:"/v0/fractions/sales/vesting/getClaimVestedTokensEvent",...e}),rt=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 s=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:j,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}}),r=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}});var Nt={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:se,stake:ne,unstake:re,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:Pe,getPlatformDeployEvent:me,getStakeEvent:Ve}},staking:{roles:{getRoles:H,grantRole:Q,searchRoles:X,searchRoleEvents:Y},stakes:{getStake:_,searchStakes:q,searchStakeEvents:z},pools:{getPool:K,searchPools:J},platforms:{getPlatform:U,searchPlatforms:M}},fractions:{market:{deployMarket:xe,deployNidMarket:Ie,deployContinousWithdrawal:Ae,deployContinousWithdrawalNid:be,getMarketDeployedEvent:Ce,search:ye,get:De,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:rt,getWithdrawEvent:lt,setFeeCapLimit:it,unlockWrappedAssets:He,checkAndJumpToNonFunded:$e,receiveNonPurchased:et,vesting:{claim:ot,claimStatistics:st,getClaimVestedTokensEvent:nt,editCliff:tt}},approvals:{approveWrapper:We,approveWrapperToSpendErc20:Be,approveWrapperToSpendErc721:je},compilot:{getAuthData:n,getNonce:s,erc20:r,erc1967Proxy:i,erc20Mint:a,erc20Burn:p},issuance:{getAuthData:n,getNonce:s,erc20:r,erc1967Proxy:i,erc20Mint:a,erc20Burn:p,erc20Approve:ut,erc20Transfer:Rt,erc20GrantRole:gt,erc20RenounceRole:ht}}};import{apiEnvs as Ot,getApiEnv as Gt}from"@evergonlabs/tmi-protocol-shared/envs";var qt=Ot,zt=Gt;function Ht(e){if(e.error)throw e.error;if(!e.data)throw new Error("No response provided from the API");return e.data}export{Nt as api,qt as envs,zt as getEnv,Ht 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),g=async e=>(e=e.map(o=>R(o)),e),mt=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=>mt(o)),e),m=async e=>(e=R(e),e),P=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=>P(o)),e),w=async e=>(e=e.map(o=>P(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),Pt=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=>Pt(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),Vt=e=>(e.value=BigInt(e.value.toString()),e),L=async e=>(e=Vt(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),wt=e=>(e.balances=e.balances.map(o=>j(o)),e),N=async e=>(e=wt(e),e);import{createClient as Et,createConfig as dt}from"@hey-api/client-fetch";var t=Et(dt({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:m,url:"/staking/stakes/getStake/v0",...e}),H=e=>(e?.client??t).get({url:"/staking/roles/getRoles/v0",...e}),Q=e=>(e?.client??t).post({url:"/staking/roles/grantRole/v0",...e,headers:{"Content-Type":"application/json",...e?.headers}}),X=e=>(e?.client??t).post({responseTransformer: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}}),me=e=>(e.client??t).get({url:"/stakingTemplates/rwa/v0/getPlatformDeployEvent",...e}),Pe=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}});var Nt={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: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:me,getStakeEvent:Pe}},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}}};import{apiEnvs as Ot,getApiEnv as Gt}from"@evergonlabs/tmi-protocol-shared/envs";var qt=Ot,zt=Gt;function Ht(e){if(e.error)throw e.error;if(!e.data)throw new Error("No response provided from the API");return e.data}export{Nt as api,qt as envs,zt as getEnv,Ht as handleApiResponse};
|
|
2
2
|
//# sourceMappingURL=index.js.map
|