@evergonlabs/tmi-protocol-api-client 0.12.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.d.cts +36 -19
- package/dist/index.d.ts +36 -19
- package/package.json +3 -3
package/dist/index.d.cts
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;
|
|
@@ -2000,7 +2000,7 @@ type GetV0FractionsMarketsGetData = {
|
|
|
2000
2000
|
/**
|
|
2001
2001
|
* Supported chain id
|
|
2002
2002
|
*/
|
|
2003
|
-
chainId: '11155111' | '31337';
|
|
2003
|
+
chainId: '11155111' | '72080' | '31337';
|
|
2004
2004
|
/**
|
|
2005
2005
|
* Address of deployed Platform contract
|
|
2006
2006
|
*/
|
|
@@ -2037,7 +2037,7 @@ type PostV0FractionsMarketsSearchData = {
|
|
|
2037
2037
|
/**
|
|
2038
2038
|
* Supported chain id
|
|
2039
2039
|
*/
|
|
2040
|
-
chainId?: '11155111' | '31337';
|
|
2040
|
+
chainId?: '11155111' | '72080' | '31337';
|
|
2041
2041
|
owner?: string;
|
|
2042
2042
|
};
|
|
2043
2043
|
};
|
|
@@ -2093,7 +2093,24 @@ type GetV0FractionsMarketsDeployEventResponses = {
|
|
|
2093
2093
|
};
|
|
2094
2094
|
type GetV0FractionsMarketsDeployEventResponse = GetV0FractionsMarketsDeployEventResponses[keyof GetV0FractionsMarketsDeployEventResponses];
|
|
2095
2095
|
type PostV0FractionsPlatformsDeployData = {
|
|
2096
|
-
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
|
+
};
|
|
2097
2114
|
path?: never;
|
|
2098
2115
|
query?: never;
|
|
2099
2116
|
url: '/v0/fractions/platforms/deploy';
|
|
@@ -2495,7 +2512,7 @@ type PostV0FractionsSalesSearchData = {
|
|
|
2495
2512
|
/**
|
|
2496
2513
|
* Supported chain id
|
|
2497
2514
|
*/
|
|
2498
|
-
chainId?: '11155111' | '31337';
|
|
2515
|
+
chainId?: '11155111' | '72080' | '31337';
|
|
2499
2516
|
owner?: string;
|
|
2500
2517
|
/**
|
|
2501
2518
|
* Address of deployed Platform contract
|
|
@@ -2604,7 +2621,7 @@ type PostV0FractionsSigNonceResponses = {
|
|
|
2604
2621
|
/**
|
|
2605
2622
|
* Supported chain id
|
|
2606
2623
|
*/
|
|
2607
|
-
chainId: '11155111' | '31337';
|
|
2624
|
+
chainId: '11155111' | '72080' | '31337';
|
|
2608
2625
|
};
|
|
2609
2626
|
};
|
|
2610
2627
|
type PostV0FractionsSigNonceResponse = PostV0FractionsSigNonceResponses[keyof PostV0FractionsSigNonceResponses];
|
|
@@ -2631,7 +2648,7 @@ type PostV0FractionsSigAuthDataResponses = {
|
|
|
2631
2648
|
/**
|
|
2632
2649
|
* Supported chain id
|
|
2633
2650
|
*/
|
|
2634
|
-
chainId: '11155111' | '31337';
|
|
2651
|
+
chainId: '11155111' | '72080' | '31337';
|
|
2635
2652
|
nonce: bigint;
|
|
2636
2653
|
blockExpiration: bigint;
|
|
2637
2654
|
callData: unknown;
|
|
@@ -3136,7 +3153,7 @@ declare const api: {
|
|
|
3136
3153
|
getAuthData: <ThrowOnError extends boolean = false>(options?: Options<PostV0FractionsSigAuthDataData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<{
|
|
3137
3154
|
marketAddress: string;
|
|
3138
3155
|
userAddress: string;
|
|
3139
|
-
chainId: "11155111" | "31337";
|
|
3156
|
+
chainId: "11155111" | "72080" | "31337";
|
|
3140
3157
|
nonce: bigint;
|
|
3141
3158
|
blockExpiration: bigint;
|
|
3142
3159
|
callData: unknown;
|
|
@@ -3144,7 +3161,7 @@ declare const api: {
|
|
|
3144
3161
|
getNonce: <ThrowOnError extends boolean = false>(options?: Options<PostV0FractionsSigNonceData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<{
|
|
3145
3162
|
marketAddress: string;
|
|
3146
3163
|
userAddress: string;
|
|
3147
|
-
chainId: "11155111" | "31337";
|
|
3164
|
+
chainId: "11155111" | "72080" | "31337";
|
|
3148
3165
|
}, ZodError, ThrowOnError>;
|
|
3149
3166
|
erc20: <ThrowOnError extends boolean = false>(options?: Options<GetIssuanceErc20Data, ThrowOnError>) => _hey_api_client_fetch.RequestResult<IssuanceDeployErc20Schema, ZodError, ThrowOnError>;
|
|
3150
3167
|
erc1967Proxy: <ThrowOnError extends boolean = false>(options?: Options<PostIssuanceErc20ProxyData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<IssuanceDeployErc1967Schema, ZodError, ThrowOnError>;
|
|
@@ -3155,7 +3172,7 @@ declare const api: {
|
|
|
3155
3172
|
getAuthData: <ThrowOnError extends boolean = false>(options?: Options<PostV0FractionsSigAuthDataData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<{
|
|
3156
3173
|
marketAddress: string;
|
|
3157
3174
|
userAddress: string;
|
|
3158
|
-
chainId: "11155111" | "31337";
|
|
3175
|
+
chainId: "11155111" | "72080" | "31337";
|
|
3159
3176
|
nonce: bigint;
|
|
3160
3177
|
blockExpiration: bigint;
|
|
3161
3178
|
callData: unknown;
|
|
@@ -3163,7 +3180,7 @@ declare const api: {
|
|
|
3163
3180
|
getNonce: <ThrowOnError extends boolean = false>(options?: Options<PostV0FractionsSigNonceData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<{
|
|
3164
3181
|
marketAddress: string;
|
|
3165
3182
|
userAddress: string;
|
|
3166
|
-
chainId: "11155111" | "31337";
|
|
3183
|
+
chainId: "11155111" | "72080" | "31337";
|
|
3167
3184
|
}, ZodError, ThrowOnError>;
|
|
3168
3185
|
erc20: <ThrowOnError extends boolean = false>(options?: Options<GetIssuanceErc20Data, ThrowOnError>) => _hey_api_client_fetch.RequestResult<IssuanceDeployErc20Schema, ZodError, ThrowOnError>;
|
|
3169
3186
|
erc1967Proxy: <ThrowOnError extends boolean = false>(options?: Options<PostIssuanceErc20ProxyData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<IssuanceDeployErc1967Schema, ZodError, ThrowOnError>;
|
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;
|
|
@@ -2000,7 +2000,7 @@ type GetV0FractionsMarketsGetData = {
|
|
|
2000
2000
|
/**
|
|
2001
2001
|
* Supported chain id
|
|
2002
2002
|
*/
|
|
2003
|
-
chainId: '11155111' | '31337';
|
|
2003
|
+
chainId: '11155111' | '72080' | '31337';
|
|
2004
2004
|
/**
|
|
2005
2005
|
* Address of deployed Platform contract
|
|
2006
2006
|
*/
|
|
@@ -2037,7 +2037,7 @@ type PostV0FractionsMarketsSearchData = {
|
|
|
2037
2037
|
/**
|
|
2038
2038
|
* Supported chain id
|
|
2039
2039
|
*/
|
|
2040
|
-
chainId?: '11155111' | '31337';
|
|
2040
|
+
chainId?: '11155111' | '72080' | '31337';
|
|
2041
2041
|
owner?: string;
|
|
2042
2042
|
};
|
|
2043
2043
|
};
|
|
@@ -2093,7 +2093,24 @@ type GetV0FractionsMarketsDeployEventResponses = {
|
|
|
2093
2093
|
};
|
|
2094
2094
|
type GetV0FractionsMarketsDeployEventResponse = GetV0FractionsMarketsDeployEventResponses[keyof GetV0FractionsMarketsDeployEventResponses];
|
|
2095
2095
|
type PostV0FractionsPlatformsDeployData = {
|
|
2096
|
-
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
|
+
};
|
|
2097
2114
|
path?: never;
|
|
2098
2115
|
query?: never;
|
|
2099
2116
|
url: '/v0/fractions/platforms/deploy';
|
|
@@ -2495,7 +2512,7 @@ type PostV0FractionsSalesSearchData = {
|
|
|
2495
2512
|
/**
|
|
2496
2513
|
* Supported chain id
|
|
2497
2514
|
*/
|
|
2498
|
-
chainId?: '11155111' | '31337';
|
|
2515
|
+
chainId?: '11155111' | '72080' | '31337';
|
|
2499
2516
|
owner?: string;
|
|
2500
2517
|
/**
|
|
2501
2518
|
* Address of deployed Platform contract
|
|
@@ -2604,7 +2621,7 @@ type PostV0FractionsSigNonceResponses = {
|
|
|
2604
2621
|
/**
|
|
2605
2622
|
* Supported chain id
|
|
2606
2623
|
*/
|
|
2607
|
-
chainId: '11155111' | '31337';
|
|
2624
|
+
chainId: '11155111' | '72080' | '31337';
|
|
2608
2625
|
};
|
|
2609
2626
|
};
|
|
2610
2627
|
type PostV0FractionsSigNonceResponse = PostV0FractionsSigNonceResponses[keyof PostV0FractionsSigNonceResponses];
|
|
@@ -2631,7 +2648,7 @@ type PostV0FractionsSigAuthDataResponses = {
|
|
|
2631
2648
|
/**
|
|
2632
2649
|
* Supported chain id
|
|
2633
2650
|
*/
|
|
2634
|
-
chainId: '11155111' | '31337';
|
|
2651
|
+
chainId: '11155111' | '72080' | '31337';
|
|
2635
2652
|
nonce: bigint;
|
|
2636
2653
|
blockExpiration: bigint;
|
|
2637
2654
|
callData: unknown;
|
|
@@ -3136,7 +3153,7 @@ declare const api: {
|
|
|
3136
3153
|
getAuthData: <ThrowOnError extends boolean = false>(options?: Options<PostV0FractionsSigAuthDataData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<{
|
|
3137
3154
|
marketAddress: string;
|
|
3138
3155
|
userAddress: string;
|
|
3139
|
-
chainId: "11155111" | "31337";
|
|
3156
|
+
chainId: "11155111" | "72080" | "31337";
|
|
3140
3157
|
nonce: bigint;
|
|
3141
3158
|
blockExpiration: bigint;
|
|
3142
3159
|
callData: unknown;
|
|
@@ -3144,7 +3161,7 @@ declare const api: {
|
|
|
3144
3161
|
getNonce: <ThrowOnError extends boolean = false>(options?: Options<PostV0FractionsSigNonceData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<{
|
|
3145
3162
|
marketAddress: string;
|
|
3146
3163
|
userAddress: string;
|
|
3147
|
-
chainId: "11155111" | "31337";
|
|
3164
|
+
chainId: "11155111" | "72080" | "31337";
|
|
3148
3165
|
}, ZodError, ThrowOnError>;
|
|
3149
3166
|
erc20: <ThrowOnError extends boolean = false>(options?: Options<GetIssuanceErc20Data, ThrowOnError>) => _hey_api_client_fetch.RequestResult<IssuanceDeployErc20Schema, ZodError, ThrowOnError>;
|
|
3150
3167
|
erc1967Proxy: <ThrowOnError extends boolean = false>(options?: Options<PostIssuanceErc20ProxyData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<IssuanceDeployErc1967Schema, ZodError, ThrowOnError>;
|
|
@@ -3155,7 +3172,7 @@ declare const api: {
|
|
|
3155
3172
|
getAuthData: <ThrowOnError extends boolean = false>(options?: Options<PostV0FractionsSigAuthDataData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<{
|
|
3156
3173
|
marketAddress: string;
|
|
3157
3174
|
userAddress: string;
|
|
3158
|
-
chainId: "11155111" | "31337";
|
|
3175
|
+
chainId: "11155111" | "72080" | "31337";
|
|
3159
3176
|
nonce: bigint;
|
|
3160
3177
|
blockExpiration: bigint;
|
|
3161
3178
|
callData: unknown;
|
|
@@ -3163,7 +3180,7 @@ declare const api: {
|
|
|
3163
3180
|
getNonce: <ThrowOnError extends boolean = false>(options?: Options<PostV0FractionsSigNonceData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<{
|
|
3164
3181
|
marketAddress: string;
|
|
3165
3182
|
userAddress: string;
|
|
3166
|
-
chainId: "11155111" | "31337";
|
|
3183
|
+
chainId: "11155111" | "72080" | "31337";
|
|
3167
3184
|
}, ZodError, ThrowOnError>;
|
|
3168
3185
|
erc20: <ThrowOnError extends boolean = false>(options?: Options<GetIssuanceErc20Data, ThrowOnError>) => _hey_api_client_fetch.RequestResult<IssuanceDeployErc20Schema, ZodError, ThrowOnError>;
|
|
3169
3186
|
erc1967Proxy: <ThrowOnError extends boolean = false>(options?: Options<PostIssuanceErc20ProxyData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<IssuanceDeployErc1967Schema, ZodError, ThrowOnError>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@evergonlabs/tmi-protocol-api-client",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.13.0",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"exports": {
|
|
@@ -35,8 +35,8 @@
|
|
|
35
35
|
"rimraf": "^6.0.1",
|
|
36
36
|
"tsx": "^4.19.2",
|
|
37
37
|
"typescript": "5.7.3",
|
|
38
|
-
"@evergonlabs/
|
|
39
|
-
"@evergonlabs/
|
|
38
|
+
"@evergonlabs/internal": "0.0.0",
|
|
39
|
+
"@evergonlabs/tmi-protocol-api": "0.0.0"
|
|
40
40
|
},
|
|
41
41
|
"engines": {
|
|
42
42
|
"node": ">=18.14"
|