@evergonlabs/tmi-protocol-api-client 0.11.0 → 0.13.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 +109 -50
- package/dist/index.d.ts +109 -50
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -6,7 +6,7 @@ type Platform = {
|
|
|
6
6
|
/**
|
|
7
7
|
* Supported chain id
|
|
8
8
|
*/
|
|
9
|
-
chainId: '11155111' | '31337';
|
|
9
|
+
chainId: '11155111' | '72080' | '31337';
|
|
10
10
|
/**
|
|
11
11
|
* Transaction hash
|
|
12
12
|
*/
|
|
@@ -118,7 +118,7 @@ type StakeEvent = {
|
|
|
118
118
|
/**
|
|
119
119
|
* Supported chain id
|
|
120
120
|
*/
|
|
121
|
-
chainId: '11155111' | '31337';
|
|
121
|
+
chainId: '11155111' | '72080' | '31337';
|
|
122
122
|
/**
|
|
123
123
|
* Address of deployed Platform contract
|
|
124
124
|
*/
|
|
@@ -344,9 +344,9 @@ type LockMultInterval = Array<[
|
|
|
344
344
|
]>;
|
|
345
345
|
type DeployMarketRequestSchema = {
|
|
346
346
|
/**
|
|
347
|
-
*
|
|
347
|
+
* Supported chain id
|
|
348
348
|
*/
|
|
349
|
-
chainId: '72080' | '
|
|
349
|
+
chainId: '11155111' | '72080' | '31337';
|
|
350
350
|
adminAddress: string;
|
|
351
351
|
discount?: {
|
|
352
352
|
burnForDiscount: {
|
|
@@ -377,7 +377,7 @@ type GrantMarketRoleRequestSchema = {
|
|
|
377
377
|
/**
|
|
378
378
|
* Supported chain id
|
|
379
379
|
*/
|
|
380
|
-
chainId: '11155111' | '31337';
|
|
380
|
+
chainId: '11155111' | '72080' | '31337';
|
|
381
381
|
marketAddress: string;
|
|
382
382
|
users: Array<string>;
|
|
383
383
|
role: 'ISSUER' | 'INVESTOR';
|
|
@@ -386,7 +386,7 @@ type CreateFractionsRequestSchema = {
|
|
|
386
386
|
/**
|
|
387
387
|
* Supported chain id
|
|
388
388
|
*/
|
|
389
|
-
chainId: '11155111' | '31337';
|
|
389
|
+
chainId: '11155111' | '72080' | '31337';
|
|
390
390
|
market: string;
|
|
391
391
|
fractions: {
|
|
392
392
|
/**
|
|
@@ -462,7 +462,7 @@ type PurchaseRequestSchema = {
|
|
|
462
462
|
/**
|
|
463
463
|
* Supported chain id
|
|
464
464
|
*/
|
|
465
|
-
chainId: '11155111' | '31337';
|
|
465
|
+
chainId: '11155111' | '72080' | '31337';
|
|
466
466
|
market: unknown;
|
|
467
467
|
campaignId: bigint;
|
|
468
468
|
amountToBuy: bigint;
|
|
@@ -494,7 +494,7 @@ type NonceRequestSchema = {
|
|
|
494
494
|
/**
|
|
495
495
|
* Supported chain id
|
|
496
496
|
*/
|
|
497
|
-
chainId: '11155111' | '31337';
|
|
497
|
+
chainId: '11155111' | '72080' | '31337';
|
|
498
498
|
};
|
|
499
499
|
type TxAuthDataRequestSchema = {
|
|
500
500
|
marketAddress: string;
|
|
@@ -502,7 +502,7 @@ type TxAuthDataRequestSchema = {
|
|
|
502
502
|
/**
|
|
503
503
|
* Supported chain id
|
|
504
504
|
*/
|
|
505
|
-
chainId: '11155111' | '31337';
|
|
505
|
+
chainId: '11155111' | '72080' | '31337';
|
|
506
506
|
nonce: bigint;
|
|
507
507
|
blockExpiration: bigint;
|
|
508
508
|
callData: unknown;
|
|
@@ -529,6 +529,27 @@ type BalancesResponseSchema = {
|
|
|
529
529
|
totalPages: number;
|
|
530
530
|
pageNumber: number;
|
|
531
531
|
};
|
|
532
|
+
type IssuanceDeployErc20Schema = {
|
|
533
|
+
bytecode: string;
|
|
534
|
+
/**
|
|
535
|
+
* ABI of a contract.
|
|
536
|
+
*/
|
|
537
|
+
abi: Array<unknown>;
|
|
538
|
+
};
|
|
539
|
+
type IssuanceDeployErc1967Schema = {
|
|
540
|
+
/**
|
|
541
|
+
* Bytecode of the smartcontract
|
|
542
|
+
*/
|
|
543
|
+
bytecode: string;
|
|
544
|
+
/**
|
|
545
|
+
* ABI of a contract.
|
|
546
|
+
*/
|
|
547
|
+
abi: Array<unknown>;
|
|
548
|
+
/**
|
|
549
|
+
* Arguments for the proxy initialization
|
|
550
|
+
*/
|
|
551
|
+
args: Array<unknown>;
|
|
552
|
+
};
|
|
532
553
|
type GetStakingPlatformsGetV0Data = {
|
|
533
554
|
body?: never;
|
|
534
555
|
path?: never;
|
|
@@ -1979,7 +2000,7 @@ type GetV0FractionsMarketsGetData = {
|
|
|
1979
2000
|
/**
|
|
1980
2001
|
* Supported chain id
|
|
1981
2002
|
*/
|
|
1982
|
-
chainId: '11155111' | '31337';
|
|
2003
|
+
chainId: '11155111' | '72080' | '31337';
|
|
1983
2004
|
/**
|
|
1984
2005
|
* Address of deployed Platform contract
|
|
1985
2006
|
*/
|
|
@@ -2016,7 +2037,7 @@ type PostV0FractionsMarketsSearchData = {
|
|
|
2016
2037
|
/**
|
|
2017
2038
|
* Supported chain id
|
|
2018
2039
|
*/
|
|
2019
|
-
chainId?: '11155111' | '31337';
|
|
2040
|
+
chainId?: '11155111' | '72080' | '31337';
|
|
2020
2041
|
owner?: string;
|
|
2021
2042
|
};
|
|
2022
2043
|
};
|
|
@@ -2072,7 +2093,24 @@ type GetV0FractionsMarketsDeployEventResponses = {
|
|
|
2072
2093
|
};
|
|
2073
2094
|
type GetV0FractionsMarketsDeployEventResponse = GetV0FractionsMarketsDeployEventResponses[keyof GetV0FractionsMarketsDeployEventResponses];
|
|
2074
2095
|
type PostV0FractionsPlatformsDeployData = {
|
|
2075
|
-
body?:
|
|
2096
|
+
body?: {
|
|
2097
|
+
/**
|
|
2098
|
+
* Supported chain id
|
|
2099
|
+
*/
|
|
2100
|
+
chainId: '11155111' | '72080' | '31337';
|
|
2101
|
+
adminAddress: string;
|
|
2102
|
+
discount?: {
|
|
2103
|
+
burnForDiscount: {
|
|
2104
|
+
burnableTokenAddress: string;
|
|
2105
|
+
};
|
|
2106
|
+
};
|
|
2107
|
+
cap?: {
|
|
2108
|
+
maxHardCap: bigint;
|
|
2109
|
+
};
|
|
2110
|
+
fee?: {
|
|
2111
|
+
percent: number;
|
|
2112
|
+
};
|
|
2113
|
+
};
|
|
2076
2114
|
path?: never;
|
|
2077
2115
|
query?: never;
|
|
2078
2116
|
url: '/v0/fractions/platforms/deploy';
|
|
@@ -2429,6 +2467,44 @@ type PostV0FractionsSalesVestingClaimResponses = {
|
|
|
2429
2467
|
200: Transaction;
|
|
2430
2468
|
};
|
|
2431
2469
|
type PostV0FractionsSalesVestingClaimResponse = PostV0FractionsSalesVestingClaimResponses[keyof PostV0FractionsSalesVestingClaimResponses];
|
|
2470
|
+
type GetV0FractionsSalesVestingGetClaimVestedTokensEventData = {
|
|
2471
|
+
body?: never;
|
|
2472
|
+
path?: never;
|
|
2473
|
+
query: {
|
|
2474
|
+
/**
|
|
2475
|
+
* Supported chain id
|
|
2476
|
+
*/
|
|
2477
|
+
chainId: '11155111' | '31337';
|
|
2478
|
+
/**
|
|
2479
|
+
* Transaction hash
|
|
2480
|
+
*/
|
|
2481
|
+
hash: string;
|
|
2482
|
+
};
|
|
2483
|
+
url: '/v0/fractions/sales/vesting/getClaimVestedTokensEvent';
|
|
2484
|
+
};
|
|
2485
|
+
type GetV0FractionsSalesVestingGetClaimVestedTokensEventErrors = {
|
|
2486
|
+
/**
|
|
2487
|
+
* Zod Error
|
|
2488
|
+
*/
|
|
2489
|
+
400: ZodError;
|
|
2490
|
+
};
|
|
2491
|
+
type GetV0FractionsSalesVestingGetClaimVestedTokensEventError = GetV0FractionsSalesVestingGetClaimVestedTokensEventErrors[keyof GetV0FractionsSalesVestingGetClaimVestedTokensEventErrors];
|
|
2492
|
+
type GetV0FractionsSalesVestingGetClaimVestedTokensEventResponses = {
|
|
2493
|
+
/**
|
|
2494
|
+
* Returns parsed event log
|
|
2495
|
+
*/
|
|
2496
|
+
200: {
|
|
2497
|
+
/**
|
|
2498
|
+
* Id of a Sale
|
|
2499
|
+
*/
|
|
2500
|
+
campaignId: bigint;
|
|
2501
|
+
receiver: string;
|
|
2502
|
+
burnId: bigint;
|
|
2503
|
+
nextBurnId: bigint;
|
|
2504
|
+
amountOfFractionsBurnt: bigint;
|
|
2505
|
+
};
|
|
2506
|
+
};
|
|
2507
|
+
type GetV0FractionsSalesVestingGetClaimVestedTokensEventResponse = GetV0FractionsSalesVestingGetClaimVestedTokensEventResponses[keyof GetV0FractionsSalesVestingGetClaimVestedTokensEventResponses];
|
|
2432
2508
|
type PostV0FractionsSalesSearchData = {
|
|
2433
2509
|
body?: {
|
|
2434
2510
|
page: PageRequest;
|
|
@@ -2436,7 +2512,7 @@ type PostV0FractionsSalesSearchData = {
|
|
|
2436
2512
|
/**
|
|
2437
2513
|
* Supported chain id
|
|
2438
2514
|
*/
|
|
2439
|
-
chainId?: '11155111' | '31337';
|
|
2515
|
+
chainId?: '11155111' | '72080' | '31337';
|
|
2440
2516
|
owner?: string;
|
|
2441
2517
|
/**
|
|
2442
2518
|
* Address of deployed Platform contract
|
|
@@ -2545,7 +2621,7 @@ type PostV0FractionsSigNonceResponses = {
|
|
|
2545
2621
|
/**
|
|
2546
2622
|
* Supported chain id
|
|
2547
2623
|
*/
|
|
2548
|
-
chainId: '11155111' | '31337';
|
|
2624
|
+
chainId: '11155111' | '72080' | '31337';
|
|
2549
2625
|
};
|
|
2550
2626
|
};
|
|
2551
2627
|
type PostV0FractionsSigNonceResponse = PostV0FractionsSigNonceResponses[keyof PostV0FractionsSigNonceResponses];
|
|
@@ -2572,7 +2648,7 @@ type PostV0FractionsSigAuthDataResponses = {
|
|
|
2572
2648
|
/**
|
|
2573
2649
|
* Supported chain id
|
|
2574
2650
|
*/
|
|
2575
|
-
chainId: '11155111' | '31337';
|
|
2651
|
+
chainId: '11155111' | '72080' | '31337';
|
|
2576
2652
|
nonce: bigint;
|
|
2577
2653
|
blockExpiration: bigint;
|
|
2578
2654
|
callData: unknown;
|
|
@@ -2715,13 +2791,7 @@ type GetIssuanceErc20Responses = {
|
|
|
2715
2791
|
/**
|
|
2716
2792
|
* Returns transaction data for deploying a gated ERC20
|
|
2717
2793
|
*/
|
|
2718
|
-
200:
|
|
2719
|
-
bytecode: unknown;
|
|
2720
|
-
/**
|
|
2721
|
-
* ABI of a contract.
|
|
2722
|
-
*/
|
|
2723
|
-
abi: Array<unknown>;
|
|
2724
|
-
};
|
|
2794
|
+
200: IssuanceDeployErc20Schema;
|
|
2725
2795
|
};
|
|
2726
2796
|
type GetIssuanceErc20Response = GetIssuanceErc20Responses[keyof GetIssuanceErc20Responses];
|
|
2727
2797
|
type PostIssuanceErc20MintData = {
|
|
@@ -2844,13 +2914,7 @@ type PostIssuanceErc20ProxyResponses = {
|
|
|
2844
2914
|
/**
|
|
2845
2915
|
* Returns transaction data for deploying a ERC1967Proxy
|
|
2846
2916
|
*/
|
|
2847
|
-
200:
|
|
2848
|
-
bytecode: unknown;
|
|
2849
|
-
/**
|
|
2850
|
-
* ABI of a contract.
|
|
2851
|
-
*/
|
|
2852
|
-
abi: Array<unknown>;
|
|
2853
|
-
};
|
|
2917
|
+
200: IssuanceDeployErc1967Schema;
|
|
2854
2918
|
};
|
|
2855
2919
|
type PostIssuanceErc20ProxyResponse = PostIssuanceErc20ProxyResponses[keyof PostIssuanceErc20ProxyResponses];
|
|
2856
2920
|
type PostIssuanceErc20GrantRoleData = {
|
|
@@ -3070,6 +3134,13 @@ declare const api: {
|
|
|
3070
3134
|
setFeeCapLimit: <ThrowOnError extends boolean = false>(options?: Options<PostV0FractionsSalesSetFeeCapLimitData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<Transaction, ZodError, ThrowOnError>;
|
|
3071
3135
|
vesting: {
|
|
3072
3136
|
claim: <ThrowOnError extends boolean = false>(options?: Options<PostV0FractionsSalesVestingClaimData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<Transaction, ZodError, ThrowOnError>;
|
|
3137
|
+
getClaimVestedTokensEvent: <ThrowOnError extends boolean = false>(options: Options<GetV0FractionsSalesVestingGetClaimVestedTokensEventData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<{
|
|
3138
|
+
campaignId: bigint;
|
|
3139
|
+
receiver: string;
|
|
3140
|
+
burnId: bigint;
|
|
3141
|
+
nextBurnId: bigint;
|
|
3142
|
+
amountOfFractionsBurnt: bigint;
|
|
3143
|
+
}, ZodError, ThrowOnError>;
|
|
3073
3144
|
editCliff: <ThrowOnError extends boolean = false>(options?: Options<PostV0FractionsSalesVestingEditCliffData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<Transaction, ZodError, ThrowOnError>;
|
|
3074
3145
|
};
|
|
3075
3146
|
};
|
|
@@ -3082,7 +3153,7 @@ declare const api: {
|
|
|
3082
3153
|
getAuthData: <ThrowOnError extends boolean = false>(options?: Options<PostV0FractionsSigAuthDataData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<{
|
|
3083
3154
|
marketAddress: string;
|
|
3084
3155
|
userAddress: string;
|
|
3085
|
-
chainId: "11155111" | "31337";
|
|
3156
|
+
chainId: "11155111" | "72080" | "31337";
|
|
3086
3157
|
nonce: bigint;
|
|
3087
3158
|
blockExpiration: bigint;
|
|
3088
3159
|
callData: unknown;
|
|
@@ -3090,16 +3161,10 @@ declare const api: {
|
|
|
3090
3161
|
getNonce: <ThrowOnError extends boolean = false>(options?: Options<PostV0FractionsSigNonceData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<{
|
|
3091
3162
|
marketAddress: string;
|
|
3092
3163
|
userAddress: string;
|
|
3093
|
-
chainId: "11155111" | "31337";
|
|
3094
|
-
}, ZodError, ThrowOnError>;
|
|
3095
|
-
erc20: <ThrowOnError extends boolean = false>(options?: Options<GetIssuanceErc20Data, ThrowOnError>) => _hey_api_client_fetch.RequestResult<{
|
|
3096
|
-
bytecode: unknown;
|
|
3097
|
-
abi: Array<unknown>;
|
|
3098
|
-
}, ZodError, ThrowOnError>;
|
|
3099
|
-
erc1967Proxy: <ThrowOnError extends boolean = false>(options?: Options<PostIssuanceErc20ProxyData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<{
|
|
3100
|
-
bytecode: unknown;
|
|
3101
|
-
abi: Array<unknown>;
|
|
3164
|
+
chainId: "11155111" | "72080" | "31337";
|
|
3102
3165
|
}, ZodError, ThrowOnError>;
|
|
3166
|
+
erc20: <ThrowOnError extends boolean = false>(options?: Options<GetIssuanceErc20Data, ThrowOnError>) => _hey_api_client_fetch.RequestResult<IssuanceDeployErc20Schema, ZodError, ThrowOnError>;
|
|
3167
|
+
erc1967Proxy: <ThrowOnError extends boolean = false>(options?: Options<PostIssuanceErc20ProxyData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<IssuanceDeployErc1967Schema, ZodError, ThrowOnError>;
|
|
3103
3168
|
erc20Mint: <ThrowOnError extends boolean = false>(options?: Options<PostIssuanceErc20MintData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<Transaction, ZodError, ThrowOnError>;
|
|
3104
3169
|
erc20Burn: <ThrowOnError extends boolean = false>(options?: Options<PostIssuanceErc20BurnData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<Transaction, ZodError, ThrowOnError>;
|
|
3105
3170
|
};
|
|
@@ -3107,7 +3172,7 @@ declare const api: {
|
|
|
3107
3172
|
getAuthData: <ThrowOnError extends boolean = false>(options?: Options<PostV0FractionsSigAuthDataData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<{
|
|
3108
3173
|
marketAddress: string;
|
|
3109
3174
|
userAddress: string;
|
|
3110
|
-
chainId: "11155111" | "31337";
|
|
3175
|
+
chainId: "11155111" | "72080" | "31337";
|
|
3111
3176
|
nonce: bigint;
|
|
3112
3177
|
blockExpiration: bigint;
|
|
3113
3178
|
callData: unknown;
|
|
@@ -3115,16 +3180,10 @@ declare const api: {
|
|
|
3115
3180
|
getNonce: <ThrowOnError extends boolean = false>(options?: Options<PostV0FractionsSigNonceData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<{
|
|
3116
3181
|
marketAddress: string;
|
|
3117
3182
|
userAddress: string;
|
|
3118
|
-
chainId: "11155111" | "31337";
|
|
3119
|
-
}, ZodError, ThrowOnError>;
|
|
3120
|
-
erc20: <ThrowOnError extends boolean = false>(options?: Options<GetIssuanceErc20Data, ThrowOnError>) => _hey_api_client_fetch.RequestResult<{
|
|
3121
|
-
bytecode: unknown;
|
|
3122
|
-
abi: Array<unknown>;
|
|
3123
|
-
}, ZodError, ThrowOnError>;
|
|
3124
|
-
erc1967Proxy: <ThrowOnError extends boolean = false>(options?: Options<PostIssuanceErc20ProxyData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<{
|
|
3125
|
-
bytecode: unknown;
|
|
3126
|
-
abi: Array<unknown>;
|
|
3183
|
+
chainId: "11155111" | "72080" | "31337";
|
|
3127
3184
|
}, ZodError, ThrowOnError>;
|
|
3185
|
+
erc20: <ThrowOnError extends boolean = false>(options?: Options<GetIssuanceErc20Data, ThrowOnError>) => _hey_api_client_fetch.RequestResult<IssuanceDeployErc20Schema, ZodError, ThrowOnError>;
|
|
3186
|
+
erc1967Proxy: <ThrowOnError extends boolean = false>(options?: Options<PostIssuanceErc20ProxyData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<IssuanceDeployErc1967Schema, ZodError, ThrowOnError>;
|
|
3128
3187
|
erc20Mint: <ThrowOnError extends boolean = false>(options?: Options<PostIssuanceErc20MintData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<Transaction, ZodError, ThrowOnError>;
|
|
3129
3188
|
erc20Burn: <ThrowOnError extends boolean = false>(options?: Options<PostIssuanceErc20BurnData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<Transaction, ZodError, ThrowOnError>;
|
|
3130
3189
|
erc20Approve: <ThrowOnError extends boolean = false>(options?: Options<PostIssuanceErc20ApproveData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<Transaction, ZodError, ThrowOnError>;
|
|
@@ -3147,4 +3206,4 @@ type ApiResponse<T> = {
|
|
|
3147
3206
|
};
|
|
3148
3207
|
declare function handleApiResponse<T>(apiResponse: ApiResponse<T>): T;
|
|
3149
3208
|
|
|
3150
|
-
export { type AmountMultInterval, type AmountTwoBorder, type ApiClient, type ApiResponse, type ApproveErc20SpendingToWrapper, type ApproveErc721SpendingToWrapper, type ApproveSaleRequestSchema, type ApproveWrapperRequestSchema, type BalancesResponseSchema, type ClaimVestedTokensRequestSchema, type ClientOptions, type CompleteSaleRequestSchema, type CreateFractionsRequestSchema, type DeployMarketRequestSchema, type EditCliffRequestSchema, type Erc20Input, type Erc20Reward, type Erc721Meta, type EstimateGasResponse, type GetGeneralBalanceData, type GetGeneralBalanceError, type GetGeneralBalanceErrors, type GetGeneralBalanceResponse, type GetGeneralBalanceResponses, type GetIssuanceErc20Data, type GetIssuanceErc20Error, type GetIssuanceErc20Errors, type GetIssuanceErc20Response, type GetIssuanceErc20Responses, type GetStakingPlatformsGetV0Data, type GetStakingPlatformsGetV0Error, type GetStakingPlatformsGetV0Errors, type GetStakingPlatformsGetV0Response, type GetStakingPlatformsGetV0Responses, type GetStakingPoolsGetPoolV0Data, type GetStakingPoolsGetPoolV0Error, type GetStakingPoolsGetPoolV0Errors, type GetStakingPoolsGetPoolV0Response, type GetStakingPoolsGetPoolV0Responses, type GetStakingRolesGetRolesV0Data, type GetStakingRolesGetRolesV0Error, type GetStakingRolesGetRolesV0Errors, type GetStakingRolesGetRolesV0Response, type GetStakingRolesGetRolesV0Responses, type GetStakingStakesGetStakeV0Data, type GetStakingStakesGetStakeV0Error, type GetStakingStakesGetStakeV0Errors, type GetStakingStakesGetStakeV0Response, type GetStakingStakesGetStakeV0Responses, type GetStakingTemplatesReputationLockV0GetCreatePoolEventData, type GetStakingTemplatesReputationLockV0GetCreatePoolEventError, type GetStakingTemplatesReputationLockV0GetCreatePoolEventErrors, type GetStakingTemplatesReputationLockV0GetCreatePoolEventResponse, type GetStakingTemplatesReputationLockV0GetCreatePoolEventResponses, type GetStakingTemplatesReputationLockV0GetPlatformDeployEventData, type GetStakingTemplatesReputationLockV0GetPlatformDeployEventError, type GetStakingTemplatesReputationLockV0GetPlatformDeployEventErrors, type GetStakingTemplatesReputationLockV0GetPlatformDeployEventResponse, type GetStakingTemplatesReputationLockV0GetPlatformDeployEventResponses, type GetStakingTemplatesReputationLockV0GetStakeEventData, type GetStakingTemplatesReputationLockV0GetStakeEventError, type GetStakingTemplatesReputationLockV0GetStakeEventErrors, type GetStakingTemplatesReputationLockV0GetStakeEventResponse, type GetStakingTemplatesReputationLockV0GetStakeEventResponses, type GetStakingTemplatesReputationV0GetCreatePoolEventData, type GetStakingTemplatesReputationV0GetCreatePoolEventError, type GetStakingTemplatesReputationV0GetCreatePoolEventErrors, type GetStakingTemplatesReputationV0GetCreatePoolEventResponse, type GetStakingTemplatesReputationV0GetCreatePoolEventResponses, type GetStakingTemplatesReputationV0GetPlatformDeployEventData, type GetStakingTemplatesReputationV0GetPlatformDeployEventError, type GetStakingTemplatesReputationV0GetPlatformDeployEventErrors, type GetStakingTemplatesReputationV0GetPlatformDeployEventResponse, type GetStakingTemplatesReputationV0GetPlatformDeployEventResponses, type GetStakingTemplatesReputationV0GetStakeEventData, type GetStakingTemplatesReputationV0GetStakeEventError, type GetStakingTemplatesReputationV0GetStakeEventErrors, type GetStakingTemplatesReputationV0GetStakeEventResponse, type GetStakingTemplatesReputationV0GetStakeEventResponses, type GetStakingTemplatesRwaV0GetCreatePoolEventData, type GetStakingTemplatesRwaV0GetCreatePoolEventError, type GetStakingTemplatesRwaV0GetCreatePoolEventErrors, type GetStakingTemplatesRwaV0GetCreatePoolEventResponse, type GetStakingTemplatesRwaV0GetCreatePoolEventResponses, type GetStakingTemplatesRwaV0GetPlatformDeployEventData, type GetStakingTemplatesRwaV0GetPlatformDeployEventError, type GetStakingTemplatesRwaV0GetPlatformDeployEventErrors, type GetStakingTemplatesRwaV0GetPlatformDeployEventResponse, type GetStakingTemplatesRwaV0GetPlatformDeployEventResponses, type GetStakingTemplatesRwaV0GetStakeEventData, type GetStakingTemplatesRwaV0GetStakeEventError, type GetStakingTemplatesRwaV0GetStakeEventErrors, type GetStakingTemplatesRwaV0GetStakeEventResponse, type GetStakingTemplatesRwaV0GetStakeEventResponses, type GetV0FractionsMarketsDeployEventData, type GetV0FractionsMarketsDeployEventError, type GetV0FractionsMarketsDeployEventErrors, type GetV0FractionsMarketsDeployEventResponse, type GetV0FractionsMarketsDeployEventResponses, type GetV0FractionsMarketsGetData, type GetV0FractionsMarketsGetError, type GetV0FractionsMarketsGetErrors, type GetV0FractionsMarketsGetResponse, type GetV0FractionsMarketsGetResponses, type GetV0FractionsRolesData, type GetV0FractionsRolesError, type GetV0FractionsRolesErrors, type GetV0FractionsRolesResponse, type GetV0FractionsRolesResponses, type GetV0FractionsSalesGetFractionsCreatedEventData, type GetV0FractionsSalesGetFractionsCreatedEventError, type GetV0FractionsSalesGetFractionsCreatedEventErrors, type GetV0FractionsSalesGetFractionsCreatedEventResponse, type GetV0FractionsSalesGetFractionsCreatedEventResponses, type GetV0FractionsSalesGetWithdrawEventData, type GetV0FractionsSalesGetWithdrawEventError, type GetV0FractionsSalesGetWithdrawEventErrors, type GetV0FractionsSalesGetWithdrawEventResponse, type GetV0FractionsSalesGetWithdrawEventResponses, type GrantMarketRoleRequestSchema, type IApiConfig, type IEnv, type IEnvName, type LockMultInterval, type LockTwoBorder, type NonceRequestSchema, type PageRequest, type Platform, type Pool, type PostGeneralBalancesData, type PostGeneralBalancesError, type PostGeneralBalancesErrors, type PostGeneralBalancesResponse, type PostGeneralBalancesResponses, type PostGeneralEstimateGasData, type PostGeneralEstimateGasError, type PostGeneralEstimateGasErrors, type PostGeneralEstimateGasResponse, type PostGeneralEstimateGasResponses, type PostGeneralSearchBalancesData, type PostGeneralSearchBalancesError, type PostGeneralSearchBalancesErrors, type PostGeneralSearchBalancesResponse, type PostGeneralSearchBalancesResponses, type PostIssuanceErc20ApproveData, type PostIssuanceErc20ApproveError, type PostIssuanceErc20ApproveErrors, type PostIssuanceErc20ApproveResponse, type PostIssuanceErc20ApproveResponses, type PostIssuanceErc20BurnData, type PostIssuanceErc20BurnError, type PostIssuanceErc20BurnErrors, type PostIssuanceErc20BurnResponse, type PostIssuanceErc20BurnResponses, type PostIssuanceErc20GrantRoleData, type PostIssuanceErc20GrantRoleError, type PostIssuanceErc20GrantRoleErrors, type PostIssuanceErc20GrantRoleResponse, type PostIssuanceErc20GrantRoleResponses, type PostIssuanceErc20MintData, type PostIssuanceErc20MintError, type PostIssuanceErc20MintErrors, type PostIssuanceErc20MintResponse, type PostIssuanceErc20MintResponses, type PostIssuanceErc20ProxyData, type PostIssuanceErc20ProxyError, type PostIssuanceErc20ProxyErrors, type PostIssuanceErc20ProxyResponse, type PostIssuanceErc20ProxyResponses, type PostIssuanceErc20TransferData, type PostIssuanceErc20TransferError, type PostIssuanceErc20TransferErrors, type PostIssuanceErc20TransferResponse, type PostIssuanceErc20TransferResponses, type PostStakingPlatformsSearchV0Data, type PostStakingPlatformsSearchV0Error, type PostStakingPlatformsSearchV0Errors, type PostStakingPlatformsSearchV0Response, type PostStakingPlatformsSearchV0Responses, type PostStakingPoolsSearchPoolsV0Data, type PostStakingPoolsSearchPoolsV0Error, type PostStakingPoolsSearchPoolsV0Errors, type PostStakingPoolsSearchPoolsV0Response, type PostStakingPoolsSearchPoolsV0Responses, type PostStakingRolesGrantRoleV0Data, type PostStakingRolesGrantRoleV0Error, type PostStakingRolesGrantRoleV0Errors, type PostStakingRolesGrantRoleV0Response, type PostStakingRolesGrantRoleV0Responses, type PostStakingRolesSearchRoleEventsV0Data, type PostStakingRolesSearchRoleEventsV0Error, type PostStakingRolesSearchRoleEventsV0Errors, type PostStakingRolesSearchRoleEventsV0Response, type PostStakingRolesSearchRoleEventsV0Responses, type PostStakingRolesSearchRolesV0Data, type PostStakingRolesSearchRolesV0Error, type PostStakingRolesSearchRolesV0Errors, type PostStakingRolesSearchRolesV0Response, type PostStakingRolesSearchRolesV0Responses, type PostStakingStakesSearchStakeEventsV0Data, type PostStakingStakesSearchStakeEventsV0Error, type PostStakingStakesSearchStakeEventsV0Errors, type PostStakingStakesSearchStakeEventsV0Response, type PostStakingStakesSearchStakeEventsV0Responses, type PostStakingStakesSearchStakesV0Data, type PostStakingStakesSearchStakesV0Error, type PostStakingStakesSearchStakesV0Errors, type PostStakingStakesSearchStakesV0Response, type PostStakingStakesSearchStakesV0Responses, type PostStakingTemplatesReputationLockV0CreatePlatformData, type PostStakingTemplatesReputationLockV0CreatePlatformError, type PostStakingTemplatesReputationLockV0CreatePlatformErrors, type PostStakingTemplatesReputationLockV0CreatePlatformResponse, type PostStakingTemplatesReputationLockV0CreatePlatformResponses, type PostStakingTemplatesReputationLockV0CreatePoolData, type PostStakingTemplatesReputationLockV0CreatePoolError, type PostStakingTemplatesReputationLockV0CreatePoolErrors, type PostStakingTemplatesReputationLockV0CreatePoolResponse, type PostStakingTemplatesReputationLockV0CreatePoolResponses, type PostStakingTemplatesReputationLockV0GetRewardData, type PostStakingTemplatesReputationLockV0GetRewardError, type PostStakingTemplatesReputationLockV0GetRewardErrors, type PostStakingTemplatesReputationLockV0GetRewardResponse, type PostStakingTemplatesReputationLockV0GetRewardResponses, type PostStakingTemplatesReputationLockV0PartialUnstakeData, type PostStakingTemplatesReputationLockV0PartialUnstakeError, type PostStakingTemplatesReputationLockV0PartialUnstakeErrors, type PostStakingTemplatesReputationLockV0PartialUnstakeResponse, type PostStakingTemplatesReputationLockV0PartialUnstakeResponses, type PostStakingTemplatesReputationLockV0RestakeData, type PostStakingTemplatesReputationLockV0RestakeError, type PostStakingTemplatesReputationLockV0RestakeErrors, type PostStakingTemplatesReputationLockV0RestakeResponse, type PostStakingTemplatesReputationLockV0RestakeResponses, type PostStakingTemplatesReputationLockV0StakeData, type PostStakingTemplatesReputationLockV0StakeError, type PostStakingTemplatesReputationLockV0StakeErrors, type PostStakingTemplatesReputationLockV0StakeResponse, type PostStakingTemplatesReputationLockV0StakeResponses, type PostStakingTemplatesReputationLockV0UnstakeData, type PostStakingTemplatesReputationLockV0UnstakeError, type PostStakingTemplatesReputationLockV0UnstakeErrors, type PostStakingTemplatesReputationLockV0UnstakeResponse, type PostStakingTemplatesReputationLockV0UnstakeResponses, type PostStakingTemplatesReputationV0CreatePlatformData, type PostStakingTemplatesReputationV0CreatePlatformError, type PostStakingTemplatesReputationV0CreatePlatformErrors, type PostStakingTemplatesReputationV0CreatePlatformResponse, type PostStakingTemplatesReputationV0CreatePlatformResponses, type PostStakingTemplatesReputationV0CreatePoolData, type PostStakingTemplatesReputationV0CreatePoolError, type PostStakingTemplatesReputationV0CreatePoolErrors, type PostStakingTemplatesReputationV0CreatePoolResponse, type PostStakingTemplatesReputationV0CreatePoolResponses, type PostStakingTemplatesReputationV0GetRewardData, type PostStakingTemplatesReputationV0GetRewardError, type PostStakingTemplatesReputationV0GetRewardErrors, type PostStakingTemplatesReputationV0GetRewardResponse, type PostStakingTemplatesReputationV0GetRewardResponses, type PostStakingTemplatesReputationV0PartialUnstakeData, type PostStakingTemplatesReputationV0PartialUnstakeError, type PostStakingTemplatesReputationV0PartialUnstakeErrors, type PostStakingTemplatesReputationV0PartialUnstakeResponse, type PostStakingTemplatesReputationV0PartialUnstakeResponses, type PostStakingTemplatesReputationV0RestakeData, type PostStakingTemplatesReputationV0RestakeError, type PostStakingTemplatesReputationV0RestakeErrors, type PostStakingTemplatesReputationV0RestakeResponse, type PostStakingTemplatesReputationV0RestakeResponses, type PostStakingTemplatesReputationV0StakeData, type PostStakingTemplatesReputationV0StakeError, type PostStakingTemplatesReputationV0StakeErrors, type PostStakingTemplatesReputationV0StakeResponse, type PostStakingTemplatesReputationV0StakeResponses, type PostStakingTemplatesReputationV0UnstakeData, type PostStakingTemplatesReputationV0UnstakeError, type PostStakingTemplatesReputationV0UnstakeErrors, type PostStakingTemplatesReputationV0UnstakeResponse, type PostStakingTemplatesReputationV0UnstakeResponses, type PostStakingTemplatesRwaV0CreatePlatformData, type PostStakingTemplatesRwaV0CreatePlatformError, type PostStakingTemplatesRwaV0CreatePlatformErrors, type PostStakingTemplatesRwaV0CreatePlatformResponse, type PostStakingTemplatesRwaV0CreatePlatformResponses, type PostStakingTemplatesRwaV0CreatePoolData, type PostStakingTemplatesRwaV0CreatePoolError, type PostStakingTemplatesRwaV0CreatePoolErrors, type PostStakingTemplatesRwaV0CreatePoolResponse, type PostStakingTemplatesRwaV0CreatePoolResponses, type PostStakingTemplatesRwaV0GetRewardData, type PostStakingTemplatesRwaV0GetRewardError, type PostStakingTemplatesRwaV0GetRewardErrors, type PostStakingTemplatesRwaV0GetRewardResponse, type PostStakingTemplatesRwaV0GetRewardResponses, type PostStakingTemplatesRwaV0NotifyRewardsData, type PostStakingTemplatesRwaV0NotifyRewardsError, type PostStakingTemplatesRwaV0NotifyRewardsErrors, type PostStakingTemplatesRwaV0NotifyRewardsResponse, type PostStakingTemplatesRwaV0NotifyRewardsResponses, type PostStakingTemplatesRwaV0PartialUnstakeData, type PostStakingTemplatesRwaV0PartialUnstakeError, type PostStakingTemplatesRwaV0PartialUnstakeErrors, type PostStakingTemplatesRwaV0PartialUnstakeResponse, type PostStakingTemplatesRwaV0PartialUnstakeResponses, type PostStakingTemplatesRwaV0RestakeData, type PostStakingTemplatesRwaV0RestakeError, type PostStakingTemplatesRwaV0RestakeErrors, type PostStakingTemplatesRwaV0RestakeResponse, type PostStakingTemplatesRwaV0RestakeResponses, type PostStakingTemplatesRwaV0StakeData, type PostStakingTemplatesRwaV0StakeError, type PostStakingTemplatesRwaV0StakeErrors, type PostStakingTemplatesRwaV0StakeResponse, type PostStakingTemplatesRwaV0StakeResponses, type PostStakingTemplatesRwaV0UnstakeData, type PostStakingTemplatesRwaV0UnstakeError, type PostStakingTemplatesRwaV0UnstakeErrors, type PostStakingTemplatesRwaV0UnstakeResponse, type PostStakingTemplatesRwaV0UnstakeResponses, type PostV0FractionsFractionsApproveWrapperAsErc20SpenderData, type PostV0FractionsFractionsApproveWrapperAsErc20SpenderError, type PostV0FractionsFractionsApproveWrapperAsErc20SpenderErrors, type PostV0FractionsFractionsApproveWrapperAsErc20SpenderResponse, type PostV0FractionsFractionsApproveWrapperAsErc20SpenderResponses, type PostV0FractionsFractionsApproveWrapperAsErc721SpenderData, type PostV0FractionsFractionsApproveWrapperAsErc721SpenderError, type PostV0FractionsFractionsApproveWrapperAsErc721SpenderErrors, type PostV0FractionsFractionsApproveWrapperAsErc721SpenderResponse, type PostV0FractionsFractionsApproveWrapperAsErc721SpenderResponses, type PostV0FractionsFractionsApproveWrapperData, type PostV0FractionsFractionsApproveWrapperError, type PostV0FractionsFractionsApproveWrapperErrors, type PostV0FractionsFractionsApproveWrapperResponse, type PostV0FractionsFractionsApproveWrapperResponses, type PostV0FractionsMarketsSearchData, type PostV0FractionsMarketsSearchError, type PostV0FractionsMarketsSearchErrors, type PostV0FractionsMarketsSearchResponse, type PostV0FractionsMarketsSearchResponses, type PostV0FractionsPlatformsDeployData, type PostV0FractionsPlatformsDeployError, type PostV0FractionsPlatformsDeployErrors, type PostV0FractionsPlatformsDeployNidData, type PostV0FractionsPlatformsDeployNidError, type PostV0FractionsPlatformsDeployNidErrors, type PostV0FractionsPlatformsDeployNidResponse, type PostV0FractionsPlatformsDeployNidResponses, type PostV0FractionsPlatformsDeployResponse, type PostV0FractionsPlatformsDeployResponses, type PostV0FractionsRolesGrantData, type PostV0FractionsRolesGrantError, type PostV0FractionsRolesGrantErrors, type PostV0FractionsRolesGrantResponse, type PostV0FractionsRolesGrantResponses, type PostV0FractionsSalesApproveData, type PostV0FractionsSalesApproveError, type PostV0FractionsSalesApproveErrors, type PostV0FractionsSalesApproveResponse, type PostV0FractionsSalesApproveResponses, type PostV0FractionsSalesCompleteData, type PostV0FractionsSalesCompleteError, type PostV0FractionsSalesCompleteErrors, type PostV0FractionsSalesCompleteResponse, type PostV0FractionsSalesCompleteResponses, type PostV0FractionsSalesFractionsData, type PostV0FractionsSalesFractionsError, type PostV0FractionsSalesFractionsErrors, type PostV0FractionsSalesFractionsResponse, type PostV0FractionsSalesFractionsResponses, type PostV0FractionsSalesPurchaseData, type PostV0FractionsSalesPurchaseError, type PostV0FractionsSalesPurchaseErrors, type PostV0FractionsSalesPurchaseResponse, type PostV0FractionsSalesPurchaseResponses, type PostV0FractionsSalesRecoverData, type PostV0FractionsSalesRecoverError, type PostV0FractionsSalesRecoverErrors, type PostV0FractionsSalesRecoverResponse, type PostV0FractionsSalesRecoverResponses, type PostV0FractionsSalesRejectData, type PostV0FractionsSalesRejectError, type PostV0FractionsSalesRejectErrors, type PostV0FractionsSalesRejectResponse, type PostV0FractionsSalesRejectResponses, type PostV0FractionsSalesSearchData, type PostV0FractionsSalesSearchError, type PostV0FractionsSalesSearchErrors, type PostV0FractionsSalesSearchResponse, type PostV0FractionsSalesSearchResponses, type PostV0FractionsSalesSetFeeCapLimitData, type PostV0FractionsSalesSetFeeCapLimitError, type PostV0FractionsSalesSetFeeCapLimitErrors, type PostV0FractionsSalesSetFeeCapLimitResponse, type PostV0FractionsSalesSetFeeCapLimitResponses, type PostV0FractionsSalesVestingClaimData, type PostV0FractionsSalesVestingClaimError, type PostV0FractionsSalesVestingClaimErrors, type PostV0FractionsSalesVestingClaimResponse, type PostV0FractionsSalesVestingClaimResponses, type PostV0FractionsSalesVestingEditCliffData, type PostV0FractionsSalesVestingEditCliffError, type PostV0FractionsSalesVestingEditCliffErrors, type PostV0FractionsSalesVestingEditCliffResponse, type PostV0FractionsSalesVestingEditCliffResponses, type PostV0FractionsSalesWithdrawPaymentTokenData, type PostV0FractionsSalesWithdrawPaymentTokenError, type PostV0FractionsSalesWithdrawPaymentTokenErrors, type PostV0FractionsSalesWithdrawPaymentTokenResponse, type PostV0FractionsSalesWithdrawPaymentTokenResponses, type PostV0FractionsSigAuthDataData, type PostV0FractionsSigAuthDataError, type PostV0FractionsSigAuthDataErrors, type PostV0FractionsSigAuthDataResponse, type PostV0FractionsSigAuthDataResponses, type PostV0FractionsSigNonceData, type PostV0FractionsSigNonceError, type PostV0FractionsSigNonceErrors, type PostV0FractionsSigNonceResponse, type PostV0FractionsSigNonceResponses, type PurchaseRequestSchema, type RecoverFractionsRequestSchema, type RejectFractionsRequestSchema, type RewardDistributionComplex, type Role, type RoleAssignment, type SetFeeCapLimitRequestSchema, type Stake, type StakeEvent, type TokenBalanceSchema, type Transaction, type TxAuthDataRequestSchema, type WithdrawRequestSchema, type ZodError, api, envs, getEnv, handleApiResponse };
|
|
3209
|
+
export { type AmountMultInterval, type AmountTwoBorder, type ApiClient, type ApiResponse, type ApproveErc20SpendingToWrapper, type ApproveErc721SpendingToWrapper, type ApproveSaleRequestSchema, type ApproveWrapperRequestSchema, type BalancesResponseSchema, type ClaimVestedTokensRequestSchema, type ClientOptions, type CompleteSaleRequestSchema, type CreateFractionsRequestSchema, type DeployMarketRequestSchema, type EditCliffRequestSchema, type Erc20Input, type Erc20Reward, type Erc721Meta, type EstimateGasResponse, type GetGeneralBalanceData, type GetGeneralBalanceError, type GetGeneralBalanceErrors, type GetGeneralBalanceResponse, type GetGeneralBalanceResponses, type GetIssuanceErc20Data, type GetIssuanceErc20Error, type GetIssuanceErc20Errors, type GetIssuanceErc20Response, type GetIssuanceErc20Responses, type GetStakingPlatformsGetV0Data, type GetStakingPlatformsGetV0Error, type GetStakingPlatformsGetV0Errors, type GetStakingPlatformsGetV0Response, type GetStakingPlatformsGetV0Responses, type GetStakingPoolsGetPoolV0Data, type GetStakingPoolsGetPoolV0Error, type GetStakingPoolsGetPoolV0Errors, type GetStakingPoolsGetPoolV0Response, type GetStakingPoolsGetPoolV0Responses, type GetStakingRolesGetRolesV0Data, type GetStakingRolesGetRolesV0Error, type GetStakingRolesGetRolesV0Errors, type GetStakingRolesGetRolesV0Response, type GetStakingRolesGetRolesV0Responses, type GetStakingStakesGetStakeV0Data, type GetStakingStakesGetStakeV0Error, type GetStakingStakesGetStakeV0Errors, type GetStakingStakesGetStakeV0Response, type GetStakingStakesGetStakeV0Responses, type GetStakingTemplatesReputationLockV0GetCreatePoolEventData, type GetStakingTemplatesReputationLockV0GetCreatePoolEventError, type GetStakingTemplatesReputationLockV0GetCreatePoolEventErrors, type GetStakingTemplatesReputationLockV0GetCreatePoolEventResponse, type GetStakingTemplatesReputationLockV0GetCreatePoolEventResponses, type GetStakingTemplatesReputationLockV0GetPlatformDeployEventData, type GetStakingTemplatesReputationLockV0GetPlatformDeployEventError, type GetStakingTemplatesReputationLockV0GetPlatformDeployEventErrors, type GetStakingTemplatesReputationLockV0GetPlatformDeployEventResponse, type GetStakingTemplatesReputationLockV0GetPlatformDeployEventResponses, type GetStakingTemplatesReputationLockV0GetStakeEventData, type GetStakingTemplatesReputationLockV0GetStakeEventError, type GetStakingTemplatesReputationLockV0GetStakeEventErrors, type GetStakingTemplatesReputationLockV0GetStakeEventResponse, type GetStakingTemplatesReputationLockV0GetStakeEventResponses, type GetStakingTemplatesReputationV0GetCreatePoolEventData, type GetStakingTemplatesReputationV0GetCreatePoolEventError, type GetStakingTemplatesReputationV0GetCreatePoolEventErrors, type GetStakingTemplatesReputationV0GetCreatePoolEventResponse, type GetStakingTemplatesReputationV0GetCreatePoolEventResponses, type GetStakingTemplatesReputationV0GetPlatformDeployEventData, type GetStakingTemplatesReputationV0GetPlatformDeployEventError, type GetStakingTemplatesReputationV0GetPlatformDeployEventErrors, type GetStakingTemplatesReputationV0GetPlatformDeployEventResponse, type GetStakingTemplatesReputationV0GetPlatformDeployEventResponses, type GetStakingTemplatesReputationV0GetStakeEventData, type GetStakingTemplatesReputationV0GetStakeEventError, type GetStakingTemplatesReputationV0GetStakeEventErrors, type GetStakingTemplatesReputationV0GetStakeEventResponse, type GetStakingTemplatesReputationV0GetStakeEventResponses, type GetStakingTemplatesRwaV0GetCreatePoolEventData, type GetStakingTemplatesRwaV0GetCreatePoolEventError, type GetStakingTemplatesRwaV0GetCreatePoolEventErrors, type GetStakingTemplatesRwaV0GetCreatePoolEventResponse, type GetStakingTemplatesRwaV0GetCreatePoolEventResponses, type GetStakingTemplatesRwaV0GetPlatformDeployEventData, type GetStakingTemplatesRwaV0GetPlatformDeployEventError, type GetStakingTemplatesRwaV0GetPlatformDeployEventErrors, type GetStakingTemplatesRwaV0GetPlatformDeployEventResponse, type GetStakingTemplatesRwaV0GetPlatformDeployEventResponses, type GetStakingTemplatesRwaV0GetStakeEventData, type GetStakingTemplatesRwaV0GetStakeEventError, type GetStakingTemplatesRwaV0GetStakeEventErrors, type GetStakingTemplatesRwaV0GetStakeEventResponse, type GetStakingTemplatesRwaV0GetStakeEventResponses, type GetV0FractionsMarketsDeployEventData, type GetV0FractionsMarketsDeployEventError, type GetV0FractionsMarketsDeployEventErrors, type GetV0FractionsMarketsDeployEventResponse, type GetV0FractionsMarketsDeployEventResponses, type GetV0FractionsMarketsGetData, type GetV0FractionsMarketsGetError, type GetV0FractionsMarketsGetErrors, type GetV0FractionsMarketsGetResponse, type GetV0FractionsMarketsGetResponses, type GetV0FractionsRolesData, type GetV0FractionsRolesError, type GetV0FractionsRolesErrors, type GetV0FractionsRolesResponse, type GetV0FractionsRolesResponses, type GetV0FractionsSalesGetFractionsCreatedEventData, type GetV0FractionsSalesGetFractionsCreatedEventError, type GetV0FractionsSalesGetFractionsCreatedEventErrors, type GetV0FractionsSalesGetFractionsCreatedEventResponse, type GetV0FractionsSalesGetFractionsCreatedEventResponses, type GetV0FractionsSalesGetWithdrawEventData, type GetV0FractionsSalesGetWithdrawEventError, type GetV0FractionsSalesGetWithdrawEventErrors, type GetV0FractionsSalesGetWithdrawEventResponse, type GetV0FractionsSalesGetWithdrawEventResponses, type GetV0FractionsSalesVestingGetClaimVestedTokensEventData, type GetV0FractionsSalesVestingGetClaimVestedTokensEventError, type GetV0FractionsSalesVestingGetClaimVestedTokensEventErrors, type GetV0FractionsSalesVestingGetClaimVestedTokensEventResponse, type GetV0FractionsSalesVestingGetClaimVestedTokensEventResponses, type GrantMarketRoleRequestSchema, type IApiConfig, type IEnv, type IEnvName, type IssuanceDeployErc1967Schema, type IssuanceDeployErc20Schema, type LockMultInterval, type LockTwoBorder, type NonceRequestSchema, type PageRequest, type Platform, type Pool, type PostGeneralBalancesData, type PostGeneralBalancesError, type PostGeneralBalancesErrors, type PostGeneralBalancesResponse, type PostGeneralBalancesResponses, type PostGeneralEstimateGasData, type PostGeneralEstimateGasError, type PostGeneralEstimateGasErrors, type PostGeneralEstimateGasResponse, type PostGeneralEstimateGasResponses, type PostGeneralSearchBalancesData, type PostGeneralSearchBalancesError, type PostGeneralSearchBalancesErrors, type PostGeneralSearchBalancesResponse, type PostGeneralSearchBalancesResponses, type PostIssuanceErc20ApproveData, type PostIssuanceErc20ApproveError, type PostIssuanceErc20ApproveErrors, type PostIssuanceErc20ApproveResponse, type PostIssuanceErc20ApproveResponses, type PostIssuanceErc20BurnData, type PostIssuanceErc20BurnError, type PostIssuanceErc20BurnErrors, type PostIssuanceErc20BurnResponse, type PostIssuanceErc20BurnResponses, type PostIssuanceErc20GrantRoleData, type PostIssuanceErc20GrantRoleError, type PostIssuanceErc20GrantRoleErrors, type PostIssuanceErc20GrantRoleResponse, type PostIssuanceErc20GrantRoleResponses, type PostIssuanceErc20MintData, type PostIssuanceErc20MintError, type PostIssuanceErc20MintErrors, type PostIssuanceErc20MintResponse, type PostIssuanceErc20MintResponses, type PostIssuanceErc20ProxyData, type PostIssuanceErc20ProxyError, type PostIssuanceErc20ProxyErrors, type PostIssuanceErc20ProxyResponse, type PostIssuanceErc20ProxyResponses, type PostIssuanceErc20TransferData, type PostIssuanceErc20TransferError, type PostIssuanceErc20TransferErrors, type PostIssuanceErc20TransferResponse, type PostIssuanceErc20TransferResponses, type PostStakingPlatformsSearchV0Data, type PostStakingPlatformsSearchV0Error, type PostStakingPlatformsSearchV0Errors, type PostStakingPlatformsSearchV0Response, type PostStakingPlatformsSearchV0Responses, type PostStakingPoolsSearchPoolsV0Data, type PostStakingPoolsSearchPoolsV0Error, type PostStakingPoolsSearchPoolsV0Errors, type PostStakingPoolsSearchPoolsV0Response, type PostStakingPoolsSearchPoolsV0Responses, type PostStakingRolesGrantRoleV0Data, type PostStakingRolesGrantRoleV0Error, type PostStakingRolesGrantRoleV0Errors, type PostStakingRolesGrantRoleV0Response, type PostStakingRolesGrantRoleV0Responses, type PostStakingRolesSearchRoleEventsV0Data, type PostStakingRolesSearchRoleEventsV0Error, type PostStakingRolesSearchRoleEventsV0Errors, type PostStakingRolesSearchRoleEventsV0Response, type PostStakingRolesSearchRoleEventsV0Responses, type PostStakingRolesSearchRolesV0Data, type PostStakingRolesSearchRolesV0Error, type PostStakingRolesSearchRolesV0Errors, type PostStakingRolesSearchRolesV0Response, type PostStakingRolesSearchRolesV0Responses, type PostStakingStakesSearchStakeEventsV0Data, type PostStakingStakesSearchStakeEventsV0Error, type PostStakingStakesSearchStakeEventsV0Errors, type PostStakingStakesSearchStakeEventsV0Response, type PostStakingStakesSearchStakeEventsV0Responses, type PostStakingStakesSearchStakesV0Data, type PostStakingStakesSearchStakesV0Error, type PostStakingStakesSearchStakesV0Errors, type PostStakingStakesSearchStakesV0Response, type PostStakingStakesSearchStakesV0Responses, type PostStakingTemplatesReputationLockV0CreatePlatformData, type PostStakingTemplatesReputationLockV0CreatePlatformError, type PostStakingTemplatesReputationLockV0CreatePlatformErrors, type PostStakingTemplatesReputationLockV0CreatePlatformResponse, type PostStakingTemplatesReputationLockV0CreatePlatformResponses, type PostStakingTemplatesReputationLockV0CreatePoolData, type PostStakingTemplatesReputationLockV0CreatePoolError, type PostStakingTemplatesReputationLockV0CreatePoolErrors, type PostStakingTemplatesReputationLockV0CreatePoolResponse, type PostStakingTemplatesReputationLockV0CreatePoolResponses, type PostStakingTemplatesReputationLockV0GetRewardData, type PostStakingTemplatesReputationLockV0GetRewardError, type PostStakingTemplatesReputationLockV0GetRewardErrors, type PostStakingTemplatesReputationLockV0GetRewardResponse, type PostStakingTemplatesReputationLockV0GetRewardResponses, type PostStakingTemplatesReputationLockV0PartialUnstakeData, type PostStakingTemplatesReputationLockV0PartialUnstakeError, type PostStakingTemplatesReputationLockV0PartialUnstakeErrors, type PostStakingTemplatesReputationLockV0PartialUnstakeResponse, type PostStakingTemplatesReputationLockV0PartialUnstakeResponses, type PostStakingTemplatesReputationLockV0RestakeData, type PostStakingTemplatesReputationLockV0RestakeError, type PostStakingTemplatesReputationLockV0RestakeErrors, type PostStakingTemplatesReputationLockV0RestakeResponse, type PostStakingTemplatesReputationLockV0RestakeResponses, type PostStakingTemplatesReputationLockV0StakeData, type PostStakingTemplatesReputationLockV0StakeError, type PostStakingTemplatesReputationLockV0StakeErrors, type PostStakingTemplatesReputationLockV0StakeResponse, type PostStakingTemplatesReputationLockV0StakeResponses, type PostStakingTemplatesReputationLockV0UnstakeData, type PostStakingTemplatesReputationLockV0UnstakeError, type PostStakingTemplatesReputationLockV0UnstakeErrors, type PostStakingTemplatesReputationLockV0UnstakeResponse, type PostStakingTemplatesReputationLockV0UnstakeResponses, type PostStakingTemplatesReputationV0CreatePlatformData, type PostStakingTemplatesReputationV0CreatePlatformError, type PostStakingTemplatesReputationV0CreatePlatformErrors, type PostStakingTemplatesReputationV0CreatePlatformResponse, type PostStakingTemplatesReputationV0CreatePlatformResponses, type PostStakingTemplatesReputationV0CreatePoolData, type PostStakingTemplatesReputationV0CreatePoolError, type PostStakingTemplatesReputationV0CreatePoolErrors, type PostStakingTemplatesReputationV0CreatePoolResponse, type PostStakingTemplatesReputationV0CreatePoolResponses, type PostStakingTemplatesReputationV0GetRewardData, type PostStakingTemplatesReputationV0GetRewardError, type PostStakingTemplatesReputationV0GetRewardErrors, type PostStakingTemplatesReputationV0GetRewardResponse, type PostStakingTemplatesReputationV0GetRewardResponses, type PostStakingTemplatesReputationV0PartialUnstakeData, type PostStakingTemplatesReputationV0PartialUnstakeError, type PostStakingTemplatesReputationV0PartialUnstakeErrors, type PostStakingTemplatesReputationV0PartialUnstakeResponse, type PostStakingTemplatesReputationV0PartialUnstakeResponses, type PostStakingTemplatesReputationV0RestakeData, type PostStakingTemplatesReputationV0RestakeError, type PostStakingTemplatesReputationV0RestakeErrors, type PostStakingTemplatesReputationV0RestakeResponse, type PostStakingTemplatesReputationV0RestakeResponses, type PostStakingTemplatesReputationV0StakeData, type PostStakingTemplatesReputationV0StakeError, type PostStakingTemplatesReputationV0StakeErrors, type PostStakingTemplatesReputationV0StakeResponse, type PostStakingTemplatesReputationV0StakeResponses, type PostStakingTemplatesReputationV0UnstakeData, type PostStakingTemplatesReputationV0UnstakeError, type PostStakingTemplatesReputationV0UnstakeErrors, type PostStakingTemplatesReputationV0UnstakeResponse, type PostStakingTemplatesReputationV0UnstakeResponses, type PostStakingTemplatesRwaV0CreatePlatformData, type PostStakingTemplatesRwaV0CreatePlatformError, type PostStakingTemplatesRwaV0CreatePlatformErrors, type PostStakingTemplatesRwaV0CreatePlatformResponse, type PostStakingTemplatesRwaV0CreatePlatformResponses, type PostStakingTemplatesRwaV0CreatePoolData, type PostStakingTemplatesRwaV0CreatePoolError, type PostStakingTemplatesRwaV0CreatePoolErrors, type PostStakingTemplatesRwaV0CreatePoolResponse, type PostStakingTemplatesRwaV0CreatePoolResponses, type PostStakingTemplatesRwaV0GetRewardData, type PostStakingTemplatesRwaV0GetRewardError, type PostStakingTemplatesRwaV0GetRewardErrors, type PostStakingTemplatesRwaV0GetRewardResponse, type PostStakingTemplatesRwaV0GetRewardResponses, type PostStakingTemplatesRwaV0NotifyRewardsData, type PostStakingTemplatesRwaV0NotifyRewardsError, type PostStakingTemplatesRwaV0NotifyRewardsErrors, type PostStakingTemplatesRwaV0NotifyRewardsResponse, type PostStakingTemplatesRwaV0NotifyRewardsResponses, type PostStakingTemplatesRwaV0PartialUnstakeData, type PostStakingTemplatesRwaV0PartialUnstakeError, type PostStakingTemplatesRwaV0PartialUnstakeErrors, type PostStakingTemplatesRwaV0PartialUnstakeResponse, type PostStakingTemplatesRwaV0PartialUnstakeResponses, type PostStakingTemplatesRwaV0RestakeData, type PostStakingTemplatesRwaV0RestakeError, type PostStakingTemplatesRwaV0RestakeErrors, type PostStakingTemplatesRwaV0RestakeResponse, type PostStakingTemplatesRwaV0RestakeResponses, type PostStakingTemplatesRwaV0StakeData, type PostStakingTemplatesRwaV0StakeError, type PostStakingTemplatesRwaV0StakeErrors, type PostStakingTemplatesRwaV0StakeResponse, type PostStakingTemplatesRwaV0StakeResponses, type PostStakingTemplatesRwaV0UnstakeData, type PostStakingTemplatesRwaV0UnstakeError, type PostStakingTemplatesRwaV0UnstakeErrors, type PostStakingTemplatesRwaV0UnstakeResponse, type PostStakingTemplatesRwaV0UnstakeResponses, type PostV0FractionsFractionsApproveWrapperAsErc20SpenderData, type PostV0FractionsFractionsApproveWrapperAsErc20SpenderError, type PostV0FractionsFractionsApproveWrapperAsErc20SpenderErrors, type PostV0FractionsFractionsApproveWrapperAsErc20SpenderResponse, type PostV0FractionsFractionsApproveWrapperAsErc20SpenderResponses, type PostV0FractionsFractionsApproveWrapperAsErc721SpenderData, type PostV0FractionsFractionsApproveWrapperAsErc721SpenderError, type PostV0FractionsFractionsApproveWrapperAsErc721SpenderErrors, type PostV0FractionsFractionsApproveWrapperAsErc721SpenderResponse, type PostV0FractionsFractionsApproveWrapperAsErc721SpenderResponses, type PostV0FractionsFractionsApproveWrapperData, type PostV0FractionsFractionsApproveWrapperError, type PostV0FractionsFractionsApproveWrapperErrors, type PostV0FractionsFractionsApproveWrapperResponse, type PostV0FractionsFractionsApproveWrapperResponses, type PostV0FractionsMarketsSearchData, type PostV0FractionsMarketsSearchError, type PostV0FractionsMarketsSearchErrors, type PostV0FractionsMarketsSearchResponse, type PostV0FractionsMarketsSearchResponses, type PostV0FractionsPlatformsDeployData, type PostV0FractionsPlatformsDeployError, type PostV0FractionsPlatformsDeployErrors, type PostV0FractionsPlatformsDeployNidData, type PostV0FractionsPlatformsDeployNidError, type PostV0FractionsPlatformsDeployNidErrors, type PostV0FractionsPlatformsDeployNidResponse, type PostV0FractionsPlatformsDeployNidResponses, type PostV0FractionsPlatformsDeployResponse, type PostV0FractionsPlatformsDeployResponses, type PostV0FractionsRolesGrantData, type PostV0FractionsRolesGrantError, type PostV0FractionsRolesGrantErrors, type PostV0FractionsRolesGrantResponse, type PostV0FractionsRolesGrantResponses, type PostV0FractionsSalesApproveData, type PostV0FractionsSalesApproveError, type PostV0FractionsSalesApproveErrors, type PostV0FractionsSalesApproveResponse, type PostV0FractionsSalesApproveResponses, type PostV0FractionsSalesCompleteData, type PostV0FractionsSalesCompleteError, type PostV0FractionsSalesCompleteErrors, type PostV0FractionsSalesCompleteResponse, type PostV0FractionsSalesCompleteResponses, type PostV0FractionsSalesFractionsData, type PostV0FractionsSalesFractionsError, type PostV0FractionsSalesFractionsErrors, type PostV0FractionsSalesFractionsResponse, type PostV0FractionsSalesFractionsResponses, type PostV0FractionsSalesPurchaseData, type PostV0FractionsSalesPurchaseError, type PostV0FractionsSalesPurchaseErrors, type PostV0FractionsSalesPurchaseResponse, type PostV0FractionsSalesPurchaseResponses, type PostV0FractionsSalesRecoverData, type PostV0FractionsSalesRecoverError, type PostV0FractionsSalesRecoverErrors, type PostV0FractionsSalesRecoverResponse, type PostV0FractionsSalesRecoverResponses, type PostV0FractionsSalesRejectData, type PostV0FractionsSalesRejectError, type PostV0FractionsSalesRejectErrors, type PostV0FractionsSalesRejectResponse, type PostV0FractionsSalesRejectResponses, type PostV0FractionsSalesSearchData, type PostV0FractionsSalesSearchError, type PostV0FractionsSalesSearchErrors, type PostV0FractionsSalesSearchResponse, type PostV0FractionsSalesSearchResponses, type PostV0FractionsSalesSetFeeCapLimitData, type PostV0FractionsSalesSetFeeCapLimitError, type PostV0FractionsSalesSetFeeCapLimitErrors, type PostV0FractionsSalesSetFeeCapLimitResponse, type PostV0FractionsSalesSetFeeCapLimitResponses, type PostV0FractionsSalesVestingClaimData, type PostV0FractionsSalesVestingClaimError, type PostV0FractionsSalesVestingClaimErrors, type PostV0FractionsSalesVestingClaimResponse, type PostV0FractionsSalesVestingClaimResponses, type PostV0FractionsSalesVestingEditCliffData, type PostV0FractionsSalesVestingEditCliffError, type PostV0FractionsSalesVestingEditCliffErrors, type PostV0FractionsSalesVestingEditCliffResponse, type PostV0FractionsSalesVestingEditCliffResponses, type PostV0FractionsSalesWithdrawPaymentTokenData, type PostV0FractionsSalesWithdrawPaymentTokenError, type PostV0FractionsSalesWithdrawPaymentTokenErrors, type PostV0FractionsSalesWithdrawPaymentTokenResponse, type PostV0FractionsSalesWithdrawPaymentTokenResponses, type PostV0FractionsSigAuthDataData, type PostV0FractionsSigAuthDataError, type PostV0FractionsSigAuthDataErrors, type PostV0FractionsSigAuthDataResponse, type PostV0FractionsSigAuthDataResponses, type PostV0FractionsSigNonceData, type PostV0FractionsSigNonceError, type PostV0FractionsSigNonceErrors, type PostV0FractionsSigNonceResponse, type PostV0FractionsSigNonceResponses, type PurchaseRequestSchema, type RecoverFractionsRequestSchema, type RejectFractionsRequestSchema, type RewardDistributionComplex, type Role, type RoleAssignment, type SetFeeCapLimitRequestSchema, type Stake, type StakeEvent, type TokenBalanceSchema, type Transaction, type TxAuthDataRequestSchema, type WithdrawRequestSchema, type ZodError, api, envs, getEnv, handleApiResponse };
|
package/dist/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{createClient as it}from"@hey-api/client-fetch";var a=e=>(e.createdAt=new Date(e.createdAt),e.updatedAt=new Date(e.updatedAt),e),c=async e=>(e=a(e),e),k=async e=>(e=e.map(r=>a(r)),e),S=e=>(e.poolId=BigInt(e.poolId.toString()),e.createdAt=new Date(e.createdAt),e),R=async e=>(e=e.map(r=>S(r)),e),T=async e=>(e=S(e),e),g=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),E=async e=>(e=e.map(r=>g(r)),e),P=e=>(e.campaignId&&(e.campaignId=BigInt(e.campaignId.toString())),e.createdAt=new Date(e.createdAt),e),m=async e=>(e=e.map(r=>P(r)),e),V=async e=>(e=g(e),e),h=e=>(e.poolId&&(e.poolId=BigInt(e.poolId.toString())),e.createdAt=new Date(e.createdAt),e.updatedAt=new Date(e.updatedAt),e),u=async e=>(e=e.map(r=>h(r)),e),G=async e=>(e=e.map(r=>h(r)),e),w=async e=>(e.poolId=BigInt(e.poolId.toString()),e.stakeId=BigInt(e.stakeId.toString()),e),f=async e=>(e.poolId=BigInt(e.poolId.toString()),e),v=async e=>(e.poolId=BigInt(e.poolId.toString()),e.stakeId=BigInt(e.stakeId.toString()),e),O=async e=>(e.poolId=BigInt(e.poolId.toString()),e),d=async e=>(e.poolId=BigInt(e.poolId.toString()),e.stakeId=BigInt(e.stakeId.toString()),e),F=async e=>(e.poolId=BigInt(e.poolId.toString()),e),D=async e=>(e=a(e),e),y=async e=>(e=e.map(r=>a(r)),e),C=async e=>(e.nftId=BigInt(e.nftId.toString()),e.campaignId=BigInt(e.campaignId.toString()),e.fractionsCreated=BigInt(e.fractionsCreated.toString()),e),x=async e=>(e=e.map(r=>P(r)),e),I=async e=>(e.campaignId=BigInt(e.campaignId.toString()),e.packetsReceived=BigInt(e.packetsReceived.toString()),e),L=async e=>(e.nonce=BigInt(e.nonce.toString()),e.blockExpiration=BigInt(e.blockExpiration.toString()),e),ot=e=>(e.value=BigInt(e.value.toString()),e),A=async e=>(e=ot(e),e),b=async e=>(e.balance=BigInt(e.balance.toString()),e),B=e=>(e.tokenId&&(e.tokenId=BigInt(e.tokenId.toString())),e),j=async e=>(e=e.map(r=>B(r)),e),st=e=>(e.balances=e.balances.map(r=>B(r)),e),U=async e=>(e=st(e),e);import{createClient as nt,createConfig as pt}from"@hey-api/client-fetch";var t=nt(pt({baseUrl:"http://localhost:3000"}));var W=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}}),N=e=>(e?.client??t).post({responseTransformer:R,url:"/staking/pools/searchPools/v0",...e,headers:{"Content-Type":"application/json",...e?.headers}}),K=e=>(e.client??t).get({responseTransformer:T,url:"/staking/pools/getPool/v0",...e}),q=e=>(e?.client??t).post({responseTransformer:E,url:"/staking/stakes/searchStakes/v0",...e,headers:{"Content-Type":"application/json",...e?.headers}}),z=e=>(e?.client??t).post({responseTransformer:m,url:"/staking/stakes/searchStakeEvents/v0",...e,headers:{"Content-Type":"application/json",...e?.headers}}),_=e=>(e.client??t).get({responseTransformer:V,url:"/staking/stakes/getStake/v0",...e}),H=e=>(e?.client??t).get({url:"/staking/roles/getRoles/v0",...e}),J=e=>(e?.client??t).post({url:"/staking/roles/grantRole/v0",...e,headers:{"Content-Type":"application/json",...e?.headers}}),Q=e=>(e?.client??t).post({responseTransformer:u,url:"/staking/roles/searchRoles/v0",...e,headers:{"Content-Type":"application/json",...e?.headers}}),X=e=>(e?.client??t).post({responseTransformer:G,url:"/staking/roles/searchRoleEvents/v0",...e,headers:{"Content-Type":"application/json",...e?.headers}}),Y=e=>(e.client??t).get({url:"/stakingTemplates/reputation/v0/getPlatformDeployEvent",...e}),Z=e=>(e.client??t).get({responseTransformer:w,url:"/stakingTemplates/reputation/v0/getStakeEvent",...e}),$=e=>(e.client??t).get({responseTransformer:f,url:"/stakingTemplates/reputation/v0/getCreatePoolEvent",...e}),ee=e=>(e?.client??t).post({url:"/stakingTemplates/reputation/v0/getReward",...e,headers:{"Content-Type":"application/json",...e?.headers}}),te=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}}),ae=e=>(e?.client??t).post({url:"/stakingTemplates/reputation/v0/stake",...e,headers:{"Content-Type":"application/json",...e?.headers}}),oe=e=>(e?.client??t).post({url:"/stakingTemplates/reputation/v0/unstake",...e,headers:{"Content-Type":"application/json",...e?.headers}}),se=e=>(e?.client??t).post({url:"/stakingTemplates/reputation/v0/createPool",...e,headers:{"Content-Type":"application/json",...e?.headers}}),ne=e=>(e?.client??t).post({url:"/stakingTemplates/reputation/v0/createPlatform",...e,headers:{"Content-Type":"application/json",...e?.headers}}),pe=e=>(e.client??t).get({url:"/stakingTemplates/reputationLock/v0/getPlatformDeployEvent",...e}),ie=e=>(e.client??t).get({responseTransformer:v,url:"/stakingTemplates/reputationLock/v0/getStakeEvent",...e}),le=e=>(e.client??t).get({responseTransformer:O,url:"/stakingTemplates/reputationLock/v0/getCreatePoolEvent",...e}),ce=e=>(e?.client??t).post({url:"/stakingTemplates/reputationLock/v0/getReward",...e,headers:{"Content-Type":"application/json",...e?.headers}}),ke=e=>(e?.client??t).post({url:"/stakingTemplates/reputationLock/v0/partialUnstake",...e,headers:{"Content-Type":"application/json",...e?.headers}}),Se=e=>(e?.client??t).post({url:"/stakingTemplates/reputationLock/v0/restake",...e,headers:{"Content-Type":"application/json",...e?.headers}}),Re=e=>(e?.client??t).post({url:"/stakingTemplates/reputationLock/v0/stake",...e,headers:{"Content-Type":"application/json",...e?.headers}}),Te=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}}),Ee=e=>(e?.client??t).post({url:"/stakingTemplates/reputationLock/v0/createPlatform",...e,headers:{"Content-Type":"application/json",...e?.headers}}),Pe=e=>(e.client??t).get({url:"/stakingTemplates/rwa/v0/getPlatformDeployEvent",...e}),me=e=>(e.client??t).get({responseTransformer:d,url:"/stakingTemplates/rwa/v0/getStakeEvent",...e}),Ve=e=>(e.client??t).get({responseTransformer:F,url:"/stakingTemplates/rwa/v0/getCreatePoolEvent",...e}),he=e=>(e?.client??t).post({url:"/stakingTemplates/rwa/v0/getReward",...e,headers:{"Content-Type":"application/json",...e?.headers}}),ue=e=>(e?.client??t).post({url:"/stakingTemplates/rwa/v0/partialUnstake",...e,headers:{"Content-Type":"application/json",...e?.headers}}),Ge=e=>(e?.client??t).post({url:"/stakingTemplates/rwa/v0/restake",...e,headers:{"Content-Type":"application/json",...e?.headers}}),we=e=>(e?.client??t).post({url:"/stakingTemplates/rwa/v0/stake",...e,headers:{"Content-Type":"application/json",...e?.headers}}),fe=e=>(e?.client??t).post({url:"/stakingTemplates/rwa/v0/unstake",...e,headers:{"Content-Type":"application/json",...e?.headers}}),ve=e=>(e?.client??t).post({url:"/stakingTemplates/rwa/v0/createPool",...e,headers:{"Content-Type":"application/json",...e?.headers}}),Oe=e=>(e?.client??t).post({url:"/stakingTemplates/rwa/v0/createPlatform",...e,headers:{"Content-Type":"application/json",...e?.headers}}),de=e=>(e?.client??t).post({url:"/stakingTemplates/rwa/v0/notifyRewards",...e,headers:{"Content-Type":"application/json",...e?.headers}}),Fe=e=>(e.client??t).get({responseTransformer:D,url:"/v0/fractions/markets/get",...e}),De=e=>(e?.client??t).post({responseTransformer:y,url:"/v0/fractions/markets/search",...e,headers:{"Content-Type":"application/json",...e?.headers}}),ye=e=>(e.client??t).get({url:"/v0/fractions/markets/deployEvent",...e}),Ce=e=>(e?.client??t).post({url:"/v0/fractions/platforms/deploy",...e,headers:{"Content-Type":"application/json",...e?.headers}}),xe=e=>(e?.client??t).post({url:"/v0/fractions/platforms/deployNid",...e,headers:{"Content-Type":"application/json",...e?.headers}}),Ie=e=>(e?.client??t).post({url:"/v0/fractions/fractions/approveWrapper",...e,headers:{"Content-Type":"application/json",...e?.headers}}),Le=e=>(e?.client??t).post({url:"/v0/fractions/fractions/approveWrapperAsErc20Spender",...e,headers:{"Content-Type":"application/json",...e?.headers}}),Ae=e=>(e?.client??t).post({url:"/v0/fractions/fractions/approveWrapperAsErc721Spender",...e,headers:{"Content-Type":"application/json",...e?.headers}}),be=e=>(e?.client??t).get({url:"/v0/fractions/roles",...e}),Be=e=>(e?.client??t).post({url:"/v0/fractions/roles/grant",...e,headers:{"Content-Type":"application/json",...e?.headers}}),je=e=>(e?.client??t).post({url:"/v0/fractions/sales/fractions",...e,headers:{"Content-Type":"application/json",...e?.headers}}),Ue=e=>(e.client??t).get({responseTransformer:C,url:"/v0/fractions/sales/getFractionsCreatedEvent",...e}),We=e=>(e?.client??t).post({url:"/v0/fractions/sales/approve",...e,headers:{"Content-Type":"application/json",...e?.headers}}),Me=e=>(e?.client??t).post({url:"/v0/fractions/sales/reject",...e,headers:{"Content-Type":"application/json",...e?.headers}}),Ne=e=>(e?.client??t).post({url:"/v0/fractions/sales/recover",...e,headers:{"Content-Type":"application/json",...e?.headers}}),Ke=e=>(e?.client??t).post({url:"/v0/fractions/sales/complete",...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}}),ze=e=>(e?.client??t).post({url:"/v0/fractions/sales/withdrawPaymentToken",...e,headers:{"Content-Type":"application/json",...e?.headers}}),_e=e=>(e?.client??t).post({url:"/v0/fractions/sales/vesting/editCliff",...e,headers:{"Content-Type":"application/json",...e?.headers}}),He=e=>(e?.client??t).post({url:"/v0/fractions/sales/vesting/claim",...e,headers:{"Content-Type":"application/json",...e?.headers}}),Je=e=>(e?.client??t).post({responseTransformer:x,url:"/v0/fractions/sales/search",...e,headers:{"Content-Type":"application/json",...e?.headers}}),Qe=e=>(e?.client??t).post({url:"/v0/fractions/sales/setFeeCapLimit",...e,headers:{"Content-Type":"application/json",...e?.headers}}),Xe=e=>(e.client??t).get({responseTransformer:I,url:"/v0/fractions/sales/getWithdrawEvent",...e}),o=e=>(e?.client??t).post({url:"/v0/fractions/sig/nonce",...e,headers:{"Content-Type":"application/json",...e?.headers}}),s=e=>(e?.client??t).post({responseTransformer:L,url:"/v0/fractions/sig/authData",...e,headers:{"Content-Type":"application/json",...e?.headers}}),Ye=e=>(e?.client??t).post({responseTransformer:A,url:"/general/estimateGas",...e,headers:{"Content-Type":"application/json",...e?.headers}}),Ze=e=>(e.client??t).get({responseTransformer:b,url:"/general/balance",...e}),$e=e=>(e?.client??t).post({responseTransformer:j,url:"/general/balances",...e,headers:{"Content-Type":"application/json",...e?.headers}}),et=e=>(e?.client??t).post({responseTransformer:U,url:"/general/searchBalances",...e,headers:{"Content-Type":"application/json",...e?.headers}}),n=e=>(e?.client??t).get({url:"/issuance/erc20",...e}),p=e=>(e?.client??t).post({url:"/issuance/erc20/mint",...e,headers:{"Content-Type":"application/json",...e?.headers}}),i=e=>(e?.client??t).post({url:"/issuance/erc20/burn",...e,headers:{"Content-Type":"application/json",...e?.headers}}),tt=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}}),l=e=>(e?.client??t).post({url:"/issuance/erc20/proxy",...e,headers:{"Content-Type":"application/json",...e?.headers}}),at=e=>(e?.client??t).post({url:"/issuance/erc20/grantRole",...e,headers:{"Content-Type":"application/json",...e?.headers}});var wt={createClient:(e,r={})=>it({baseUrl:e.env.baseUrl,...r,headers:{Authorization:e.apiKey,...r.headers}}),general:{searchBalances:et,getBalances:$e,getBalance:Ze,estimateGas:Ye},stakingTemplates:{reputation:{createPlatform:ne,createPool:se,getReward:ee,partialUnstake:te,restake:re,stake:ae,unstake:oe,getCreatePoolEvent:$,getPlatformDeployEvent:Y,getStakeEvent:Z},reputationLock:{createPlatform:Ee,createPool:ge,getReward:ce,partialUnstake:ke,restake:Se,stake:Re,unstake:Te,getCreatePoolEvent:le,getPlatformDeployEvent:pe,getStakeEvent:ie},rwa:{createPlatform:Oe,createPool:ve,getReward:he,notifyRewards:de,partialUnstake:ue,restake:Ge,stake:we,unstake:fe,getCreatePoolEvent:Ve,getPlatformDeployEvent:Pe,getStakeEvent:me}},staking:{roles:{getRoles:H,grantRole:J,searchRoles:Q,searchRoleEvents:X},stakes:{getStake:_,searchStakes:q,searchStakeEvents:z},pools:{getPool:K,searchPools:N},platforms:{getPlatform:W,searchPlatforms:M}},fractions:{market:{deployMarket:Ce,deployNidMarket:xe,getMarketDeployedEvent:ye,search:De,get:Fe},roles:{grantRole:Be,getRoles:be},sales:{createFractions:je,approveSale:We,rejectSale:Me,recover:Ne,completeSale:Ke,purchaseSale:qe,withdrawPaymentToken:ze,getFractionsCreatedEvent:Ue,search:Je,getWithdrawEvent:Xe,setFeeCapLimit:Qe,vesting:{claim:He,editCliff:_e}},approvals:{approveWrapper:Ie,approveWrapperToSpendErc20:Le,approveWrapperToSpendErc721:Ae},compilot:{getAuthData:s,getNonce:o,erc20:n,erc1967Proxy:l,erc20Mint:p,erc20Burn:i},issuance:{getAuthData:s,getNonce:o,erc20:n,erc1967Proxy:l,erc20Mint:p,erc20Burn:i,erc20Approve:tt,erc20Transfer:rt,erc20GrantRole:at}}};import{apiEnvs as lt,getApiEnv as ct}from"@evergonlabs/tmi-protocol-shared/envs";var Ft=lt,Dt=ct;function Ct(e){if(e.error)throw e.error;if(!e.data)throw new Error("No response provided from the API");return e.data}export{wt as api,Ft as envs,Dt as getEnv,Ct as handleApiResponse};
|
|
1
|
+
import{createClient as ct}from"@hey-api/client-fetch";var a=e=>(e.createdAt=new Date(e.createdAt),e.updatedAt=new Date(e.updatedAt),e),c=async e=>(e=a(e),e),S=async e=>(e=e.map(r=>a(r)),e),k=e=>(e.poolId=BigInt(e.poolId.toString()),e.createdAt=new Date(e.createdAt),e),R=async e=>(e=e.map(r=>k(r)),e),T=async e=>(e=k(e),e),g=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),E=async e=>(e=e.map(r=>g(r)),e),P=e=>(e.campaignId&&(e.campaignId=BigInt(e.campaignId.toString())),e.createdAt=new Date(e.createdAt),e),V=async e=>(e=e.map(r=>P(r)),e),m=async e=>(e=g(e),e),h=e=>(e.poolId&&(e.poolId=BigInt(e.poolId.toString())),e.createdAt=new Date(e.createdAt),e.updatedAt=new Date(e.updatedAt),e),u=async e=>(e=e.map(r=>h(r)),e),G=async e=>(e=e.map(r=>h(r)),e),w=async e=>(e.poolId=BigInt(e.poolId.toString()),e.stakeId=BigInt(e.stakeId.toString()),e),f=async e=>(e.poolId=BigInt(e.poolId.toString()),e),v=async e=>(e.poolId=BigInt(e.poolId.toString()),e.stakeId=BigInt(e.stakeId.toString()),e),O=async e=>(e.poolId=BigInt(e.poolId.toString()),e),d=async e=>(e.poolId=BigInt(e.poolId.toString()),e.stakeId=BigInt(e.stakeId.toString()),e),F=async e=>(e.poolId=BigInt(e.poolId.toString()),e),D=async e=>(e=a(e),e),C=async e=>(e=e.map(r=>a(r)),e),y=async e=>(e.nftId=BigInt(e.nftId.toString()),e.campaignId=BigInt(e.campaignId.toString()),e.fractionsCreated=BigInt(e.fractionsCreated.toString()),e),x=async e=>(e.campaignId=BigInt(e.campaignId.toString()),e.burnId=BigInt(e.burnId.toString()),e.nextBurnId=BigInt(e.nextBurnId.toString()),e.amountOfFractionsBurnt=BigInt(e.amountOfFractionsBurnt.toString()),e),I=async e=>(e=e.map(r=>P(r)),e),L=async e=>(e.campaignId=BigInt(e.campaignId.toString()),e.packetsReceived=BigInt(e.packetsReceived.toString()),e),A=async e=>(e.nonce=BigInt(e.nonce.toString()),e.blockExpiration=BigInt(e.blockExpiration.toString()),e),nt=e=>(e.value=BigInt(e.value.toString()),e),b=async e=>(e=nt(e),e),B=async e=>(e.balance=BigInt(e.balance.toString()),e),j=e=>(e.tokenId&&(e.tokenId=BigInt(e.tokenId.toString())),e),U=async e=>(e=e.map(r=>j(r)),e),pt=e=>(e.balances=e.balances.map(r=>j(r)),e),W=async e=>(e=pt(e),e);import{createClient as it,createConfig as lt}from"@hey-api/client-fetch";var t=it(lt({baseUrl:"http://localhost:3000"}));var M=e=>(e.client??t).get({responseTransformer:c,url:"/staking/platforms/get/v0",...e}),N=e=>(e?.client??t).post({responseTransformer:S,url:"/staking/platforms/search/v0",...e,headers:{"Content-Type":"application/json",...e?.headers}}),K=e=>(e?.client??t).post({responseTransformer:R,url:"/staking/pools/searchPools/v0",...e,headers:{"Content-Type":"application/json",...e?.headers}}),q=e=>(e.client??t).get({responseTransformer:T,url:"/staking/pools/getPool/v0",...e}),z=e=>(e?.client??t).post({responseTransformer:E,url:"/staking/stakes/searchStakes/v0",...e,headers:{"Content-Type":"application/json",...e?.headers}}),_=e=>(e?.client??t).post({responseTransformer:V,url:"/staking/stakes/searchStakeEvents/v0",...e,headers:{"Content-Type":"application/json",...e?.headers}}),H=e=>(e.client??t).get({responseTransformer:m,url:"/staking/stakes/getStake/v0",...e}),J=e=>(e?.client??t).get({url:"/staking/roles/getRoles/v0",...e}),Q=e=>(e?.client??t).post({url:"/staking/roles/grantRole/v0",...e,headers:{"Content-Type":"application/json",...e?.headers}}),X=e=>(e?.client??t).post({responseTransformer:u,url:"/staking/roles/searchRoles/v0",...e,headers:{"Content-Type":"application/json",...e?.headers}}),Y=e=>(e?.client??t).post({responseTransformer:G,url:"/staking/roles/searchRoleEvents/v0",...e,headers:{"Content-Type":"application/json",...e?.headers}}),Z=e=>(e.client??t).get({url:"/stakingTemplates/reputation/v0/getPlatformDeployEvent",...e}),$=e=>(e.client??t).get({responseTransformer:w,url:"/stakingTemplates/reputation/v0/getStakeEvent",...e}),ee=e=>(e.client??t).get({responseTransformer:f,url:"/stakingTemplates/reputation/v0/getCreatePoolEvent",...e}),te=e=>(e?.client??t).post({url:"/stakingTemplates/reputation/v0/getReward",...e,headers:{"Content-Type":"application/json",...e?.headers}}),re=e=>(e?.client??t).post({url:"/stakingTemplates/reputation/v0/partialUnstake",...e,headers:{"Content-Type":"application/json",...e?.headers}}),ae=e=>(e?.client??t).post({url:"/stakingTemplates/reputation/v0/restake",...e,headers:{"Content-Type":"application/json",...e?.headers}}),oe=e=>(e?.client??t).post({url:"/stakingTemplates/reputation/v0/stake",...e,headers:{"Content-Type":"application/json",...e?.headers}}),se=e=>(e?.client??t).post({url:"/stakingTemplates/reputation/v0/unstake",...e,headers:{"Content-Type":"application/json",...e?.headers}}),ne=e=>(e?.client??t).post({url:"/stakingTemplates/reputation/v0/createPool",...e,headers:{"Content-Type":"application/json",...e?.headers}}),pe=e=>(e?.client??t).post({url:"/stakingTemplates/reputation/v0/createPlatform",...e,headers:{"Content-Type":"application/json",...e?.headers}}),ie=e=>(e.client??t).get({url:"/stakingTemplates/reputationLock/v0/getPlatformDeployEvent",...e}),le=e=>(e.client??t).get({responseTransformer:v,url:"/stakingTemplates/reputationLock/v0/getStakeEvent",...e}),ce=e=>(e.client??t).get({responseTransformer:O,url:"/stakingTemplates/reputationLock/v0/getCreatePoolEvent",...e}),Se=e=>(e?.client??t).post({url:"/stakingTemplates/reputationLock/v0/getReward",...e,headers:{"Content-Type":"application/json",...e?.headers}}),ke=e=>(e?.client??t).post({url:"/stakingTemplates/reputationLock/v0/partialUnstake",...e,headers:{"Content-Type":"application/json",...e?.headers}}),Re=e=>(e?.client??t).post({url:"/stakingTemplates/reputationLock/v0/restake",...e,headers:{"Content-Type":"application/json",...e?.headers}}),Te=e=>(e?.client??t).post({url:"/stakingTemplates/reputationLock/v0/stake",...e,headers:{"Content-Type":"application/json",...e?.headers}}),ge=e=>(e?.client??t).post({url:"/stakingTemplates/reputationLock/v0/unstake",...e,headers:{"Content-Type":"application/json",...e?.headers}}),Ee=e=>(e?.client??t).post({url:"/stakingTemplates/reputationLock/v0/createPool",...e,headers:{"Content-Type":"application/json",...e?.headers}}),Pe=e=>(e?.client??t).post({url:"/stakingTemplates/reputationLock/v0/createPlatform",...e,headers:{"Content-Type":"application/json",...e?.headers}}),Ve=e=>(e.client??t).get({url:"/stakingTemplates/rwa/v0/getPlatformDeployEvent",...e}),me=e=>(e.client??t).get({responseTransformer:d,url:"/stakingTemplates/rwa/v0/getStakeEvent",...e}),he=e=>(e.client??t).get({responseTransformer:F,url:"/stakingTemplates/rwa/v0/getCreatePoolEvent",...e}),ue=e=>(e?.client??t).post({url:"/stakingTemplates/rwa/v0/getReward",...e,headers:{"Content-Type":"application/json",...e?.headers}}),Ge=e=>(e?.client??t).post({url:"/stakingTemplates/rwa/v0/partialUnstake",...e,headers:{"Content-Type":"application/json",...e?.headers}}),we=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}}),ve=e=>(e?.client??t).post({url:"/stakingTemplates/rwa/v0/unstake",...e,headers:{"Content-Type":"application/json",...e?.headers}}),Oe=e=>(e?.client??t).post({url:"/stakingTemplates/rwa/v0/createPool",...e,headers:{"Content-Type":"application/json",...e?.headers}}),de=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}),Ce=e=>(e?.client??t).post({responseTransformer:C,url:"/v0/fractions/markets/search",...e,headers:{"Content-Type":"application/json",...e?.headers}}),ye=e=>(e.client??t).get({url:"/v0/fractions/markets/deployEvent",...e}),xe=e=>(e?.client??t).post({url:"/v0/fractions/platforms/deploy",...e,headers:{"Content-Type":"application/json",...e?.headers}}),Ie=e=>(e?.client??t).post({url:"/v0/fractions/platforms/deployNid",...e,headers:{"Content-Type":"application/json",...e?.headers}}),Le=e=>(e?.client??t).post({url:"/v0/fractions/fractions/approveWrapper",...e,headers:{"Content-Type":"application/json",...e?.headers}}),Ae=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}}),Be=e=>(e?.client??t).get({url:"/v0/fractions/roles",...e}),je=e=>(e?.client??t).post({url:"/v0/fractions/roles/grant",...e,headers:{"Content-Type":"application/json",...e?.headers}}),Ue=e=>(e?.client??t).post({url:"/v0/fractions/sales/fractions",...e,headers:{"Content-Type":"application/json",...e?.headers}}),We=e=>(e.client??t).get({responseTransformer:y,url:"/v0/fractions/sales/getFractionsCreatedEvent",...e}),Me=e=>(e?.client??t).post({url:"/v0/fractions/sales/approve",...e,headers:{"Content-Type":"application/json",...e?.headers}}),Ne=e=>(e?.client??t).post({url:"/v0/fractions/sales/reject",...e,headers:{"Content-Type":"application/json",...e?.headers}}),Ke=e=>(e?.client??t).post({url:"/v0/fractions/sales/recover",...e,headers:{"Content-Type":"application/json",...e?.headers}}),qe=e=>(e?.client??t).post({url:"/v0/fractions/sales/complete",...e,headers:{"Content-Type":"application/json",...e?.headers}}),ze=e=>(e?.client??t).post({url:"/v0/fractions/sales/purchase",...e,headers:{"Content-Type":"application/json",...e?.headers}}),_e=e=>(e?.client??t).post({url:"/v0/fractions/sales/withdrawPaymentToken",...e,headers:{"Content-Type":"application/json",...e?.headers}}),He=e=>(e?.client??t).post({url:"/v0/fractions/sales/vesting/editCliff",...e,headers:{"Content-Type":"application/json",...e?.headers}}),Je=e=>(e?.client??t).post({url:"/v0/fractions/sales/vesting/claim",...e,headers:{"Content-Type":"application/json",...e?.headers}}),Qe=e=>(e.client??t).get({responseTransformer:x,url:"/v0/fractions/sales/vesting/getClaimVestedTokensEvent",...e}),Xe=e=>(e?.client??t).post({responseTransformer:I,url:"/v0/fractions/sales/search",...e,headers:{"Content-Type":"application/json",...e?.headers}}),Ye=e=>(e?.client??t).post({url:"/v0/fractions/sales/setFeeCapLimit",...e,headers:{"Content-Type":"application/json",...e?.headers}}),Ze=e=>(e.client??t).get({responseTransformer:L,url:"/v0/fractions/sales/getWithdrawEvent",...e}),o=e=>(e?.client??t).post({url:"/v0/fractions/sig/nonce",...e,headers:{"Content-Type":"application/json",...e?.headers}}),s=e=>(e?.client??t).post({responseTransformer:A,url:"/v0/fractions/sig/authData",...e,headers:{"Content-Type":"application/json",...e?.headers}}),$e=e=>(e?.client??t).post({responseTransformer:b,url:"/general/estimateGas",...e,headers:{"Content-Type":"application/json",...e?.headers}}),et=e=>(e.client??t).get({responseTransformer:B,url:"/general/balance",...e}),tt=e=>(e?.client??t).post({responseTransformer:U,url:"/general/balances",...e,headers:{"Content-Type":"application/json",...e?.headers}}),rt=e=>(e?.client??t).post({responseTransformer:W,url:"/general/searchBalances",...e,headers:{"Content-Type":"application/json",...e?.headers}}),n=e=>(e?.client??t).get({url:"/issuance/erc20",...e}),p=e=>(e?.client??t).post({url:"/issuance/erc20/mint",...e,headers:{"Content-Type":"application/json",...e?.headers}}),i=e=>(e?.client??t).post({url:"/issuance/erc20/burn",...e,headers:{"Content-Type":"application/json",...e?.headers}}),at=e=>(e?.client??t).post({url:"/issuance/erc20/approve",...e,headers:{"Content-Type":"application/json",...e?.headers}}),ot=e=>(e?.client??t).post({url:"/issuance/erc20/transfer",...e,headers:{"Content-Type":"application/json",...e?.headers}}),l=e=>(e?.client??t).post({url:"/issuance/erc20/proxy",...e,headers:{"Content-Type":"application/json",...e?.headers}}),st=e=>(e?.client??t).post({url:"/issuance/erc20/grantRole",...e,headers:{"Content-Type":"application/json",...e?.headers}});var vt={createClient:(e,r={})=>ct({baseUrl:e.env.baseUrl,...r,headers:{Authorization:e.apiKey,...r.headers}}),general:{searchBalances:rt,getBalances:tt,getBalance:et,estimateGas:$e},stakingTemplates:{reputation:{createPlatform:pe,createPool:ne,getReward:te,partialUnstake:re,restake:ae,stake:oe,unstake:se,getCreatePoolEvent:ee,getPlatformDeployEvent:Z,getStakeEvent:$},reputationLock:{createPlatform:Pe,createPool:Ee,getReward:Se,partialUnstake:ke,restake:Re,stake:Te,unstake:ge,getCreatePoolEvent:ce,getPlatformDeployEvent:ie,getStakeEvent:le},rwa:{createPlatform:de,createPool:Oe,getReward:ue,notifyRewards:Fe,partialUnstake:Ge,restake:we,stake:fe,unstake:ve,getCreatePoolEvent:he,getPlatformDeployEvent:Ve,getStakeEvent:me}},staking:{roles:{getRoles:J,grantRole:Q,searchRoles:X,searchRoleEvents:Y},stakes:{getStake:H,searchStakes:z,searchStakeEvents:_},pools:{getPool:q,searchPools:K},platforms:{getPlatform:M,searchPlatforms:N}},fractions:{market:{deployMarket:xe,deployNidMarket:Ie,getMarketDeployedEvent:ye,search:Ce,get:De},roles:{grantRole:je,getRoles:Be},sales:{createFractions:Ue,approveSale:Me,rejectSale:Ne,recover:Ke,completeSale:qe,purchaseSale:ze,withdrawPaymentToken:_e,getFractionsCreatedEvent:We,search:Xe,getWithdrawEvent:Ze,setFeeCapLimit:Ye,vesting:{claim:Je,getClaimVestedTokensEvent:Qe,editCliff:He}},approvals:{approveWrapper:Le,approveWrapperToSpendErc20:Ae,approveWrapperToSpendErc721:be},compilot:{getAuthData:s,getNonce:o,erc20:n,erc1967Proxy:l,erc20Mint:p,erc20Burn:i},issuance:{getAuthData:s,getNonce:o,erc20:n,erc1967Proxy:l,erc20Mint:p,erc20Burn:i,erc20Approve:at,erc20Transfer:ot,erc20GrantRole:st}}};import{apiEnvs as St,getApiEnv as kt}from"@evergonlabs/tmi-protocol-shared/envs";var Ct=St,yt=kt;function It(e){if(e.error)throw e.error;if(!e.data)throw new Error("No response provided from the API");return e.data}export{vt as api,Ct as envs,yt as getEnv,It as handleApiResponse};
|
|
2
2
|
//# sourceMappingURL=index.js.map
|