@uniswap/client-liquidity 1.0.5 → 1.0.7
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/uniswap/liquidity/v1/auction-AuctionService_connectquery.d.ts +15 -1
- package/dist/uniswap/liquidity/v1/auction-AuctionService_connectquery.js +15 -1
- package/dist/uniswap/liquidity/v1/auction_connect.d.ts +11 -1
- package/dist/uniswap/liquidity/v1/auction_connect.js +11 -1
- package/dist/uniswap/liquidity/v1/auction_pb.d.ts +466 -0
- package/dist/uniswap/liquidity/v1/auction_pb.js +607 -1
- package/package.json +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { MethodIdempotency, MethodKind } from "@bufbuild/protobuf";
|
|
2
|
-
import { ClaimTokensRequest, ClaimTokensResponse, ExitBidAndClaimTokensRequest, ExitBidAndClaimTokensResponse, ExitBidPositionRequest, ExitBidPositionResponse, SubmitBidRequest, SubmitBidResponse, TokenCountAllocatedToLpForAuctionRequest, TokenCountAllocatedToLpForAuctionResponse, ValidateAuctionHookRequest, ValidateAuctionHookResponse, VerifyWalletRequest, VerifyWalletResponse } from "./auction_pb.js";
|
|
2
|
+
import { ClaimTokensRequest, ClaimTokensResponse, CreateAuctionRequest, CreateAuctionResponse, ExitBidAndClaimTokensRequest, ExitBidAndClaimTokensResponse, ExitBidPositionRequest, ExitBidPositionResponse, SubmitBidRequest, SubmitBidResponse, TokenCountAllocatedToLpForAuctionRequest, TokenCountAllocatedToLpForAuctionResponse, ValidateAuctionHookRequest, ValidateAuctionHookResponse, VerifyWalletRequest, VerifyWalletResponse } from "./auction_pb.js";
|
|
3
3
|
/**
|
|
4
4
|
* @generated from rpc uniswap.liquidity.v1.AuctionService.SubmitBid
|
|
5
5
|
*/
|
|
@@ -98,3 +98,17 @@ export declare const validateAuctionHook: {
|
|
|
98
98
|
readonly typeName: "uniswap.liquidity.v1.AuctionService";
|
|
99
99
|
};
|
|
100
100
|
};
|
|
101
|
+
/**
|
|
102
|
+
* @generated from rpc uniswap.liquidity.v1.AuctionService.CreateAuction
|
|
103
|
+
*/
|
|
104
|
+
export declare const createAuction: {
|
|
105
|
+
readonly localName: "createAuction";
|
|
106
|
+
readonly name: "CreateAuction";
|
|
107
|
+
readonly kind: MethodKind.Unary;
|
|
108
|
+
readonly I: typeof CreateAuctionRequest;
|
|
109
|
+
readonly O: typeof CreateAuctionResponse;
|
|
110
|
+
readonly idempotency: MethodIdempotency.NoSideEffects;
|
|
111
|
+
readonly service: {
|
|
112
|
+
readonly typeName: "uniswap.liquidity.v1.AuctionService";
|
|
113
|
+
};
|
|
114
|
+
};
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
/* eslint-disable */
|
|
4
4
|
// @ts-nocheck
|
|
5
5
|
import { MethodIdempotency, MethodKind } from "@bufbuild/protobuf";
|
|
6
|
-
import { ClaimTokensRequest, ClaimTokensResponse, ExitBidAndClaimTokensRequest, ExitBidAndClaimTokensResponse, ExitBidPositionRequest, ExitBidPositionResponse, SubmitBidRequest, SubmitBidResponse, TokenCountAllocatedToLpForAuctionRequest, TokenCountAllocatedToLpForAuctionResponse, ValidateAuctionHookRequest, ValidateAuctionHookResponse, VerifyWalletRequest, VerifyWalletResponse } from "./auction_pb.js";
|
|
6
|
+
import { ClaimTokensRequest, ClaimTokensResponse, CreateAuctionRequest, CreateAuctionResponse, ExitBidAndClaimTokensRequest, ExitBidAndClaimTokensResponse, ExitBidPositionRequest, ExitBidPositionResponse, SubmitBidRequest, SubmitBidResponse, TokenCountAllocatedToLpForAuctionRequest, TokenCountAllocatedToLpForAuctionResponse, ValidateAuctionHookRequest, ValidateAuctionHookResponse, VerifyWalletRequest, VerifyWalletResponse } from "./auction_pb.js";
|
|
7
7
|
/**
|
|
8
8
|
* @generated from rpc uniswap.liquidity.v1.AuctionService.SubmitBid
|
|
9
9
|
*/
|
|
@@ -102,3 +102,17 @@ export const validateAuctionHook = {
|
|
|
102
102
|
typeName: "uniswap.liquidity.v1.AuctionService"
|
|
103
103
|
}
|
|
104
104
|
};
|
|
105
|
+
/**
|
|
106
|
+
* @generated from rpc uniswap.liquidity.v1.AuctionService.CreateAuction
|
|
107
|
+
*/
|
|
108
|
+
export const createAuction = {
|
|
109
|
+
localName: "createAuction",
|
|
110
|
+
name: "CreateAuction",
|
|
111
|
+
kind: MethodKind.Unary,
|
|
112
|
+
I: CreateAuctionRequest,
|
|
113
|
+
O: CreateAuctionResponse,
|
|
114
|
+
idempotency: MethodIdempotency.NoSideEffects,
|
|
115
|
+
service: {
|
|
116
|
+
typeName: "uniswap.liquidity.v1.AuctionService"
|
|
117
|
+
}
|
|
118
|
+
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ClaimTokensRequest, ClaimTokensResponse, ExitBidAndClaimTokensRequest, ExitBidAndClaimTokensResponse, ExitBidPositionRequest, ExitBidPositionResponse, SubmitBidRequest, SubmitBidResponse, TokenCountAllocatedToLpForAuctionRequest, TokenCountAllocatedToLpForAuctionResponse, ValidateAuctionHookRequest, ValidateAuctionHookResponse, VerifyWalletRequest, VerifyWalletResponse } from "./auction_pb.js";
|
|
1
|
+
import { ClaimTokensRequest, ClaimTokensResponse, CreateAuctionRequest, CreateAuctionResponse, ExitBidAndClaimTokensRequest, ExitBidAndClaimTokensResponse, ExitBidPositionRequest, ExitBidPositionResponse, SubmitBidRequest, SubmitBidResponse, TokenCountAllocatedToLpForAuctionRequest, TokenCountAllocatedToLpForAuctionResponse, ValidateAuctionHookRequest, ValidateAuctionHookResponse, VerifyWalletRequest, VerifyWalletResponse } from "./auction_pb.js";
|
|
2
2
|
import { MethodIdempotency, MethodKind } from "@bufbuild/protobuf";
|
|
3
3
|
/**
|
|
4
4
|
* @generated from service uniswap.liquidity.v1.AuctionService
|
|
@@ -76,5 +76,15 @@ export declare const AuctionService: {
|
|
|
76
76
|
readonly kind: MethodKind.Unary;
|
|
77
77
|
readonly idempotency: MethodIdempotency.NoSideEffects;
|
|
78
78
|
};
|
|
79
|
+
/**
|
|
80
|
+
* @generated from rpc uniswap.liquidity.v1.AuctionService.CreateAuction
|
|
81
|
+
*/
|
|
82
|
+
readonly createAuction: {
|
|
83
|
+
readonly name: "CreateAuction";
|
|
84
|
+
readonly I: typeof CreateAuctionRequest;
|
|
85
|
+
readonly O: typeof CreateAuctionResponse;
|
|
86
|
+
readonly kind: MethodKind.Unary;
|
|
87
|
+
readonly idempotency: MethodIdempotency.NoSideEffects;
|
|
88
|
+
};
|
|
79
89
|
};
|
|
80
90
|
};
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
// @generated from file uniswap/liquidity/v1/auction.proto (package uniswap.liquidity.v1, syntax proto3)
|
|
3
3
|
/* eslint-disable */
|
|
4
4
|
// @ts-nocheck
|
|
5
|
-
import { ClaimTokensRequest, ClaimTokensResponse, ExitBidAndClaimTokensRequest, ExitBidAndClaimTokensResponse, ExitBidPositionRequest, ExitBidPositionResponse, SubmitBidRequest, SubmitBidResponse, TokenCountAllocatedToLpForAuctionRequest, TokenCountAllocatedToLpForAuctionResponse, ValidateAuctionHookRequest, ValidateAuctionHookResponse, VerifyWalletRequest, VerifyWalletResponse } from "./auction_pb.js";
|
|
5
|
+
import { ClaimTokensRequest, ClaimTokensResponse, CreateAuctionRequest, CreateAuctionResponse, ExitBidAndClaimTokensRequest, ExitBidAndClaimTokensResponse, ExitBidPositionRequest, ExitBidPositionResponse, SubmitBidRequest, SubmitBidResponse, TokenCountAllocatedToLpForAuctionRequest, TokenCountAllocatedToLpForAuctionResponse, ValidateAuctionHookRequest, ValidateAuctionHookResponse, VerifyWalletRequest, VerifyWalletResponse } from "./auction_pb.js";
|
|
6
6
|
import { MethodIdempotency, MethodKind } from "@bufbuild/protobuf";
|
|
7
7
|
/**
|
|
8
8
|
* @generated from service uniswap.liquidity.v1.AuctionService
|
|
@@ -80,5 +80,15 @@ export const AuctionService = {
|
|
|
80
80
|
kind: MethodKind.Unary,
|
|
81
81
|
idempotency: MethodIdempotency.NoSideEffects,
|
|
82
82
|
},
|
|
83
|
+
/**
|
|
84
|
+
* @generated from rpc uniswap.liquidity.v1.AuctionService.CreateAuction
|
|
85
|
+
*/
|
|
86
|
+
createAuction: {
|
|
87
|
+
name: "CreateAuction",
|
|
88
|
+
I: CreateAuctionRequest,
|
|
89
|
+
O: CreateAuctionResponse,
|
|
90
|
+
kind: MethodKind.Unary,
|
|
91
|
+
idempotency: MethodIdempotency.NoSideEffects,
|
|
92
|
+
},
|
|
83
93
|
}
|
|
84
94
|
};
|
|
@@ -1,6 +1,44 @@
|
|
|
1
1
|
import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf";
|
|
2
2
|
import { Message, proto3 } from "@bufbuild/protobuf";
|
|
3
3
|
import { AuctionValidation, BidToExit, ChainId, TransactionRequest, ValidationType } from "./types_pb.js";
|
|
4
|
+
/**
|
|
5
|
+
* @generated from enum uniswap.liquidity.v1.TokenStandard
|
|
6
|
+
*/
|
|
7
|
+
export declare enum TokenStandard {
|
|
8
|
+
/**
|
|
9
|
+
* @generated from enum value: TOKEN_STANDARD_UNSPECIFIED = 0;
|
|
10
|
+
*/
|
|
11
|
+
TOKEN_STANDARD_UNSPECIFIED = 0,
|
|
12
|
+
/**
|
|
13
|
+
* @generated from enum value: UERC20 = 1;
|
|
14
|
+
*/
|
|
15
|
+
UERC20 = 1,
|
|
16
|
+
/**
|
|
17
|
+
* @generated from enum value: USUPERC20 = 2;
|
|
18
|
+
*/
|
|
19
|
+
USUPERC20 = 2
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
* @generated from enum uniswap.liquidity.v1.PriceRangeStrategy
|
|
23
|
+
*/
|
|
24
|
+
export declare enum PriceRangeStrategy {
|
|
25
|
+
/**
|
|
26
|
+
* @generated from enum value: PRICE_RANGE_STRATEGY_UNSPECIFIED = 0;
|
|
27
|
+
*/
|
|
28
|
+
PRICE_RANGE_STRATEGY_UNSPECIFIED = 0,
|
|
29
|
+
/**
|
|
30
|
+
* @generated from enum value: CONCENTRATED_FULL_RANGE = 1;
|
|
31
|
+
*/
|
|
32
|
+
CONCENTRATED_FULL_RANGE = 1,
|
|
33
|
+
/**
|
|
34
|
+
* @generated from enum value: FULL_RANGE = 2;
|
|
35
|
+
*/
|
|
36
|
+
FULL_RANGE = 2,
|
|
37
|
+
/**
|
|
38
|
+
* @generated from enum value: CUSTOM_RANGE = 3;
|
|
39
|
+
*/
|
|
40
|
+
CUSTOM_RANGE = 3
|
|
41
|
+
}
|
|
4
42
|
/**
|
|
5
43
|
* REQUESTS & RESPONSES
|
|
6
44
|
*
|
|
@@ -422,3 +460,431 @@ export declare class HookValidationResult extends Message<HookValidationResult>
|
|
|
422
460
|
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): HookValidationResult;
|
|
423
461
|
static equals(a: HookValidationResult | PlainMessage<HookValidationResult> | undefined, b: HookValidationResult | PlainMessage<HookValidationResult> | undefined): boolean;
|
|
424
462
|
}
|
|
463
|
+
/**
|
|
464
|
+
* @generated from message uniswap.liquidity.v1.CreateAuctionRequest
|
|
465
|
+
*/
|
|
466
|
+
export declare class CreateAuctionRequest extends Message<CreateAuctionRequest> {
|
|
467
|
+
/**
|
|
468
|
+
* @generated from field: uniswap.liquidity.v1.ChainId chain_id = 1;
|
|
469
|
+
*/
|
|
470
|
+
chainId: ChainId;
|
|
471
|
+
/**
|
|
472
|
+
* Creator / transaction sender. Used for graffiti, recipients, and address derivation.
|
|
473
|
+
*
|
|
474
|
+
* @generated from field: string wallet_address = 2;
|
|
475
|
+
*/
|
|
476
|
+
walletAddress: string;
|
|
477
|
+
/**
|
|
478
|
+
* @generated from field: uniswap.liquidity.v1.TokenInfo token_info = 3;
|
|
479
|
+
*/
|
|
480
|
+
tokenInfo?: TokenInfo;
|
|
481
|
+
/**
|
|
482
|
+
* @generated from field: uniswap.liquidity.v1.AuctionConfig auction = 4;
|
|
483
|
+
*/
|
|
484
|
+
auction?: AuctionConfig;
|
|
485
|
+
/**
|
|
486
|
+
* @generated from field: uniswap.liquidity.v1.PoolConfig pool = 5;
|
|
487
|
+
*/
|
|
488
|
+
pool?: PoolConfig;
|
|
489
|
+
/**
|
|
490
|
+
* bytes32 hex; domain-separates the deterministic token/auction addresses.
|
|
491
|
+
*
|
|
492
|
+
* @generated from field: string salt = 6;
|
|
493
|
+
*/
|
|
494
|
+
salt: string;
|
|
495
|
+
/**
|
|
496
|
+
* @generated from field: optional bool simulate_transaction = 7;
|
|
497
|
+
*/
|
|
498
|
+
simulateTransaction?: boolean;
|
|
499
|
+
constructor(data?: PartialMessage<CreateAuctionRequest>);
|
|
500
|
+
static readonly runtime: typeof proto3;
|
|
501
|
+
static readonly typeName = "uniswap.liquidity.v1.CreateAuctionRequest";
|
|
502
|
+
static readonly fields: FieldList;
|
|
503
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): CreateAuctionRequest;
|
|
504
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): CreateAuctionRequest;
|
|
505
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): CreateAuctionRequest;
|
|
506
|
+
static equals(a: CreateAuctionRequest | PlainMessage<CreateAuctionRequest> | undefined, b: CreateAuctionRequest | PlainMessage<CreateAuctionRequest> | undefined): boolean;
|
|
507
|
+
}
|
|
508
|
+
/**
|
|
509
|
+
* @generated from message uniswap.liquidity.v1.TokenInfo
|
|
510
|
+
*/
|
|
511
|
+
export declare class TokenInfo extends Message<TokenInfo> {
|
|
512
|
+
/**
|
|
513
|
+
* @generated from oneof uniswap.liquidity.v1.TokenInfo.source
|
|
514
|
+
*/
|
|
515
|
+
source: {
|
|
516
|
+
/**
|
|
517
|
+
* @generated from field: uniswap.liquidity.v1.NewTokenConfig new_token = 1;
|
|
518
|
+
*/
|
|
519
|
+
value: NewTokenConfig;
|
|
520
|
+
case: "newToken";
|
|
521
|
+
} | {
|
|
522
|
+
/**
|
|
523
|
+
* @generated from field: uniswap.liquidity.v1.ExistingTokenConfig existing = 2;
|
|
524
|
+
*/
|
|
525
|
+
value: ExistingTokenConfig;
|
|
526
|
+
case: "existing";
|
|
527
|
+
} | {
|
|
528
|
+
case: undefined;
|
|
529
|
+
value?: undefined;
|
|
530
|
+
};
|
|
531
|
+
constructor(data?: PartialMessage<TokenInfo>);
|
|
532
|
+
static readonly runtime: typeof proto3;
|
|
533
|
+
static readonly typeName = "uniswap.liquidity.v1.TokenInfo";
|
|
534
|
+
static readonly fields: FieldList;
|
|
535
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): TokenInfo;
|
|
536
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): TokenInfo;
|
|
537
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): TokenInfo;
|
|
538
|
+
static equals(a: TokenInfo | PlainMessage<TokenInfo> | undefined, b: TokenInfo | PlainMessage<TokenInfo> | undefined): boolean;
|
|
539
|
+
}
|
|
540
|
+
/**
|
|
541
|
+
* @generated from message uniswap.liquidity.v1.NewTokenConfig
|
|
542
|
+
*/
|
|
543
|
+
export declare class NewTokenConfig extends Message<NewTokenConfig> {
|
|
544
|
+
/**
|
|
545
|
+
* @generated from field: uniswap.liquidity.v1.TokenStandard standard = 1;
|
|
546
|
+
*/
|
|
547
|
+
standard: TokenStandard;
|
|
548
|
+
/**
|
|
549
|
+
* @generated from field: string name = 2;
|
|
550
|
+
*/
|
|
551
|
+
name: string;
|
|
552
|
+
/**
|
|
553
|
+
* @generated from field: string symbol = 3;
|
|
554
|
+
*/
|
|
555
|
+
symbol: string;
|
|
556
|
+
/**
|
|
557
|
+
* Raw uint128 amount minted (18 decimals for new tokens) — the token's full ERC20 supply.
|
|
558
|
+
* May exceed auction_supply; the remainder (total_supply - auction_supply) is minted to
|
|
559
|
+
* the creator.
|
|
560
|
+
*
|
|
561
|
+
* @generated from field: string total_supply = 4;
|
|
562
|
+
*/
|
|
563
|
+
totalSupply: string;
|
|
564
|
+
/**
|
|
565
|
+
* @generated from field: uniswap.liquidity.v1.TokenMetadata metadata = 5;
|
|
566
|
+
*/
|
|
567
|
+
metadata?: TokenMetadata;
|
|
568
|
+
constructor(data?: PartialMessage<NewTokenConfig>);
|
|
569
|
+
static readonly runtime: typeof proto3;
|
|
570
|
+
static readonly typeName = "uniswap.liquidity.v1.NewTokenConfig";
|
|
571
|
+
static readonly fields: FieldList;
|
|
572
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): NewTokenConfig;
|
|
573
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): NewTokenConfig;
|
|
574
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): NewTokenConfig;
|
|
575
|
+
static equals(a: NewTokenConfig | PlainMessage<NewTokenConfig> | undefined, b: NewTokenConfig | PlainMessage<NewTokenConfig> | undefined): boolean;
|
|
576
|
+
}
|
|
577
|
+
/**
|
|
578
|
+
* Written on-chain into the token via the factory's tokenData. The backend only
|
|
579
|
+
* carries these values; image/website/x verification happen async post-launch.
|
|
580
|
+
*
|
|
581
|
+
* @generated from message uniswap.liquidity.v1.TokenMetadata
|
|
582
|
+
*/
|
|
583
|
+
export declare class TokenMetadata extends Message<TokenMetadata> {
|
|
584
|
+
/**
|
|
585
|
+
* @generated from field: string description = 1;
|
|
586
|
+
*/
|
|
587
|
+
description: string;
|
|
588
|
+
/**
|
|
589
|
+
* @generated from field: string website = 2;
|
|
590
|
+
*/
|
|
591
|
+
website: string;
|
|
592
|
+
/**
|
|
593
|
+
* @generated from field: string image = 3;
|
|
594
|
+
*/
|
|
595
|
+
image: string;
|
|
596
|
+
/**
|
|
597
|
+
* Tweet id proving X-handle ownership; uint256 carried as a decimal string ("0" when absent).
|
|
598
|
+
*
|
|
599
|
+
* @generated from field: string x_proof_tweet_id = 4;
|
|
600
|
+
*/
|
|
601
|
+
xProofTweetId: string;
|
|
602
|
+
constructor(data?: PartialMessage<TokenMetadata>);
|
|
603
|
+
static readonly runtime: typeof proto3;
|
|
604
|
+
static readonly typeName = "uniswap.liquidity.v1.TokenMetadata";
|
|
605
|
+
static readonly fields: FieldList;
|
|
606
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): TokenMetadata;
|
|
607
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): TokenMetadata;
|
|
608
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): TokenMetadata;
|
|
609
|
+
static equals(a: TokenMetadata | PlainMessage<TokenMetadata> | undefined, b: TokenMetadata | PlainMessage<TokenMetadata> | undefined): boolean;
|
|
610
|
+
}
|
|
611
|
+
/**
|
|
612
|
+
* @generated from message uniswap.liquidity.v1.ExistingTokenConfig
|
|
613
|
+
*/
|
|
614
|
+
export declare class ExistingTokenConfig extends Message<ExistingTokenConfig> {
|
|
615
|
+
/**
|
|
616
|
+
* @generated from field: string token_address = 1;
|
|
617
|
+
*/
|
|
618
|
+
tokenAddress: string;
|
|
619
|
+
constructor(data?: PartialMessage<ExistingTokenConfig>);
|
|
620
|
+
static readonly runtime: typeof proto3;
|
|
621
|
+
static readonly typeName = "uniswap.liquidity.v1.ExistingTokenConfig";
|
|
622
|
+
static readonly fields: FieldList;
|
|
623
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ExistingTokenConfig;
|
|
624
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ExistingTokenConfig;
|
|
625
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ExistingTokenConfig;
|
|
626
|
+
static equals(a: ExistingTokenConfig | PlainMessage<ExistingTokenConfig> | undefined, b: ExistingTokenConfig | PlainMessage<ExistingTokenConfig> | undefined): boolean;
|
|
627
|
+
}
|
|
628
|
+
/**
|
|
629
|
+
* @generated from message uniswap.liquidity.v1.AuctionConfig
|
|
630
|
+
*/
|
|
631
|
+
export declare class AuctionConfig extends Message<AuctionConfig> {
|
|
632
|
+
/**
|
|
633
|
+
* Raise-currency token address (chain implied by chain_id). Native/ETH = the zero address.
|
|
634
|
+
*
|
|
635
|
+
* @generated from field: string currency_address = 1;
|
|
636
|
+
*/
|
|
637
|
+
currencyAddress: string;
|
|
638
|
+
/**
|
|
639
|
+
* Unix seconds; translated to start/end blocks (and claim/migration blocks).
|
|
640
|
+
*
|
|
641
|
+
* @generated from field: uint64 start_time_unix = 2;
|
|
642
|
+
*/
|
|
643
|
+
startTimeUnix: bigint;
|
|
644
|
+
/**
|
|
645
|
+
* @generated from field: uint64 end_time_unix = 3;
|
|
646
|
+
*/
|
|
647
|
+
endTimeUnix: bigint;
|
|
648
|
+
/**
|
|
649
|
+
* Canonical raise-currency-per-1-token decimal (the FE converts FDV/USD to this).
|
|
650
|
+
*
|
|
651
|
+
* @generated from field: string floor_price_raise_per_token = 4;
|
|
652
|
+
*/
|
|
653
|
+
floorPriceRaisePerToken: string;
|
|
654
|
+
/**
|
|
655
|
+
* Total raw token amount deposited into the auction (== LiquidityLauncher.distributeToken.amount).
|
|
656
|
+
* Shared by new- and existing-token launches. Split three ways: the tokens actually sold, the LP
|
|
657
|
+
* carve-out (reserved_supply_for_lp, in PoolConfig), and returned_supply (returned to the creator).
|
|
658
|
+
* The sold amount is derived: auction_supply - reserved_supply_for_lp - returned_supply.
|
|
659
|
+
*
|
|
660
|
+
* @generated from field: string auction_supply = 5;
|
|
661
|
+
*/
|
|
662
|
+
auctionSupply: string;
|
|
663
|
+
/**
|
|
664
|
+
* Optional KYC/bid validation hook.
|
|
665
|
+
*
|
|
666
|
+
* @generated from field: optional string validation_hook = 6;
|
|
667
|
+
*/
|
|
668
|
+
validationHook?: string;
|
|
669
|
+
/**
|
|
670
|
+
* Portion of auction_supply returned to the creator after the auction settles, via the
|
|
671
|
+
* IStrategy contract. Subtracted, together with reserved_supply_for_lp, from auction_supply
|
|
672
|
+
* to derive the tokens actually sold. Empty/omitted means nothing is returned.
|
|
673
|
+
*
|
|
674
|
+
* @generated from field: string returned_supply = 7;
|
|
675
|
+
*/
|
|
676
|
+
returnedSupply: string;
|
|
677
|
+
constructor(data?: PartialMessage<AuctionConfig>);
|
|
678
|
+
static readonly runtime: typeof proto3;
|
|
679
|
+
static readonly typeName = "uniswap.liquidity.v1.AuctionConfig";
|
|
680
|
+
static readonly fields: FieldList;
|
|
681
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): AuctionConfig;
|
|
682
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): AuctionConfig;
|
|
683
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): AuctionConfig;
|
|
684
|
+
static equals(a: AuctionConfig | PlainMessage<AuctionConfig> | undefined, b: AuctionConfig | PlainMessage<AuctionConfig> | undefined): boolean;
|
|
685
|
+
}
|
|
686
|
+
/**
|
|
687
|
+
* @generated from message uniswap.liquidity.v1.PoolConfig
|
|
688
|
+
*/
|
|
689
|
+
export declare class PoolConfig extends Message<PoolConfig> {
|
|
690
|
+
/**
|
|
691
|
+
* LP fee in hundredths of a bip (e.g. 3000 = 0.30%). Ignored when dynamic_fee is set.
|
|
692
|
+
*
|
|
693
|
+
* @generated from field: uint32 fee = 1;
|
|
694
|
+
*/
|
|
695
|
+
fee: number;
|
|
696
|
+
/**
|
|
697
|
+
* @generated from field: bool dynamic_fee = 2;
|
|
698
|
+
*/
|
|
699
|
+
dynamicFee: boolean;
|
|
700
|
+
/**
|
|
701
|
+
* @generated from field: uniswap.liquidity.v1.PriceRangeStrategy price_range_strategy = 3;
|
|
702
|
+
*/
|
|
703
|
+
priceRangeStrategy: PriceRangeStrategy;
|
|
704
|
+
/**
|
|
705
|
+
* Only used when price_range_strategy = CUSTOM_RANGE.
|
|
706
|
+
*
|
|
707
|
+
* @generated from field: repeated uniswap.liquidity.v1.CustomPriceRange custom_ranges = 4;
|
|
708
|
+
*/
|
|
709
|
+
customRanges: CustomPriceRange[];
|
|
710
|
+
/**
|
|
711
|
+
* Raw token amount reserved for post-auction LP (reservedTokenAmountForLP).
|
|
712
|
+
*
|
|
713
|
+
* @generated from field: string reserved_supply_for_lp = 5;
|
|
714
|
+
*/
|
|
715
|
+
reservedSupplyForLp: string;
|
|
716
|
+
/**
|
|
717
|
+
* @generated from field: uniswap.liquidity.v1.PostAuctionLiquidityAllocation lp_allocation = 6;
|
|
718
|
+
*/
|
|
719
|
+
lpAllocation?: PostAuctionLiquidityAllocation;
|
|
720
|
+
/**
|
|
721
|
+
* Resolves recipient / positionRecipient / auction tokensRecipient. Falls back to wallet_address.
|
|
722
|
+
*
|
|
723
|
+
* @generated from field: string pool_owner = 7;
|
|
724
|
+
*/
|
|
725
|
+
poolOwner: string;
|
|
726
|
+
constructor(data?: PartialMessage<PoolConfig>);
|
|
727
|
+
static readonly runtime: typeof proto3;
|
|
728
|
+
static readonly typeName = "uniswap.liquidity.v1.PoolConfig";
|
|
729
|
+
static readonly fields: FieldList;
|
|
730
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): PoolConfig;
|
|
731
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): PoolConfig;
|
|
732
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): PoolConfig;
|
|
733
|
+
static equals(a: PoolConfig | PlainMessage<PoolConfig> | undefined, b: PoolConfig | PlainMessage<PoolConfig> | undefined): boolean;
|
|
734
|
+
}
|
|
735
|
+
/**
|
|
736
|
+
* @generated from message uniswap.liquidity.v1.CustomPriceRange
|
|
737
|
+
*/
|
|
738
|
+
export declare class CustomPriceRange extends Message<CustomPriceRange> {
|
|
739
|
+
/**
|
|
740
|
+
* Decimal strings (e.g. "-50", "100"). String like every other numeric field here,
|
|
741
|
+
* to keep an exact wire value for the BL's tick-boundary conversion. The interval
|
|
742
|
+
* between min and max must contain 0% (the auction clearing / final price): both
|
|
743
|
+
* bounds strictly above or strictly below zero are rejected.
|
|
744
|
+
*
|
|
745
|
+
* @generated from field: string min_percent_from_clearing = 1;
|
|
746
|
+
*/
|
|
747
|
+
minPercentFromClearing: string;
|
|
748
|
+
/**
|
|
749
|
+
* @generated from field: string max_percent_from_clearing = 2;
|
|
750
|
+
*/
|
|
751
|
+
maxPercentFromClearing: string;
|
|
752
|
+
/**
|
|
753
|
+
* @generated from field: uint32 liquidity_percent = 3;
|
|
754
|
+
*/
|
|
755
|
+
liquidityPercent: number;
|
|
756
|
+
constructor(data?: PartialMessage<CustomPriceRange>);
|
|
757
|
+
static readonly runtime: typeof proto3;
|
|
758
|
+
static readonly typeName = "uniswap.liquidity.v1.CustomPriceRange";
|
|
759
|
+
static readonly fields: FieldList;
|
|
760
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): CustomPriceRange;
|
|
761
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): CustomPriceRange;
|
|
762
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): CustomPriceRange;
|
|
763
|
+
static equals(a: CustomPriceRange | PlainMessage<CustomPriceRange> | undefined, b: CustomPriceRange | PlainMessage<CustomPriceRange> | undefined): boolean;
|
|
764
|
+
}
|
|
765
|
+
/**
|
|
766
|
+
* @generated from message uniswap.liquidity.v1.PostAuctionLiquidityAllocation
|
|
767
|
+
*/
|
|
768
|
+
export declare class PostAuctionLiquidityAllocation extends Message<PostAuctionLiquidityAllocation> {
|
|
769
|
+
/**
|
|
770
|
+
* @generated from oneof uniswap.liquidity.v1.PostAuctionLiquidityAllocation.kind
|
|
771
|
+
*/
|
|
772
|
+
kind: {
|
|
773
|
+
/**
|
|
774
|
+
* 25–100 inclusive (enforced when building the launcher schedule). LP share of post-auction supply.
|
|
775
|
+
*
|
|
776
|
+
* @generated from field: uint32 single_percent = 1;
|
|
777
|
+
*/
|
|
778
|
+
value: number;
|
|
779
|
+
case: "singlePercent";
|
|
780
|
+
} | {
|
|
781
|
+
/**
|
|
782
|
+
* @generated from field: uniswap.liquidity.v1.TieredAllocation tiered = 2;
|
|
783
|
+
*/
|
|
784
|
+
value: TieredAllocation;
|
|
785
|
+
case: "tiered";
|
|
786
|
+
} | {
|
|
787
|
+
case: undefined;
|
|
788
|
+
value?: undefined;
|
|
789
|
+
};
|
|
790
|
+
constructor(data?: PartialMessage<PostAuctionLiquidityAllocation>);
|
|
791
|
+
static readonly runtime: typeof proto3;
|
|
792
|
+
static readonly typeName = "uniswap.liquidity.v1.PostAuctionLiquidityAllocation";
|
|
793
|
+
static readonly fields: FieldList;
|
|
794
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): PostAuctionLiquidityAllocation;
|
|
795
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): PostAuctionLiquidityAllocation;
|
|
796
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): PostAuctionLiquidityAllocation;
|
|
797
|
+
static equals(a: PostAuctionLiquidityAllocation | PlainMessage<PostAuctionLiquidityAllocation> | undefined, b: PostAuctionLiquidityAllocation | PlainMessage<PostAuctionLiquidityAllocation> | undefined): boolean;
|
|
798
|
+
}
|
|
799
|
+
/**
|
|
800
|
+
* @generated from message uniswap.liquidity.v1.TieredAllocation
|
|
801
|
+
*/
|
|
802
|
+
export declare class TieredAllocation extends Message<TieredAllocation> {
|
|
803
|
+
/**
|
|
804
|
+
* Bounded tiers may appear in any order; the service sorts them by increasing inclusive
|
|
805
|
+
* `raise_milestone` before validating strict increase and encoding on-chain brackets.
|
|
806
|
+
*
|
|
807
|
+
* @generated from field: repeated uniswap.liquidity.v1.AllocationTier tiers = 1;
|
|
808
|
+
*/
|
|
809
|
+
tiers: AllocationTier[];
|
|
810
|
+
constructor(data?: PartialMessage<TieredAllocation>);
|
|
811
|
+
static readonly runtime: typeof proto3;
|
|
812
|
+
static readonly typeName = "uniswap.liquidity.v1.TieredAllocation";
|
|
813
|
+
static readonly fields: FieldList;
|
|
814
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): TieredAllocation;
|
|
815
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): TieredAllocation;
|
|
816
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): TieredAllocation;
|
|
817
|
+
static equals(a: TieredAllocation | PlainMessage<TieredAllocation> | undefined, b: TieredAllocation | PlainMessage<TieredAllocation> | undefined): boolean;
|
|
818
|
+
}
|
|
819
|
+
/**
|
|
820
|
+
* @generated from message uniswap.liquidity.v1.AllocationTier
|
|
821
|
+
*/
|
|
822
|
+
export declare class AllocationTier extends Message<AllocationTier> {
|
|
823
|
+
/**
|
|
824
|
+
* Inclusive upper bound on cumulative currency raised as a human-readable non-negative decimal
|
|
825
|
+
* string in the auction raise currency (fractional digits allowed; max precision is enforced
|
|
826
|
+
* server-side from that currency's decimals). Bounded tiers may be listed in any order.
|
|
827
|
+
* Exactly one tier must use an empty `raise_milestone` or the literal `unbounded`
|
|
828
|
+
* (case-insensitive) for the open-ended tail — all raises above the previous inclusive bound.
|
|
829
|
+
*
|
|
830
|
+
* @generated from field: string raise_milestone = 1;
|
|
831
|
+
*/
|
|
832
|
+
raiseMilestone: string;
|
|
833
|
+
/**
|
|
834
|
+
* 25–100 inclusive (enforced in CreateAuction translation); LP share for this band.
|
|
835
|
+
*
|
|
836
|
+
* @generated from field: uint32 percent = 2;
|
|
837
|
+
*/
|
|
838
|
+
percent: number;
|
|
839
|
+
constructor(data?: PartialMessage<AllocationTier>);
|
|
840
|
+
static readonly runtime: typeof proto3;
|
|
841
|
+
static readonly typeName = "uniswap.liquidity.v1.AllocationTier";
|
|
842
|
+
static readonly fields: FieldList;
|
|
843
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): AllocationTier;
|
|
844
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): AllocationTier;
|
|
845
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): AllocationTier;
|
|
846
|
+
static equals(a: AllocationTier | PlainMessage<AllocationTier> | undefined, b: AllocationTier | PlainMessage<AllocationTier> | undefined): boolean;
|
|
847
|
+
}
|
|
848
|
+
/**
|
|
849
|
+
* @generated from message uniswap.liquidity.v1.CreateAuctionResponse
|
|
850
|
+
*/
|
|
851
|
+
export declare class CreateAuctionResponse extends Message<CreateAuctionResponse> {
|
|
852
|
+
/**
|
|
853
|
+
* @generated from field: string request_id = 1;
|
|
854
|
+
*/
|
|
855
|
+
requestId: string;
|
|
856
|
+
/**
|
|
857
|
+
* Ordered. Usually a single LiquidityLauncher.multicall; >1 only when a prior
|
|
858
|
+
* ERC20 approve(Permit2) is required for the existing-token path.
|
|
859
|
+
*
|
|
860
|
+
* @generated from field: repeated uniswap.liquidity.v1.TransactionRequest transactions = 2;
|
|
861
|
+
*/
|
|
862
|
+
transactions: TransactionRequest[];
|
|
863
|
+
/**
|
|
864
|
+
* When true, a wallet supporting EIP-5792 / EIP-7702 batched execution MAY submit
|
|
865
|
+
* `transactions` as one atomic bundle; other wallets send them sequentially.
|
|
866
|
+
*
|
|
867
|
+
* @generated from field: bool atomically_bundleable = 3;
|
|
868
|
+
*/
|
|
869
|
+
atomicallyBundleable: boolean;
|
|
870
|
+
/**
|
|
871
|
+
* @generated from field: string predicted_token_address = 4;
|
|
872
|
+
*/
|
|
873
|
+
predictedTokenAddress: string;
|
|
874
|
+
/**
|
|
875
|
+
* @generated from field: string predicted_auction_address = 5;
|
|
876
|
+
*/
|
|
877
|
+
predictedAuctionAddress: string;
|
|
878
|
+
/**
|
|
879
|
+
* @generated from field: optional string gas_fee = 6;
|
|
880
|
+
*/
|
|
881
|
+
gasFee?: string;
|
|
882
|
+
constructor(data?: PartialMessage<CreateAuctionResponse>);
|
|
883
|
+
static readonly runtime: typeof proto3;
|
|
884
|
+
static readonly typeName = "uniswap.liquidity.v1.CreateAuctionResponse";
|
|
885
|
+
static readonly fields: FieldList;
|
|
886
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): CreateAuctionResponse;
|
|
887
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): CreateAuctionResponse;
|
|
888
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): CreateAuctionResponse;
|
|
889
|
+
static equals(a: CreateAuctionResponse | PlainMessage<CreateAuctionResponse> | undefined, b: CreateAuctionResponse | PlainMessage<CreateAuctionResponse> | undefined): boolean;
|
|
890
|
+
}
|
|
@@ -2,8 +2,61 @@
|
|
|
2
2
|
// @generated from file uniswap/liquidity/v1/auction.proto (package uniswap.liquidity.v1, syntax proto3)
|
|
3
3
|
/* eslint-disable */
|
|
4
4
|
// @ts-nocheck
|
|
5
|
-
import { Message, proto3 } from "@bufbuild/protobuf";
|
|
5
|
+
import { Message, proto3, protoInt64 } from "@bufbuild/protobuf";
|
|
6
6
|
import { AuctionValidation, BidToExit, ChainId, TransactionRequest, ValidationType } from "./types_pb.js";
|
|
7
|
+
/**
|
|
8
|
+
* @generated from enum uniswap.liquidity.v1.TokenStandard
|
|
9
|
+
*/
|
|
10
|
+
export var TokenStandard;
|
|
11
|
+
(function (TokenStandard) {
|
|
12
|
+
/**
|
|
13
|
+
* @generated from enum value: TOKEN_STANDARD_UNSPECIFIED = 0;
|
|
14
|
+
*/
|
|
15
|
+
TokenStandard[TokenStandard["TOKEN_STANDARD_UNSPECIFIED"] = 0] = "TOKEN_STANDARD_UNSPECIFIED";
|
|
16
|
+
/**
|
|
17
|
+
* @generated from enum value: UERC20 = 1;
|
|
18
|
+
*/
|
|
19
|
+
TokenStandard[TokenStandard["UERC20"] = 1] = "UERC20";
|
|
20
|
+
/**
|
|
21
|
+
* @generated from enum value: USUPERC20 = 2;
|
|
22
|
+
*/
|
|
23
|
+
TokenStandard[TokenStandard["USUPERC20"] = 2] = "USUPERC20";
|
|
24
|
+
})(TokenStandard || (TokenStandard = {}));
|
|
25
|
+
// Retrieve enum metadata with: proto3.getEnumType(TokenStandard)
|
|
26
|
+
proto3.util.setEnumType(TokenStandard, "uniswap.liquidity.v1.TokenStandard", [
|
|
27
|
+
{ no: 0, name: "TOKEN_STANDARD_UNSPECIFIED" },
|
|
28
|
+
{ no: 1, name: "UERC20" },
|
|
29
|
+
{ no: 2, name: "USUPERC20" },
|
|
30
|
+
]);
|
|
31
|
+
/**
|
|
32
|
+
* @generated from enum uniswap.liquidity.v1.PriceRangeStrategy
|
|
33
|
+
*/
|
|
34
|
+
export var PriceRangeStrategy;
|
|
35
|
+
(function (PriceRangeStrategy) {
|
|
36
|
+
/**
|
|
37
|
+
* @generated from enum value: PRICE_RANGE_STRATEGY_UNSPECIFIED = 0;
|
|
38
|
+
*/
|
|
39
|
+
PriceRangeStrategy[PriceRangeStrategy["PRICE_RANGE_STRATEGY_UNSPECIFIED"] = 0] = "PRICE_RANGE_STRATEGY_UNSPECIFIED";
|
|
40
|
+
/**
|
|
41
|
+
* @generated from enum value: CONCENTRATED_FULL_RANGE = 1;
|
|
42
|
+
*/
|
|
43
|
+
PriceRangeStrategy[PriceRangeStrategy["CONCENTRATED_FULL_RANGE"] = 1] = "CONCENTRATED_FULL_RANGE";
|
|
44
|
+
/**
|
|
45
|
+
* @generated from enum value: FULL_RANGE = 2;
|
|
46
|
+
*/
|
|
47
|
+
PriceRangeStrategy[PriceRangeStrategy["FULL_RANGE"] = 2] = "FULL_RANGE";
|
|
48
|
+
/**
|
|
49
|
+
* @generated from enum value: CUSTOM_RANGE = 3;
|
|
50
|
+
*/
|
|
51
|
+
PriceRangeStrategy[PriceRangeStrategy["CUSTOM_RANGE"] = 3] = "CUSTOM_RANGE";
|
|
52
|
+
})(PriceRangeStrategy || (PriceRangeStrategy = {}));
|
|
53
|
+
// Retrieve enum metadata with: proto3.getEnumType(PriceRangeStrategy)
|
|
54
|
+
proto3.util.setEnumType(PriceRangeStrategy, "uniswap.liquidity.v1.PriceRangeStrategy", [
|
|
55
|
+
{ no: 0, name: "PRICE_RANGE_STRATEGY_UNSPECIFIED" },
|
|
56
|
+
{ no: 1, name: "CONCENTRATED_FULL_RANGE" },
|
|
57
|
+
{ no: 2, name: "FULL_RANGE" },
|
|
58
|
+
{ no: 3, name: "CUSTOM_RANGE" },
|
|
59
|
+
]);
|
|
7
60
|
/**
|
|
8
61
|
* REQUESTS & RESPONSES
|
|
9
62
|
*
|
|
@@ -600,3 +653,556 @@ HookValidationResult.fields = proto3.util.newFieldList(() => [
|
|
|
600
653
|
{ no: 4, name: "hook_name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
601
654
|
{ no: 5, name: "description", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
602
655
|
]);
|
|
656
|
+
/**
|
|
657
|
+
* @generated from message uniswap.liquidity.v1.CreateAuctionRequest
|
|
658
|
+
*/
|
|
659
|
+
export class CreateAuctionRequest extends Message {
|
|
660
|
+
constructor(data) {
|
|
661
|
+
super();
|
|
662
|
+
/**
|
|
663
|
+
* @generated from field: uniswap.liquidity.v1.ChainId chain_id = 1;
|
|
664
|
+
*/
|
|
665
|
+
this.chainId = ChainId.CHAIN_ID_UNSPECIFIED;
|
|
666
|
+
/**
|
|
667
|
+
* Creator / transaction sender. Used for graffiti, recipients, and address derivation.
|
|
668
|
+
*
|
|
669
|
+
* @generated from field: string wallet_address = 2;
|
|
670
|
+
*/
|
|
671
|
+
this.walletAddress = "";
|
|
672
|
+
/**
|
|
673
|
+
* bytes32 hex; domain-separates the deterministic token/auction addresses.
|
|
674
|
+
*
|
|
675
|
+
* @generated from field: string salt = 6;
|
|
676
|
+
*/
|
|
677
|
+
this.salt = "";
|
|
678
|
+
proto3.util.initPartial(data, this);
|
|
679
|
+
}
|
|
680
|
+
static fromBinary(bytes, options) {
|
|
681
|
+
return new CreateAuctionRequest().fromBinary(bytes, options);
|
|
682
|
+
}
|
|
683
|
+
static fromJson(jsonValue, options) {
|
|
684
|
+
return new CreateAuctionRequest().fromJson(jsonValue, options);
|
|
685
|
+
}
|
|
686
|
+
static fromJsonString(jsonString, options) {
|
|
687
|
+
return new CreateAuctionRequest().fromJsonString(jsonString, options);
|
|
688
|
+
}
|
|
689
|
+
static equals(a, b) {
|
|
690
|
+
return proto3.util.equals(CreateAuctionRequest, a, b);
|
|
691
|
+
}
|
|
692
|
+
}
|
|
693
|
+
CreateAuctionRequest.runtime = proto3;
|
|
694
|
+
CreateAuctionRequest.typeName = "uniswap.liquidity.v1.CreateAuctionRequest";
|
|
695
|
+
CreateAuctionRequest.fields = proto3.util.newFieldList(() => [
|
|
696
|
+
{ no: 1, name: "chain_id", kind: "enum", T: proto3.getEnumType(ChainId) },
|
|
697
|
+
{ no: 2, name: "wallet_address", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
698
|
+
{ no: 3, name: "token_info", kind: "message", T: TokenInfo },
|
|
699
|
+
{ no: 4, name: "auction", kind: "message", T: AuctionConfig },
|
|
700
|
+
{ no: 5, name: "pool", kind: "message", T: PoolConfig },
|
|
701
|
+
{ no: 6, name: "salt", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
702
|
+
{ no: 7, name: "simulate_transaction", kind: "scalar", T: 8 /* ScalarType.BOOL */, opt: true },
|
|
703
|
+
]);
|
|
704
|
+
/**
|
|
705
|
+
* @generated from message uniswap.liquidity.v1.TokenInfo
|
|
706
|
+
*/
|
|
707
|
+
export class TokenInfo extends Message {
|
|
708
|
+
constructor(data) {
|
|
709
|
+
super();
|
|
710
|
+
/**
|
|
711
|
+
* @generated from oneof uniswap.liquidity.v1.TokenInfo.source
|
|
712
|
+
*/
|
|
713
|
+
this.source = { case: undefined };
|
|
714
|
+
proto3.util.initPartial(data, this);
|
|
715
|
+
}
|
|
716
|
+
static fromBinary(bytes, options) {
|
|
717
|
+
return new TokenInfo().fromBinary(bytes, options);
|
|
718
|
+
}
|
|
719
|
+
static fromJson(jsonValue, options) {
|
|
720
|
+
return new TokenInfo().fromJson(jsonValue, options);
|
|
721
|
+
}
|
|
722
|
+
static fromJsonString(jsonString, options) {
|
|
723
|
+
return new TokenInfo().fromJsonString(jsonString, options);
|
|
724
|
+
}
|
|
725
|
+
static equals(a, b) {
|
|
726
|
+
return proto3.util.equals(TokenInfo, a, b);
|
|
727
|
+
}
|
|
728
|
+
}
|
|
729
|
+
TokenInfo.runtime = proto3;
|
|
730
|
+
TokenInfo.typeName = "uniswap.liquidity.v1.TokenInfo";
|
|
731
|
+
TokenInfo.fields = proto3.util.newFieldList(() => [
|
|
732
|
+
{ no: 1, name: "new_token", kind: "message", T: NewTokenConfig, oneof: "source" },
|
|
733
|
+
{ no: 2, name: "existing", kind: "message", T: ExistingTokenConfig, oneof: "source" },
|
|
734
|
+
]);
|
|
735
|
+
/**
|
|
736
|
+
* @generated from message uniswap.liquidity.v1.NewTokenConfig
|
|
737
|
+
*/
|
|
738
|
+
export class NewTokenConfig extends Message {
|
|
739
|
+
constructor(data) {
|
|
740
|
+
super();
|
|
741
|
+
/**
|
|
742
|
+
* @generated from field: uniswap.liquidity.v1.TokenStandard standard = 1;
|
|
743
|
+
*/
|
|
744
|
+
this.standard = TokenStandard.TOKEN_STANDARD_UNSPECIFIED;
|
|
745
|
+
/**
|
|
746
|
+
* @generated from field: string name = 2;
|
|
747
|
+
*/
|
|
748
|
+
this.name = "";
|
|
749
|
+
/**
|
|
750
|
+
* @generated from field: string symbol = 3;
|
|
751
|
+
*/
|
|
752
|
+
this.symbol = "";
|
|
753
|
+
/**
|
|
754
|
+
* Raw uint128 amount minted (18 decimals for new tokens) — the token's full ERC20 supply.
|
|
755
|
+
* May exceed auction_supply; the remainder (total_supply - auction_supply) is minted to
|
|
756
|
+
* the creator.
|
|
757
|
+
*
|
|
758
|
+
* @generated from field: string total_supply = 4;
|
|
759
|
+
*/
|
|
760
|
+
this.totalSupply = "";
|
|
761
|
+
proto3.util.initPartial(data, this);
|
|
762
|
+
}
|
|
763
|
+
static fromBinary(bytes, options) {
|
|
764
|
+
return new NewTokenConfig().fromBinary(bytes, options);
|
|
765
|
+
}
|
|
766
|
+
static fromJson(jsonValue, options) {
|
|
767
|
+
return new NewTokenConfig().fromJson(jsonValue, options);
|
|
768
|
+
}
|
|
769
|
+
static fromJsonString(jsonString, options) {
|
|
770
|
+
return new NewTokenConfig().fromJsonString(jsonString, options);
|
|
771
|
+
}
|
|
772
|
+
static equals(a, b) {
|
|
773
|
+
return proto3.util.equals(NewTokenConfig, a, b);
|
|
774
|
+
}
|
|
775
|
+
}
|
|
776
|
+
NewTokenConfig.runtime = proto3;
|
|
777
|
+
NewTokenConfig.typeName = "uniswap.liquidity.v1.NewTokenConfig";
|
|
778
|
+
NewTokenConfig.fields = proto3.util.newFieldList(() => [
|
|
779
|
+
{ no: 1, name: "standard", kind: "enum", T: proto3.getEnumType(TokenStandard) },
|
|
780
|
+
{ no: 2, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
781
|
+
{ no: 3, name: "symbol", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
782
|
+
{ no: 4, name: "total_supply", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
783
|
+
{ no: 5, name: "metadata", kind: "message", T: TokenMetadata },
|
|
784
|
+
]);
|
|
785
|
+
/**
|
|
786
|
+
* Written on-chain into the token via the factory's tokenData. The backend only
|
|
787
|
+
* carries these values; image/website/x verification happen async post-launch.
|
|
788
|
+
*
|
|
789
|
+
* @generated from message uniswap.liquidity.v1.TokenMetadata
|
|
790
|
+
*/
|
|
791
|
+
export class TokenMetadata extends Message {
|
|
792
|
+
constructor(data) {
|
|
793
|
+
super();
|
|
794
|
+
/**
|
|
795
|
+
* @generated from field: string description = 1;
|
|
796
|
+
*/
|
|
797
|
+
this.description = "";
|
|
798
|
+
/**
|
|
799
|
+
* @generated from field: string website = 2;
|
|
800
|
+
*/
|
|
801
|
+
this.website = "";
|
|
802
|
+
/**
|
|
803
|
+
* @generated from field: string image = 3;
|
|
804
|
+
*/
|
|
805
|
+
this.image = "";
|
|
806
|
+
/**
|
|
807
|
+
* Tweet id proving X-handle ownership; uint256 carried as a decimal string ("0" when absent).
|
|
808
|
+
*
|
|
809
|
+
* @generated from field: string x_proof_tweet_id = 4;
|
|
810
|
+
*/
|
|
811
|
+
this.xProofTweetId = "";
|
|
812
|
+
proto3.util.initPartial(data, this);
|
|
813
|
+
}
|
|
814
|
+
static fromBinary(bytes, options) {
|
|
815
|
+
return new TokenMetadata().fromBinary(bytes, options);
|
|
816
|
+
}
|
|
817
|
+
static fromJson(jsonValue, options) {
|
|
818
|
+
return new TokenMetadata().fromJson(jsonValue, options);
|
|
819
|
+
}
|
|
820
|
+
static fromJsonString(jsonString, options) {
|
|
821
|
+
return new TokenMetadata().fromJsonString(jsonString, options);
|
|
822
|
+
}
|
|
823
|
+
static equals(a, b) {
|
|
824
|
+
return proto3.util.equals(TokenMetadata, a, b);
|
|
825
|
+
}
|
|
826
|
+
}
|
|
827
|
+
TokenMetadata.runtime = proto3;
|
|
828
|
+
TokenMetadata.typeName = "uniswap.liquidity.v1.TokenMetadata";
|
|
829
|
+
TokenMetadata.fields = proto3.util.newFieldList(() => [
|
|
830
|
+
{ no: 1, name: "description", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
831
|
+
{ no: 2, name: "website", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
832
|
+
{ no: 3, name: "image", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
833
|
+
{ no: 4, name: "x_proof_tweet_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
834
|
+
]);
|
|
835
|
+
/**
|
|
836
|
+
* @generated from message uniswap.liquidity.v1.ExistingTokenConfig
|
|
837
|
+
*/
|
|
838
|
+
export class ExistingTokenConfig extends Message {
|
|
839
|
+
constructor(data) {
|
|
840
|
+
super();
|
|
841
|
+
/**
|
|
842
|
+
* @generated from field: string token_address = 1;
|
|
843
|
+
*/
|
|
844
|
+
this.tokenAddress = "";
|
|
845
|
+
proto3.util.initPartial(data, this);
|
|
846
|
+
}
|
|
847
|
+
static fromBinary(bytes, options) {
|
|
848
|
+
return new ExistingTokenConfig().fromBinary(bytes, options);
|
|
849
|
+
}
|
|
850
|
+
static fromJson(jsonValue, options) {
|
|
851
|
+
return new ExistingTokenConfig().fromJson(jsonValue, options);
|
|
852
|
+
}
|
|
853
|
+
static fromJsonString(jsonString, options) {
|
|
854
|
+
return new ExistingTokenConfig().fromJsonString(jsonString, options);
|
|
855
|
+
}
|
|
856
|
+
static equals(a, b) {
|
|
857
|
+
return proto3.util.equals(ExistingTokenConfig, a, b);
|
|
858
|
+
}
|
|
859
|
+
}
|
|
860
|
+
ExistingTokenConfig.runtime = proto3;
|
|
861
|
+
ExistingTokenConfig.typeName = "uniswap.liquidity.v1.ExistingTokenConfig";
|
|
862
|
+
ExistingTokenConfig.fields = proto3.util.newFieldList(() => [
|
|
863
|
+
{ no: 1, name: "token_address", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
864
|
+
]);
|
|
865
|
+
/**
|
|
866
|
+
* @generated from message uniswap.liquidity.v1.AuctionConfig
|
|
867
|
+
*/
|
|
868
|
+
export class AuctionConfig extends Message {
|
|
869
|
+
constructor(data) {
|
|
870
|
+
super();
|
|
871
|
+
/**
|
|
872
|
+
* Raise-currency token address (chain implied by chain_id). Native/ETH = the zero address.
|
|
873
|
+
*
|
|
874
|
+
* @generated from field: string currency_address = 1;
|
|
875
|
+
*/
|
|
876
|
+
this.currencyAddress = "";
|
|
877
|
+
/**
|
|
878
|
+
* Unix seconds; translated to start/end blocks (and claim/migration blocks).
|
|
879
|
+
*
|
|
880
|
+
* @generated from field: uint64 start_time_unix = 2;
|
|
881
|
+
*/
|
|
882
|
+
this.startTimeUnix = protoInt64.zero;
|
|
883
|
+
/**
|
|
884
|
+
* @generated from field: uint64 end_time_unix = 3;
|
|
885
|
+
*/
|
|
886
|
+
this.endTimeUnix = protoInt64.zero;
|
|
887
|
+
/**
|
|
888
|
+
* Canonical raise-currency-per-1-token decimal (the FE converts FDV/USD to this).
|
|
889
|
+
*
|
|
890
|
+
* @generated from field: string floor_price_raise_per_token = 4;
|
|
891
|
+
*/
|
|
892
|
+
this.floorPriceRaisePerToken = "";
|
|
893
|
+
/**
|
|
894
|
+
* Total raw token amount deposited into the auction (== LiquidityLauncher.distributeToken.amount).
|
|
895
|
+
* Shared by new- and existing-token launches. Split three ways: the tokens actually sold, the LP
|
|
896
|
+
* carve-out (reserved_supply_for_lp, in PoolConfig), and returned_supply (returned to the creator).
|
|
897
|
+
* The sold amount is derived: auction_supply - reserved_supply_for_lp - returned_supply.
|
|
898
|
+
*
|
|
899
|
+
* @generated from field: string auction_supply = 5;
|
|
900
|
+
*/
|
|
901
|
+
this.auctionSupply = "";
|
|
902
|
+
/**
|
|
903
|
+
* Portion of auction_supply returned to the creator after the auction settles, via the
|
|
904
|
+
* IStrategy contract. Subtracted, together with reserved_supply_for_lp, from auction_supply
|
|
905
|
+
* to derive the tokens actually sold. Empty/omitted means nothing is returned.
|
|
906
|
+
*
|
|
907
|
+
* @generated from field: string returned_supply = 7;
|
|
908
|
+
*/
|
|
909
|
+
this.returnedSupply = "";
|
|
910
|
+
proto3.util.initPartial(data, this);
|
|
911
|
+
}
|
|
912
|
+
static fromBinary(bytes, options) {
|
|
913
|
+
return new AuctionConfig().fromBinary(bytes, options);
|
|
914
|
+
}
|
|
915
|
+
static fromJson(jsonValue, options) {
|
|
916
|
+
return new AuctionConfig().fromJson(jsonValue, options);
|
|
917
|
+
}
|
|
918
|
+
static fromJsonString(jsonString, options) {
|
|
919
|
+
return new AuctionConfig().fromJsonString(jsonString, options);
|
|
920
|
+
}
|
|
921
|
+
static equals(a, b) {
|
|
922
|
+
return proto3.util.equals(AuctionConfig, a, b);
|
|
923
|
+
}
|
|
924
|
+
}
|
|
925
|
+
AuctionConfig.runtime = proto3;
|
|
926
|
+
AuctionConfig.typeName = "uniswap.liquidity.v1.AuctionConfig";
|
|
927
|
+
AuctionConfig.fields = proto3.util.newFieldList(() => [
|
|
928
|
+
{ no: 1, name: "currency_address", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
929
|
+
{ no: 2, name: "start_time_unix", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
|
|
930
|
+
{ no: 3, name: "end_time_unix", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
|
|
931
|
+
{ no: 4, name: "floor_price_raise_per_token", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
932
|
+
{ no: 5, name: "auction_supply", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
933
|
+
{ no: 6, name: "validation_hook", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
934
|
+
{ no: 7, name: "returned_supply", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
935
|
+
]);
|
|
936
|
+
/**
|
|
937
|
+
* @generated from message uniswap.liquidity.v1.PoolConfig
|
|
938
|
+
*/
|
|
939
|
+
export class PoolConfig extends Message {
|
|
940
|
+
constructor(data) {
|
|
941
|
+
super();
|
|
942
|
+
/**
|
|
943
|
+
* LP fee in hundredths of a bip (e.g. 3000 = 0.30%). Ignored when dynamic_fee is set.
|
|
944
|
+
*
|
|
945
|
+
* @generated from field: uint32 fee = 1;
|
|
946
|
+
*/
|
|
947
|
+
this.fee = 0;
|
|
948
|
+
/**
|
|
949
|
+
* @generated from field: bool dynamic_fee = 2;
|
|
950
|
+
*/
|
|
951
|
+
this.dynamicFee = false;
|
|
952
|
+
/**
|
|
953
|
+
* @generated from field: uniswap.liquidity.v1.PriceRangeStrategy price_range_strategy = 3;
|
|
954
|
+
*/
|
|
955
|
+
this.priceRangeStrategy = PriceRangeStrategy.PRICE_RANGE_STRATEGY_UNSPECIFIED;
|
|
956
|
+
/**
|
|
957
|
+
* Only used when price_range_strategy = CUSTOM_RANGE.
|
|
958
|
+
*
|
|
959
|
+
* @generated from field: repeated uniswap.liquidity.v1.CustomPriceRange custom_ranges = 4;
|
|
960
|
+
*/
|
|
961
|
+
this.customRanges = [];
|
|
962
|
+
/**
|
|
963
|
+
* Raw token amount reserved for post-auction LP (reservedTokenAmountForLP).
|
|
964
|
+
*
|
|
965
|
+
* @generated from field: string reserved_supply_for_lp = 5;
|
|
966
|
+
*/
|
|
967
|
+
this.reservedSupplyForLp = "";
|
|
968
|
+
/**
|
|
969
|
+
* Resolves recipient / positionRecipient / auction tokensRecipient. Falls back to wallet_address.
|
|
970
|
+
*
|
|
971
|
+
* @generated from field: string pool_owner = 7;
|
|
972
|
+
*/
|
|
973
|
+
this.poolOwner = "";
|
|
974
|
+
proto3.util.initPartial(data, this);
|
|
975
|
+
}
|
|
976
|
+
static fromBinary(bytes, options) {
|
|
977
|
+
return new PoolConfig().fromBinary(bytes, options);
|
|
978
|
+
}
|
|
979
|
+
static fromJson(jsonValue, options) {
|
|
980
|
+
return new PoolConfig().fromJson(jsonValue, options);
|
|
981
|
+
}
|
|
982
|
+
static fromJsonString(jsonString, options) {
|
|
983
|
+
return new PoolConfig().fromJsonString(jsonString, options);
|
|
984
|
+
}
|
|
985
|
+
static equals(a, b) {
|
|
986
|
+
return proto3.util.equals(PoolConfig, a, b);
|
|
987
|
+
}
|
|
988
|
+
}
|
|
989
|
+
PoolConfig.runtime = proto3;
|
|
990
|
+
PoolConfig.typeName = "uniswap.liquidity.v1.PoolConfig";
|
|
991
|
+
PoolConfig.fields = proto3.util.newFieldList(() => [
|
|
992
|
+
{ no: 1, name: "fee", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
|
|
993
|
+
{ no: 2, name: "dynamic_fee", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
|
|
994
|
+
{ no: 3, name: "price_range_strategy", kind: "enum", T: proto3.getEnumType(PriceRangeStrategy) },
|
|
995
|
+
{ no: 4, name: "custom_ranges", kind: "message", T: CustomPriceRange, repeated: true },
|
|
996
|
+
{ no: 5, name: "reserved_supply_for_lp", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
997
|
+
{ no: 6, name: "lp_allocation", kind: "message", T: PostAuctionLiquidityAllocation },
|
|
998
|
+
{ no: 7, name: "pool_owner", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
999
|
+
]);
|
|
1000
|
+
/**
|
|
1001
|
+
* @generated from message uniswap.liquidity.v1.CustomPriceRange
|
|
1002
|
+
*/
|
|
1003
|
+
export class CustomPriceRange extends Message {
|
|
1004
|
+
constructor(data) {
|
|
1005
|
+
super();
|
|
1006
|
+
/**
|
|
1007
|
+
* Decimal strings (e.g. "-50", "100"). String like every other numeric field here,
|
|
1008
|
+
* to keep an exact wire value for the BL's tick-boundary conversion. The interval
|
|
1009
|
+
* between min and max must contain 0% (the auction clearing / final price): both
|
|
1010
|
+
* bounds strictly above or strictly below zero are rejected.
|
|
1011
|
+
*
|
|
1012
|
+
* @generated from field: string min_percent_from_clearing = 1;
|
|
1013
|
+
*/
|
|
1014
|
+
this.minPercentFromClearing = "";
|
|
1015
|
+
/**
|
|
1016
|
+
* @generated from field: string max_percent_from_clearing = 2;
|
|
1017
|
+
*/
|
|
1018
|
+
this.maxPercentFromClearing = "";
|
|
1019
|
+
/**
|
|
1020
|
+
* @generated from field: uint32 liquidity_percent = 3;
|
|
1021
|
+
*/
|
|
1022
|
+
this.liquidityPercent = 0;
|
|
1023
|
+
proto3.util.initPartial(data, this);
|
|
1024
|
+
}
|
|
1025
|
+
static fromBinary(bytes, options) {
|
|
1026
|
+
return new CustomPriceRange().fromBinary(bytes, options);
|
|
1027
|
+
}
|
|
1028
|
+
static fromJson(jsonValue, options) {
|
|
1029
|
+
return new CustomPriceRange().fromJson(jsonValue, options);
|
|
1030
|
+
}
|
|
1031
|
+
static fromJsonString(jsonString, options) {
|
|
1032
|
+
return new CustomPriceRange().fromJsonString(jsonString, options);
|
|
1033
|
+
}
|
|
1034
|
+
static equals(a, b) {
|
|
1035
|
+
return proto3.util.equals(CustomPriceRange, a, b);
|
|
1036
|
+
}
|
|
1037
|
+
}
|
|
1038
|
+
CustomPriceRange.runtime = proto3;
|
|
1039
|
+
CustomPriceRange.typeName = "uniswap.liquidity.v1.CustomPriceRange";
|
|
1040
|
+
CustomPriceRange.fields = proto3.util.newFieldList(() => [
|
|
1041
|
+
{ no: 1, name: "min_percent_from_clearing", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
1042
|
+
{ no: 2, name: "max_percent_from_clearing", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
1043
|
+
{ no: 3, name: "liquidity_percent", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
|
|
1044
|
+
]);
|
|
1045
|
+
/**
|
|
1046
|
+
* @generated from message uniswap.liquidity.v1.PostAuctionLiquidityAllocation
|
|
1047
|
+
*/
|
|
1048
|
+
export class PostAuctionLiquidityAllocation extends Message {
|
|
1049
|
+
constructor(data) {
|
|
1050
|
+
super();
|
|
1051
|
+
/**
|
|
1052
|
+
* @generated from oneof uniswap.liquidity.v1.PostAuctionLiquidityAllocation.kind
|
|
1053
|
+
*/
|
|
1054
|
+
this.kind = { case: undefined };
|
|
1055
|
+
proto3.util.initPartial(data, this);
|
|
1056
|
+
}
|
|
1057
|
+
static fromBinary(bytes, options) {
|
|
1058
|
+
return new PostAuctionLiquidityAllocation().fromBinary(bytes, options);
|
|
1059
|
+
}
|
|
1060
|
+
static fromJson(jsonValue, options) {
|
|
1061
|
+
return new PostAuctionLiquidityAllocation().fromJson(jsonValue, options);
|
|
1062
|
+
}
|
|
1063
|
+
static fromJsonString(jsonString, options) {
|
|
1064
|
+
return new PostAuctionLiquidityAllocation().fromJsonString(jsonString, options);
|
|
1065
|
+
}
|
|
1066
|
+
static equals(a, b) {
|
|
1067
|
+
return proto3.util.equals(PostAuctionLiquidityAllocation, a, b);
|
|
1068
|
+
}
|
|
1069
|
+
}
|
|
1070
|
+
PostAuctionLiquidityAllocation.runtime = proto3;
|
|
1071
|
+
PostAuctionLiquidityAllocation.typeName = "uniswap.liquidity.v1.PostAuctionLiquidityAllocation";
|
|
1072
|
+
PostAuctionLiquidityAllocation.fields = proto3.util.newFieldList(() => [
|
|
1073
|
+
{ no: 1, name: "single_percent", kind: "scalar", T: 13 /* ScalarType.UINT32 */, oneof: "kind" },
|
|
1074
|
+
{ no: 2, name: "tiered", kind: "message", T: TieredAllocation, oneof: "kind" },
|
|
1075
|
+
]);
|
|
1076
|
+
/**
|
|
1077
|
+
* @generated from message uniswap.liquidity.v1.TieredAllocation
|
|
1078
|
+
*/
|
|
1079
|
+
export class TieredAllocation extends Message {
|
|
1080
|
+
constructor(data) {
|
|
1081
|
+
super();
|
|
1082
|
+
/**
|
|
1083
|
+
* Bounded tiers may appear in any order; the service sorts them by increasing inclusive
|
|
1084
|
+
* `raise_milestone` before validating strict increase and encoding on-chain brackets.
|
|
1085
|
+
*
|
|
1086
|
+
* @generated from field: repeated uniswap.liquidity.v1.AllocationTier tiers = 1;
|
|
1087
|
+
*/
|
|
1088
|
+
this.tiers = [];
|
|
1089
|
+
proto3.util.initPartial(data, this);
|
|
1090
|
+
}
|
|
1091
|
+
static fromBinary(bytes, options) {
|
|
1092
|
+
return new TieredAllocation().fromBinary(bytes, options);
|
|
1093
|
+
}
|
|
1094
|
+
static fromJson(jsonValue, options) {
|
|
1095
|
+
return new TieredAllocation().fromJson(jsonValue, options);
|
|
1096
|
+
}
|
|
1097
|
+
static fromJsonString(jsonString, options) {
|
|
1098
|
+
return new TieredAllocation().fromJsonString(jsonString, options);
|
|
1099
|
+
}
|
|
1100
|
+
static equals(a, b) {
|
|
1101
|
+
return proto3.util.equals(TieredAllocation, a, b);
|
|
1102
|
+
}
|
|
1103
|
+
}
|
|
1104
|
+
TieredAllocation.runtime = proto3;
|
|
1105
|
+
TieredAllocation.typeName = "uniswap.liquidity.v1.TieredAllocation";
|
|
1106
|
+
TieredAllocation.fields = proto3.util.newFieldList(() => [
|
|
1107
|
+
{ no: 1, name: "tiers", kind: "message", T: AllocationTier, repeated: true },
|
|
1108
|
+
]);
|
|
1109
|
+
/**
|
|
1110
|
+
* @generated from message uniswap.liquidity.v1.AllocationTier
|
|
1111
|
+
*/
|
|
1112
|
+
export class AllocationTier extends Message {
|
|
1113
|
+
constructor(data) {
|
|
1114
|
+
super();
|
|
1115
|
+
/**
|
|
1116
|
+
* Inclusive upper bound on cumulative currency raised as a human-readable non-negative decimal
|
|
1117
|
+
* string in the auction raise currency (fractional digits allowed; max precision is enforced
|
|
1118
|
+
* server-side from that currency's decimals). Bounded tiers may be listed in any order.
|
|
1119
|
+
* Exactly one tier must use an empty `raise_milestone` or the literal `unbounded`
|
|
1120
|
+
* (case-insensitive) for the open-ended tail — all raises above the previous inclusive bound.
|
|
1121
|
+
*
|
|
1122
|
+
* @generated from field: string raise_milestone = 1;
|
|
1123
|
+
*/
|
|
1124
|
+
this.raiseMilestone = "";
|
|
1125
|
+
/**
|
|
1126
|
+
* 25–100 inclusive (enforced in CreateAuction translation); LP share for this band.
|
|
1127
|
+
*
|
|
1128
|
+
* @generated from field: uint32 percent = 2;
|
|
1129
|
+
*/
|
|
1130
|
+
this.percent = 0;
|
|
1131
|
+
proto3.util.initPartial(data, this);
|
|
1132
|
+
}
|
|
1133
|
+
static fromBinary(bytes, options) {
|
|
1134
|
+
return new AllocationTier().fromBinary(bytes, options);
|
|
1135
|
+
}
|
|
1136
|
+
static fromJson(jsonValue, options) {
|
|
1137
|
+
return new AllocationTier().fromJson(jsonValue, options);
|
|
1138
|
+
}
|
|
1139
|
+
static fromJsonString(jsonString, options) {
|
|
1140
|
+
return new AllocationTier().fromJsonString(jsonString, options);
|
|
1141
|
+
}
|
|
1142
|
+
static equals(a, b) {
|
|
1143
|
+
return proto3.util.equals(AllocationTier, a, b);
|
|
1144
|
+
}
|
|
1145
|
+
}
|
|
1146
|
+
AllocationTier.runtime = proto3;
|
|
1147
|
+
AllocationTier.typeName = "uniswap.liquidity.v1.AllocationTier";
|
|
1148
|
+
AllocationTier.fields = proto3.util.newFieldList(() => [
|
|
1149
|
+
{ no: 1, name: "raise_milestone", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
1150
|
+
{ no: 2, name: "percent", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
|
|
1151
|
+
]);
|
|
1152
|
+
/**
|
|
1153
|
+
* @generated from message uniswap.liquidity.v1.CreateAuctionResponse
|
|
1154
|
+
*/
|
|
1155
|
+
export class CreateAuctionResponse extends Message {
|
|
1156
|
+
constructor(data) {
|
|
1157
|
+
super();
|
|
1158
|
+
/**
|
|
1159
|
+
* @generated from field: string request_id = 1;
|
|
1160
|
+
*/
|
|
1161
|
+
this.requestId = "";
|
|
1162
|
+
/**
|
|
1163
|
+
* Ordered. Usually a single LiquidityLauncher.multicall; >1 only when a prior
|
|
1164
|
+
* ERC20 approve(Permit2) is required for the existing-token path.
|
|
1165
|
+
*
|
|
1166
|
+
* @generated from field: repeated uniswap.liquidity.v1.TransactionRequest transactions = 2;
|
|
1167
|
+
*/
|
|
1168
|
+
this.transactions = [];
|
|
1169
|
+
/**
|
|
1170
|
+
* When true, a wallet supporting EIP-5792 / EIP-7702 batched execution MAY submit
|
|
1171
|
+
* `transactions` as one atomic bundle; other wallets send them sequentially.
|
|
1172
|
+
*
|
|
1173
|
+
* @generated from field: bool atomically_bundleable = 3;
|
|
1174
|
+
*/
|
|
1175
|
+
this.atomicallyBundleable = false;
|
|
1176
|
+
/**
|
|
1177
|
+
* @generated from field: string predicted_token_address = 4;
|
|
1178
|
+
*/
|
|
1179
|
+
this.predictedTokenAddress = "";
|
|
1180
|
+
/**
|
|
1181
|
+
* @generated from field: string predicted_auction_address = 5;
|
|
1182
|
+
*/
|
|
1183
|
+
this.predictedAuctionAddress = "";
|
|
1184
|
+
proto3.util.initPartial(data, this);
|
|
1185
|
+
}
|
|
1186
|
+
static fromBinary(bytes, options) {
|
|
1187
|
+
return new CreateAuctionResponse().fromBinary(bytes, options);
|
|
1188
|
+
}
|
|
1189
|
+
static fromJson(jsonValue, options) {
|
|
1190
|
+
return new CreateAuctionResponse().fromJson(jsonValue, options);
|
|
1191
|
+
}
|
|
1192
|
+
static fromJsonString(jsonString, options) {
|
|
1193
|
+
return new CreateAuctionResponse().fromJsonString(jsonString, options);
|
|
1194
|
+
}
|
|
1195
|
+
static equals(a, b) {
|
|
1196
|
+
return proto3.util.equals(CreateAuctionResponse, a, b);
|
|
1197
|
+
}
|
|
1198
|
+
}
|
|
1199
|
+
CreateAuctionResponse.runtime = proto3;
|
|
1200
|
+
CreateAuctionResponse.typeName = "uniswap.liquidity.v1.CreateAuctionResponse";
|
|
1201
|
+
CreateAuctionResponse.fields = proto3.util.newFieldList(() => [
|
|
1202
|
+
{ no: 1, name: "request_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
1203
|
+
{ no: 2, name: "transactions", kind: "message", T: TransactionRequest, repeated: true },
|
|
1204
|
+
{ no: 3, name: "atomically_bundleable", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
|
|
1205
|
+
{ no: 4, name: "predicted_token_address", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
1206
|
+
{ no: 5, name: "predicted_auction_address", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
1207
|
+
{ no: 6, name: "gas_fee", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
1208
|
+
]);
|