@uniswap/client-liquidity 1.0.6 → 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.
|
@@ -554,7 +554,9 @@ export declare class NewTokenConfig extends Message<NewTokenConfig> {
|
|
|
554
554
|
*/
|
|
555
555
|
symbol: string;
|
|
556
556
|
/**
|
|
557
|
-
* Raw uint128 amount (18 decimals for new tokens).
|
|
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.
|
|
558
560
|
*
|
|
559
561
|
* @generated from field: string total_supply = 4;
|
|
560
562
|
*/
|
|
@@ -614,12 +616,6 @@ export declare class ExistingTokenConfig extends Message<ExistingTokenConfig> {
|
|
|
614
616
|
* @generated from field: string token_address = 1;
|
|
615
617
|
*/
|
|
616
618
|
tokenAddress: string;
|
|
617
|
-
/**
|
|
618
|
-
* Raw uint128 amount committed to the launch.
|
|
619
|
-
*
|
|
620
|
-
* @generated from field: string total_supply = 2;
|
|
621
|
-
*/
|
|
622
|
-
totalSupply: string;
|
|
623
619
|
constructor(data?: PartialMessage<ExistingTokenConfig>);
|
|
624
620
|
static readonly runtime: typeof proto3;
|
|
625
621
|
static readonly typeName = "uniswap.liquidity.v1.ExistingTokenConfig";
|
|
@@ -656,7 +652,10 @@ export declare class AuctionConfig extends Message<AuctionConfig> {
|
|
|
656
652
|
*/
|
|
657
653
|
floorPriceRaisePerToken: string;
|
|
658
654
|
/**
|
|
659
|
-
*
|
|
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.
|
|
660
659
|
*
|
|
661
660
|
* @generated from field: string auction_supply = 5;
|
|
662
661
|
*/
|
|
@@ -667,6 +666,14 @@ export declare class AuctionConfig extends Message<AuctionConfig> {
|
|
|
667
666
|
* @generated from field: optional string validation_hook = 6;
|
|
668
667
|
*/
|
|
669
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;
|
|
670
677
|
constructor(data?: PartialMessage<AuctionConfig>);
|
|
671
678
|
static readonly runtime: typeof proto3;
|
|
672
679
|
static readonly typeName = "uniswap.liquidity.v1.AuctionConfig";
|
|
@@ -731,7 +738,9 @@ export declare class PoolConfig extends Message<PoolConfig> {
|
|
|
731
738
|
export declare class CustomPriceRange extends Message<CustomPriceRange> {
|
|
732
739
|
/**
|
|
733
740
|
* Decimal strings (e.g. "-50", "100"). String like every other numeric field here,
|
|
734
|
-
* to keep an exact wire value for the BL's tick-boundary conversion.
|
|
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.
|
|
735
744
|
*
|
|
736
745
|
* @generated from field: string min_percent_from_clearing = 1;
|
|
737
746
|
*/
|
|
@@ -762,6 +771,8 @@ export declare class PostAuctionLiquidityAllocation extends Message<PostAuctionL
|
|
|
762
771
|
*/
|
|
763
772
|
kind: {
|
|
764
773
|
/**
|
|
774
|
+
* 25–100 inclusive (enforced when building the launcher schedule). LP share of post-auction supply.
|
|
775
|
+
*
|
|
765
776
|
* @generated from field: uint32 single_percent = 1;
|
|
766
777
|
*/
|
|
767
778
|
value: number;
|
|
@@ -790,6 +801,9 @@ export declare class PostAuctionLiquidityAllocation extends Message<PostAuctionL
|
|
|
790
801
|
*/
|
|
791
802
|
export declare class TieredAllocation extends Message<TieredAllocation> {
|
|
792
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
|
+
*
|
|
793
807
|
* @generated from field: repeated uniswap.liquidity.v1.AllocationTier tiers = 1;
|
|
794
808
|
*/
|
|
795
809
|
tiers: AllocationTier[];
|
|
@@ -807,12 +821,18 @@ export declare class TieredAllocation extends Message<TieredAllocation> {
|
|
|
807
821
|
*/
|
|
808
822
|
export declare class AllocationTier extends Message<AllocationTier> {
|
|
809
823
|
/**
|
|
810
|
-
*
|
|
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.
|
|
811
829
|
*
|
|
812
830
|
* @generated from field: string raise_milestone = 1;
|
|
813
831
|
*/
|
|
814
832
|
raiseMilestone: string;
|
|
815
833
|
/**
|
|
834
|
+
* 25–100 inclusive (enforced in CreateAuction translation); LP share for this band.
|
|
835
|
+
*
|
|
816
836
|
* @generated from field: uint32 percent = 2;
|
|
817
837
|
*/
|
|
818
838
|
percent: number;
|
|
@@ -751,7 +751,9 @@ export class NewTokenConfig extends Message {
|
|
|
751
751
|
*/
|
|
752
752
|
this.symbol = "";
|
|
753
753
|
/**
|
|
754
|
-
* Raw uint128 amount (18 decimals for new tokens).
|
|
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.
|
|
755
757
|
*
|
|
756
758
|
* @generated from field: string total_supply = 4;
|
|
757
759
|
*/
|
|
@@ -840,12 +842,6 @@ export class ExistingTokenConfig extends Message {
|
|
|
840
842
|
* @generated from field: string token_address = 1;
|
|
841
843
|
*/
|
|
842
844
|
this.tokenAddress = "";
|
|
843
|
-
/**
|
|
844
|
-
* Raw uint128 amount committed to the launch.
|
|
845
|
-
*
|
|
846
|
-
* @generated from field: string total_supply = 2;
|
|
847
|
-
*/
|
|
848
|
-
this.totalSupply = "";
|
|
849
845
|
proto3.util.initPartial(data, this);
|
|
850
846
|
}
|
|
851
847
|
static fromBinary(bytes, options) {
|
|
@@ -865,7 +861,6 @@ ExistingTokenConfig.runtime = proto3;
|
|
|
865
861
|
ExistingTokenConfig.typeName = "uniswap.liquidity.v1.ExistingTokenConfig";
|
|
866
862
|
ExistingTokenConfig.fields = proto3.util.newFieldList(() => [
|
|
867
863
|
{ no: 1, name: "token_address", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
868
|
-
{ no: 2, name: "total_supply", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
869
864
|
]);
|
|
870
865
|
/**
|
|
871
866
|
* @generated from message uniswap.liquidity.v1.AuctionConfig
|
|
@@ -896,11 +891,22 @@ export class AuctionConfig extends Message {
|
|
|
896
891
|
*/
|
|
897
892
|
this.floorPriceRaisePerToken = "";
|
|
898
893
|
/**
|
|
899
|
-
*
|
|
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.
|
|
900
898
|
*
|
|
901
899
|
* @generated from field: string auction_supply = 5;
|
|
902
900
|
*/
|
|
903
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 = "";
|
|
904
910
|
proto3.util.initPartial(data, this);
|
|
905
911
|
}
|
|
906
912
|
static fromBinary(bytes, options) {
|
|
@@ -925,6 +931,7 @@ AuctionConfig.fields = proto3.util.newFieldList(() => [
|
|
|
925
931
|
{ no: 4, name: "floor_price_raise_per_token", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
926
932
|
{ no: 5, name: "auction_supply", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
927
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 */ },
|
|
928
935
|
]);
|
|
929
936
|
/**
|
|
930
937
|
* @generated from message uniswap.liquidity.v1.PoolConfig
|
|
@@ -998,7 +1005,9 @@ export class CustomPriceRange extends Message {
|
|
|
998
1005
|
super();
|
|
999
1006
|
/**
|
|
1000
1007
|
* Decimal strings (e.g. "-50", "100"). String like every other numeric field here,
|
|
1001
|
-
* to keep an exact wire value for the BL's tick-boundary conversion.
|
|
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.
|
|
1002
1011
|
*
|
|
1003
1012
|
* @generated from field: string min_percent_from_clearing = 1;
|
|
1004
1013
|
*/
|
|
@@ -1071,6 +1080,9 @@ export class TieredAllocation extends Message {
|
|
|
1071
1080
|
constructor(data) {
|
|
1072
1081
|
super();
|
|
1073
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
|
+
*
|
|
1074
1086
|
* @generated from field: repeated uniswap.liquidity.v1.AllocationTier tiers = 1;
|
|
1075
1087
|
*/
|
|
1076
1088
|
this.tiers = [];
|
|
@@ -1101,12 +1113,18 @@ export class AllocationTier extends Message {
|
|
|
1101
1113
|
constructor(data) {
|
|
1102
1114
|
super();
|
|
1103
1115
|
/**
|
|
1104
|
-
*
|
|
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.
|
|
1105
1121
|
*
|
|
1106
1122
|
* @generated from field: string raise_milestone = 1;
|
|
1107
1123
|
*/
|
|
1108
1124
|
this.raiseMilestone = "";
|
|
1109
1125
|
/**
|
|
1126
|
+
* 25–100 inclusive (enforced in CreateAuction translation); LP share for this band.
|
|
1127
|
+
*
|
|
1110
1128
|
* @generated from field: uint32 percent = 2;
|
|
1111
1129
|
*/
|
|
1112
1130
|
this.percent = 0;
|