@uniswap/client-trading 0.4.0 → 0.4.2
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/trading/v1/api-tradingService_connectquery.d.ts +15 -1
- package/dist/trading/v1/api-tradingService_connectquery.js +15 -1
- package/dist/trading/v1/api_connect.d.ts +11 -1
- package/dist/trading/v1/api_connect.js +11 -1
- package/dist/trading/v1/api_pb.d.ts +146 -47
- package/dist/trading/v1/api_pb.js +164 -46
- package/package.json +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { MethodIdempotency, MethodKind } from "@bufbuild/protobuf";
|
|
2
|
-
import { CheckApprovalRequest, CheckApprovalResponse, CheckWalletDelegationRequest, CheckWalletDelegationResponse, CreatePlanRequest, DocsRequest, DocsResponse, Encode4337Request, Encode4337Response, Encode7702Request, Encode7702Response, GetOrdersRequest, GetOrdersResponse, GetPlanRequest, GetPlansRequest, GetPlansResponse, GetSwapsRequest, GetSwapsResponse, OrderRequest, OrderResponse, PlanResponse, QuoteRequest, QuoteResponse, Swap4337Request, Swap4337Response, Swap5792Request, Swap5792Response, Swap7702Request, Swap7702Response, SwappableTokensRequest, SwappableTokensResponse, SwapRequest, SwapResponse, UpdatePlanRequest } from "./api_pb.js";
|
|
2
|
+
import { CheckApprovalRequest, CheckApprovalResponse, CheckWalletDelegationRequest, CheckWalletDelegationResponse, CreatePlanRequest, DocsRequest, DocsResponse, Encode4337Request, Encode4337Response, Encode7702Request, Encode7702Response, GetOrdersRequest, GetOrdersResponse, GetPlanRequest, GetPlansRequest, GetPlansResponse, GetSwapsRequest, GetSwapsResponse, OrderRequest, OrderResponse, PermissionsRequest, PermissionsResponse, PlanResponse, QuoteRequest, QuoteResponse, Swap4337Request, Swap4337Response, Swap5792Request, Swap5792Response, Swap7702Request, Swap7702Response, SwappableTokensRequest, SwappableTokensResponse, SwapRequest, SwapResponse, UpdatePlanRequest } from "./api_pb.js";
|
|
3
3
|
/**
|
|
4
4
|
* @generated from rpc trading.v1.tradingService.Quote
|
|
5
5
|
*/
|
|
@@ -56,6 +56,20 @@ export declare const checkApproval: {
|
|
|
56
56
|
readonly typeName: "trading.v1.tradingService";
|
|
57
57
|
};
|
|
58
58
|
};
|
|
59
|
+
/**
|
|
60
|
+
* @generated from rpc trading.v1.tradingService.Permissions
|
|
61
|
+
*/
|
|
62
|
+
export declare const permissions: {
|
|
63
|
+
readonly localName: "permissions";
|
|
64
|
+
readonly name: "Permissions";
|
|
65
|
+
readonly kind: MethodKind.Unary;
|
|
66
|
+
readonly I: typeof PermissionsRequest;
|
|
67
|
+
readonly O: typeof PermissionsResponse;
|
|
68
|
+
readonly idempotency: MethodIdempotency.NoSideEffects;
|
|
69
|
+
readonly service: {
|
|
70
|
+
readonly typeName: "trading.v1.tradingService";
|
|
71
|
+
};
|
|
72
|
+
};
|
|
59
73
|
/**
|
|
60
74
|
* @generated from rpc trading.v1.tradingService.GetSwaps
|
|
61
75
|
*/
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
/* eslint-disable */
|
|
4
4
|
// @ts-nocheck
|
|
5
5
|
import { MethodIdempotency, MethodKind } from "@bufbuild/protobuf";
|
|
6
|
-
import { CheckApprovalRequest, CheckApprovalResponse, CheckWalletDelegationRequest, CheckWalletDelegationResponse, CreatePlanRequest, DocsRequest, DocsResponse, Encode4337Request, Encode4337Response, Encode7702Request, Encode7702Response, GetOrdersRequest, GetOrdersResponse, GetPlanRequest, GetPlansRequest, GetPlansResponse, GetSwapsRequest, GetSwapsResponse, OrderRequest, OrderResponse, PlanResponse, QuoteRequest, QuoteResponse, Swap4337Request, Swap4337Response, Swap5792Request, Swap5792Response, Swap7702Request, Swap7702Response, SwappableTokensRequest, SwappableTokensResponse, SwapRequest, SwapResponse, UpdatePlanRequest } from "./api_pb.js";
|
|
6
|
+
import { CheckApprovalRequest, CheckApprovalResponse, CheckWalletDelegationRequest, CheckWalletDelegationResponse, CreatePlanRequest, DocsRequest, DocsResponse, Encode4337Request, Encode4337Response, Encode7702Request, Encode7702Response, GetOrdersRequest, GetOrdersResponse, GetPlanRequest, GetPlansRequest, GetPlansResponse, GetSwapsRequest, GetSwapsResponse, OrderRequest, OrderResponse, PermissionsRequest, PermissionsResponse, PlanResponse, QuoteRequest, QuoteResponse, Swap4337Request, Swap4337Response, Swap5792Request, Swap5792Response, Swap7702Request, Swap7702Response, SwappableTokensRequest, SwappableTokensResponse, SwapRequest, SwapResponse, UpdatePlanRequest } from "./api_pb.js";
|
|
7
7
|
/**
|
|
8
8
|
* @generated from rpc trading.v1.tradingService.Quote
|
|
9
9
|
*/
|
|
@@ -60,6 +60,20 @@ export const checkApproval = {
|
|
|
60
60
|
typeName: "trading.v1.tradingService"
|
|
61
61
|
}
|
|
62
62
|
};
|
|
63
|
+
/**
|
|
64
|
+
* @generated from rpc trading.v1.tradingService.Permissions
|
|
65
|
+
*/
|
|
66
|
+
export const permissions = {
|
|
67
|
+
localName: "permissions",
|
|
68
|
+
name: "Permissions",
|
|
69
|
+
kind: MethodKind.Unary,
|
|
70
|
+
I: PermissionsRequest,
|
|
71
|
+
O: PermissionsResponse,
|
|
72
|
+
idempotency: MethodIdempotency.NoSideEffects,
|
|
73
|
+
service: {
|
|
74
|
+
typeName: "trading.v1.tradingService"
|
|
75
|
+
}
|
|
76
|
+
};
|
|
63
77
|
/**
|
|
64
78
|
* @generated from rpc trading.v1.tradingService.GetSwaps
|
|
65
79
|
*/
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { CheckApprovalRequest, CheckApprovalResponse, CheckWalletDelegationRequest, CheckWalletDelegationResponse, CreatePlanRequest, DocsRequest, DocsResponse, Encode4337Request, Encode4337Response, Encode7702Request, Encode7702Response, GetOrdersRequest, GetOrdersResponse, GetPlanRequest, GetPlansRequest, GetPlansResponse, GetSwapsRequest, GetSwapsResponse, OrderRequest, OrderResponse, PlanResponse, QuoteRequest, QuoteResponse, Swap4337Request, Swap4337Response, Swap5792Request, Swap5792Response, Swap7702Request, Swap7702Response, SwappableTokensRequest, SwappableTokensResponse, SwapRequest, SwapResponse, UpdatePlanRequest } from "./api_pb.js";
|
|
1
|
+
import { CheckApprovalRequest, CheckApprovalResponse, CheckWalletDelegationRequest, CheckWalletDelegationResponse, CreatePlanRequest, DocsRequest, DocsResponse, Encode4337Request, Encode4337Response, Encode7702Request, Encode7702Response, GetOrdersRequest, GetOrdersResponse, GetPlanRequest, GetPlansRequest, GetPlansResponse, GetSwapsRequest, GetSwapsResponse, OrderRequest, OrderResponse, PermissionsRequest, PermissionsResponse, PlanResponse, QuoteRequest, QuoteResponse, Swap4337Request, Swap4337Response, Swap5792Request, Swap5792Response, Swap7702Request, Swap7702Response, SwappableTokensRequest, SwappableTokensResponse, SwapRequest, SwapResponse, UpdatePlanRequest } from "./api_pb.js";
|
|
2
2
|
import { MethodIdempotency, MethodKind } from "@bufbuild/protobuf";
|
|
3
3
|
/**
|
|
4
4
|
* @generated from service trading.v1.tradingService
|
|
@@ -46,6 +46,16 @@ export declare const tradingService: {
|
|
|
46
46
|
readonly kind: MethodKind.Unary;
|
|
47
47
|
readonly idempotency: MethodIdempotency.NoSideEffects;
|
|
48
48
|
};
|
|
49
|
+
/**
|
|
50
|
+
* @generated from rpc trading.v1.tradingService.Permissions
|
|
51
|
+
*/
|
|
52
|
+
readonly permissions: {
|
|
53
|
+
readonly name: "Permissions";
|
|
54
|
+
readonly I: typeof PermissionsRequest;
|
|
55
|
+
readonly O: typeof PermissionsResponse;
|
|
56
|
+
readonly kind: MethodKind.Unary;
|
|
57
|
+
readonly idempotency: MethodIdempotency.NoSideEffects;
|
|
58
|
+
};
|
|
49
59
|
/**
|
|
50
60
|
* @generated from rpc trading.v1.tradingService.GetSwaps
|
|
51
61
|
*/
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
// @generated from file trading/v1/api.proto (package trading.v1, syntax proto3)
|
|
3
3
|
/* eslint-disable */
|
|
4
4
|
// @ts-nocheck
|
|
5
|
-
import { CheckApprovalRequest, CheckApprovalResponse, CheckWalletDelegationRequest, CheckWalletDelegationResponse, CreatePlanRequest, DocsRequest, DocsResponse, Encode4337Request, Encode4337Response, Encode7702Request, Encode7702Response, GetOrdersRequest, GetOrdersResponse, GetPlanRequest, GetPlansRequest, GetPlansResponse, GetSwapsRequest, GetSwapsResponse, OrderRequest, OrderResponse, PlanResponse, QuoteRequest, QuoteResponse, Swap4337Request, Swap4337Response, Swap5792Request, Swap5792Response, Swap7702Request, Swap7702Response, SwappableTokensRequest, SwappableTokensResponse, SwapRequest, SwapResponse, UpdatePlanRequest } from "./api_pb.js";
|
|
5
|
+
import { CheckApprovalRequest, CheckApprovalResponse, CheckWalletDelegationRequest, CheckWalletDelegationResponse, CreatePlanRequest, DocsRequest, DocsResponse, Encode4337Request, Encode4337Response, Encode7702Request, Encode7702Response, GetOrdersRequest, GetOrdersResponse, GetPlanRequest, GetPlansRequest, GetPlansResponse, GetSwapsRequest, GetSwapsResponse, OrderRequest, OrderResponse, PermissionsRequest, PermissionsResponse, PlanResponse, QuoteRequest, QuoteResponse, Swap4337Request, Swap4337Response, Swap5792Request, Swap5792Response, Swap7702Request, Swap7702Response, SwappableTokensRequest, SwappableTokensResponse, SwapRequest, SwapResponse, UpdatePlanRequest } from "./api_pb.js";
|
|
6
6
|
import { MethodIdempotency, MethodKind } from "@bufbuild/protobuf";
|
|
7
7
|
/**
|
|
8
8
|
* @generated from service trading.v1.tradingService
|
|
@@ -50,6 +50,16 @@ export const tradingService = {
|
|
|
50
50
|
kind: MethodKind.Unary,
|
|
51
51
|
idempotency: MethodIdempotency.NoSideEffects,
|
|
52
52
|
},
|
|
53
|
+
/**
|
|
54
|
+
* @generated from rpc trading.v1.tradingService.Permissions
|
|
55
|
+
*/
|
|
56
|
+
permissions: {
|
|
57
|
+
name: "Permissions",
|
|
58
|
+
I: PermissionsRequest,
|
|
59
|
+
O: PermissionsResponse,
|
|
60
|
+
kind: MethodKind.Unary,
|
|
61
|
+
idempotency: MethodIdempotency.NoSideEffects,
|
|
62
|
+
},
|
|
53
63
|
/**
|
|
54
64
|
* @generated from rpc trading.v1.tradingService.GetSwaps
|
|
55
65
|
*/
|
|
@@ -162,7 +162,11 @@ export declare enum Protocols {
|
|
|
162
162
|
/**
|
|
163
163
|
* @generated from enum value: UNISWAPX_V3 = 5;
|
|
164
164
|
*/
|
|
165
|
-
UNISWAPX_V3 = 5
|
|
165
|
+
UNISWAPX_V3 = 5,
|
|
166
|
+
/**
|
|
167
|
+
* @generated from enum value: UNISWAPX_LATEST = 6;
|
|
168
|
+
*/
|
|
169
|
+
UNISWAPX_LATEST = 6
|
|
166
170
|
}
|
|
167
171
|
/**
|
|
168
172
|
* @generated from enum trading.v1.RoutingPreference
|
|
@@ -715,27 +719,6 @@ export declare class UserOperation extends Message<UserOperation> {
|
|
|
715
719
|
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): UserOperation;
|
|
716
720
|
static equals(a: UserOperation | PlainMessage<UserOperation> | undefined, b: UserOperation | PlainMessage<UserOperation> | undefined): boolean;
|
|
717
721
|
}
|
|
718
|
-
/**
|
|
719
|
-
* @generated from message trading.v1.SponsorMetadata
|
|
720
|
-
*/
|
|
721
|
-
export declare class SponsorMetadata extends Message<SponsorMetadata> {
|
|
722
|
-
/**
|
|
723
|
-
* @generated from field: string name = 1;
|
|
724
|
-
*/
|
|
725
|
-
name: string;
|
|
726
|
-
/**
|
|
727
|
-
* @generated from field: optional string icon = 2;
|
|
728
|
-
*/
|
|
729
|
-
icon?: string;
|
|
730
|
-
constructor(data?: PartialMessage<SponsorMetadata>);
|
|
731
|
-
static readonly runtime: typeof proto3;
|
|
732
|
-
static readonly typeName = "trading.v1.SponsorMetadata";
|
|
733
|
-
static readonly fields: FieldList;
|
|
734
|
-
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): SponsorMetadata;
|
|
735
|
-
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): SponsorMetadata;
|
|
736
|
-
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): SponsorMetadata;
|
|
737
|
-
static equals(a: SponsorMetadata | PlainMessage<SponsorMetadata> | undefined, b: SponsorMetadata | PlainMessage<SponsorMetadata> | undefined): boolean;
|
|
738
|
-
}
|
|
739
722
|
/**
|
|
740
723
|
* @generated from message trading.v1.Encode4337Response
|
|
741
724
|
*/
|
|
@@ -749,7 +732,7 @@ export declare class Encode4337Response extends Message<Encode4337Response> {
|
|
|
749
732
|
*/
|
|
750
733
|
userOperation?: UserOperation;
|
|
751
734
|
/**
|
|
752
|
-
* @generated from field: trading.v1.SponsorMetadata sponsor_metadata = 3;
|
|
735
|
+
* @generated from field: optional trading.v1.SponsorMetadata sponsor_metadata = 3;
|
|
753
736
|
*/
|
|
754
737
|
sponsorMetadata?: SponsorMetadata;
|
|
755
738
|
/**
|
|
@@ -814,6 +797,10 @@ export declare class Swap4337Request extends Message<Swap4337Request> {
|
|
|
814
797
|
* @generated from field: optional trading.v1.Eip7702Authorization eip7702_auth = 7;
|
|
815
798
|
*/
|
|
816
799
|
eip7702Auth?: Eip7702Authorization;
|
|
800
|
+
/**
|
|
801
|
+
* @generated from field: optional trading.v1.SponsorshipInfo sponsorship_info = 8;
|
|
802
|
+
*/
|
|
803
|
+
sponsorshipInfo?: SponsorshipInfo;
|
|
817
804
|
constructor(data?: PartialMessage<Swap4337Request>);
|
|
818
805
|
static readonly runtime: typeof proto3;
|
|
819
806
|
static readonly typeName = "trading.v1.Swap4337Request";
|
|
@@ -843,6 +830,10 @@ export declare class Swap4337Response extends Message<Swap4337Response> {
|
|
|
843
830
|
* @generated from field: optional string gas_sponsorship_rejection_reason = 4;
|
|
844
831
|
*/
|
|
845
832
|
gasSponsorshipRejectionReason?: string;
|
|
833
|
+
/**
|
|
834
|
+
* @generated from field: optional trading.v1.PaymasterServiceContext paymaster_service_context = 5;
|
|
835
|
+
*/
|
|
836
|
+
paymasterServiceContext?: PaymasterServiceContext;
|
|
846
837
|
constructor(data?: PartialMessage<Swap4337Response>);
|
|
847
838
|
static readonly runtime: typeof proto3;
|
|
848
839
|
static readonly typeName = "trading.v1.Swap4337Response";
|
|
@@ -897,6 +888,10 @@ export declare class Swap5792Request extends Message<Swap5792Request> {
|
|
|
897
888
|
* @generated from field: optional trading.v1.UrgencyWithOverrides urgency_overrides = 7;
|
|
898
889
|
*/
|
|
899
890
|
urgencyOverrides?: UrgencyWithOverrides;
|
|
891
|
+
/**
|
|
892
|
+
* @generated from field: optional trading.v1.SponsorshipInfo sponsorship_info = 8;
|
|
893
|
+
*/
|
|
894
|
+
sponsorshipInfo?: SponsorshipInfo;
|
|
900
895
|
constructor(data?: PartialMessage<Swap5792Request>);
|
|
901
896
|
static readonly runtime: typeof proto3;
|
|
902
897
|
static readonly typeName = "trading.v1.Swap5792Request";
|
|
@@ -2205,10 +2200,6 @@ export declare class ClassicQuote extends Message<ClassicQuote> {
|
|
|
2205
2200
|
* @generated from field: optional string portion_recipient = 24;
|
|
2206
2201
|
*/
|
|
2207
2202
|
portionRecipient?: string;
|
|
2208
|
-
/**
|
|
2209
|
-
* @generated from field: optional trading.v1.SponsorshipInfo sponsorship_info = 25;
|
|
2210
|
-
*/
|
|
2211
|
-
sponsorshipInfo?: SponsorshipInfo;
|
|
2212
2203
|
/**
|
|
2213
2204
|
* @generated from field: repeated trading.v1.SwapStep swap_steps = 26;
|
|
2214
2205
|
*/
|
|
@@ -3184,10 +3175,6 @@ export declare class WrapUnwrapQuote extends Message<WrapUnwrapQuote> {
|
|
|
3184
3175
|
* @generated from field: optional string max_priority_fee_per_gas = 13;
|
|
3185
3176
|
*/
|
|
3186
3177
|
maxPriorityFeePerGas?: string;
|
|
3187
|
-
/**
|
|
3188
|
-
* @generated from field: optional trading.v1.SponsorshipInfo sponsorship_info = 14;
|
|
3189
|
-
*/
|
|
3190
|
-
sponsorshipInfo?: SponsorshipInfo;
|
|
3191
3178
|
constructor(data?: PartialMessage<WrapUnwrapQuote>);
|
|
3192
3179
|
static readonly runtime: typeof proto3;
|
|
3193
3180
|
static readonly typeName = "trading.v1.WrapUnwrapQuote";
|
|
@@ -3437,6 +3424,10 @@ export declare class GetSwapsRequest extends Message<GetSwapsRequest> {
|
|
|
3437
3424
|
* @generated from field: repeated string user_op_hashes = 3;
|
|
3438
3425
|
*/
|
|
3439
3426
|
userOpHashes: string[];
|
|
3427
|
+
/**
|
|
3428
|
+
* @generated from field: optional string swapper = 4;
|
|
3429
|
+
*/
|
|
3430
|
+
swapper?: string;
|
|
3440
3431
|
constructor(data?: PartialMessage<GetSwapsRequest>);
|
|
3441
3432
|
static readonly runtime: typeof proto3;
|
|
3442
3433
|
static readonly typeName = "trading.v1.GetSwapsRequest";
|
|
@@ -3495,6 +3486,14 @@ export declare class SwapResult extends Message<SwapResult> {
|
|
|
3495
3486
|
* @generated from field: trading.v1.SwapResult.HashType hash_type = 6;
|
|
3496
3487
|
*/
|
|
3497
3488
|
hashType: SwapResult_HashType;
|
|
3489
|
+
/**
|
|
3490
|
+
* @generated from field: optional string paymaster = 7;
|
|
3491
|
+
*/
|
|
3492
|
+
paymaster?: string;
|
|
3493
|
+
/**
|
|
3494
|
+
* @generated from field: optional trading.v1.SponsorMetadata sponsorship = 8;
|
|
3495
|
+
*/
|
|
3496
|
+
sponsorship?: SponsorMetadata;
|
|
3498
3497
|
constructor(data?: PartialMessage<SwapResult>);
|
|
3499
3498
|
static readonly runtime: typeof proto3;
|
|
3500
3499
|
static readonly typeName = "trading.v1.SwapResult";
|
|
@@ -4614,10 +4613,6 @@ export declare class BridgeQuote extends Message<BridgeQuote> {
|
|
|
4614
4613
|
* @generated from field: repeated trading.v1.GasEstimate gas_estimates = 19;
|
|
4615
4614
|
*/
|
|
4616
4615
|
gasEstimates: GasEstimate[];
|
|
4617
|
-
/**
|
|
4618
|
-
* @generated from field: optional trading.v1.SponsorshipInfo sponsorship_info = 20;
|
|
4619
|
-
*/
|
|
4620
|
-
sponsorshipInfo?: SponsorshipInfo;
|
|
4621
4616
|
constructor(data?: PartialMessage<BridgeQuote>);
|
|
4622
4617
|
static readonly runtime: typeof proto3;
|
|
4623
4618
|
static readonly typeName = "trading.v1.BridgeQuote";
|
|
@@ -5087,6 +5082,85 @@ export declare class CheckApprovalResponse extends Message<CheckApprovalResponse
|
|
|
5087
5082
|
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): CheckApprovalResponse;
|
|
5088
5083
|
static equals(a: CheckApprovalResponse | PlainMessage<CheckApprovalResponse> | undefined, b: CheckApprovalResponse | PlainMessage<CheckApprovalResponse> | undefined): boolean;
|
|
5089
5084
|
}
|
|
5085
|
+
/**
|
|
5086
|
+
* @generated from message trading.v1.PermissionsRequest
|
|
5087
|
+
*/
|
|
5088
|
+
export declare class PermissionsRequest extends Message<PermissionsRequest> {
|
|
5089
|
+
/**
|
|
5090
|
+
* @generated from field: string wallet_address = 1;
|
|
5091
|
+
*/
|
|
5092
|
+
walletAddress: string;
|
|
5093
|
+
/**
|
|
5094
|
+
* @generated from field: repeated string tokens = 2;
|
|
5095
|
+
*/
|
|
5096
|
+
tokens: string[];
|
|
5097
|
+
/**
|
|
5098
|
+
* @generated from field: trading.v1.ChainId chain_id = 3;
|
|
5099
|
+
*/
|
|
5100
|
+
chainId: ChainId;
|
|
5101
|
+
constructor(data?: PartialMessage<PermissionsRequest>);
|
|
5102
|
+
static readonly runtime: typeof proto3;
|
|
5103
|
+
static readonly typeName = "trading.v1.PermissionsRequest";
|
|
5104
|
+
static readonly fields: FieldList;
|
|
5105
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): PermissionsRequest;
|
|
5106
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): PermissionsRequest;
|
|
5107
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): PermissionsRequest;
|
|
5108
|
+
static equals(a: PermissionsRequest | PlainMessage<PermissionsRequest> | undefined, b: PermissionsRequest | PlainMessage<PermissionsRequest> | undefined): boolean;
|
|
5109
|
+
}
|
|
5110
|
+
/**
|
|
5111
|
+
* @generated from message trading.v1.PermissionsResponse
|
|
5112
|
+
*/
|
|
5113
|
+
export declare class PermissionsResponse extends Message<PermissionsResponse> {
|
|
5114
|
+
/**
|
|
5115
|
+
* @generated from field: string request_id = 1;
|
|
5116
|
+
*/
|
|
5117
|
+
requestId: string;
|
|
5118
|
+
/**
|
|
5119
|
+
* @generated from field: repeated trading.v1.PermissionsResult results = 2;
|
|
5120
|
+
*/
|
|
5121
|
+
results: PermissionsResult[];
|
|
5122
|
+
constructor(data?: PartialMessage<PermissionsResponse>);
|
|
5123
|
+
static readonly runtime: typeof proto3;
|
|
5124
|
+
static readonly typeName = "trading.v1.PermissionsResponse";
|
|
5125
|
+
static readonly fields: FieldList;
|
|
5126
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): PermissionsResponse;
|
|
5127
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): PermissionsResponse;
|
|
5128
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): PermissionsResponse;
|
|
5129
|
+
static equals(a: PermissionsResponse | PlainMessage<PermissionsResponse> | undefined, b: PermissionsResponse | PlainMessage<PermissionsResponse> | undefined): boolean;
|
|
5130
|
+
}
|
|
5131
|
+
/**
|
|
5132
|
+
* @generated from message trading.v1.PermissionsResult
|
|
5133
|
+
*/
|
|
5134
|
+
export declare class PermissionsResult extends Message<PermissionsResult> {
|
|
5135
|
+
/**
|
|
5136
|
+
* @generated from field: string token = 1;
|
|
5137
|
+
*/
|
|
5138
|
+
token: string;
|
|
5139
|
+
/**
|
|
5140
|
+
* @generated from field: bool is_permissioned = 2;
|
|
5141
|
+
*/
|
|
5142
|
+
isPermissioned: boolean;
|
|
5143
|
+
/**
|
|
5144
|
+
* @generated from field: optional bool is_allowlisted = 3;
|
|
5145
|
+
*/
|
|
5146
|
+
isAllowlisted?: boolean;
|
|
5147
|
+
/**
|
|
5148
|
+
* @generated from field: optional string adapter_token_address = 4;
|
|
5149
|
+
*/
|
|
5150
|
+
adapterTokenAddress?: string;
|
|
5151
|
+
/**
|
|
5152
|
+
* @generated from field: optional string kyc_url = 5;
|
|
5153
|
+
*/
|
|
5154
|
+
kycUrl?: string;
|
|
5155
|
+
constructor(data?: PartialMessage<PermissionsResult>);
|
|
5156
|
+
static readonly runtime: typeof proto3;
|
|
5157
|
+
static readonly typeName = "trading.v1.PermissionsResult";
|
|
5158
|
+
static readonly fields: FieldList;
|
|
5159
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): PermissionsResult;
|
|
5160
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): PermissionsResult;
|
|
5161
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): PermissionsResult;
|
|
5162
|
+
static equals(a: PermissionsResult | PlainMessage<PermissionsResult> | undefined, b: PermissionsResult | PlainMessage<PermissionsResult> | undefined): boolean;
|
|
5163
|
+
}
|
|
5090
5164
|
/**
|
|
5091
5165
|
* @generated from message trading.v1.PriorityOrderInfo
|
|
5092
5166
|
*/
|
|
@@ -6657,25 +6731,46 @@ export declare class WalletInfo extends Message<WalletInfo> {
|
|
|
6657
6731
|
static equals(a: WalletInfo | PlainMessage<WalletInfo> | undefined, b: WalletInfo | PlainMessage<WalletInfo> | undefined): boolean;
|
|
6658
6732
|
}
|
|
6659
6733
|
/**
|
|
6660
|
-
* @generated from message trading.v1.
|
|
6734
|
+
* @generated from message trading.v1.SponsorMetadata
|
|
6735
|
+
*/
|
|
6736
|
+
export declare class SponsorMetadata extends Message<SponsorMetadata> {
|
|
6737
|
+
/**
|
|
6738
|
+
* @generated from field: optional string name = 1;
|
|
6739
|
+
*/
|
|
6740
|
+
name?: string;
|
|
6741
|
+
/**
|
|
6742
|
+
* @generated from field: optional string icon = 2;
|
|
6743
|
+
*/
|
|
6744
|
+
icon?: string;
|
|
6745
|
+
constructor(data?: PartialMessage<SponsorMetadata>);
|
|
6746
|
+
static readonly runtime: typeof proto3;
|
|
6747
|
+
static readonly typeName = "trading.v1.SponsorMetadata";
|
|
6748
|
+
static readonly fields: FieldList;
|
|
6749
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): SponsorMetadata;
|
|
6750
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): SponsorMetadata;
|
|
6751
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): SponsorMetadata;
|
|
6752
|
+
static equals(a: SponsorMetadata | PlainMessage<SponsorMetadata> | undefined, b: SponsorMetadata | PlainMessage<SponsorMetadata> | undefined): boolean;
|
|
6753
|
+
}
|
|
6754
|
+
/**
|
|
6755
|
+
* @generated from message trading.v1.CampaignDetails
|
|
6661
6756
|
*/
|
|
6662
|
-
export declare class
|
|
6757
|
+
export declare class CampaignDetails extends Message<CampaignDetails> {
|
|
6663
6758
|
/**
|
|
6664
6759
|
* @generated from field: optional string name = 1;
|
|
6665
6760
|
*/
|
|
6666
6761
|
name?: string;
|
|
6667
6762
|
/**
|
|
6668
|
-
* @generated from field: optional string
|
|
6763
|
+
* @generated from field: optional string description = 2;
|
|
6669
6764
|
*/
|
|
6670
|
-
|
|
6671
|
-
constructor(data?: PartialMessage<
|
|
6765
|
+
description?: string;
|
|
6766
|
+
constructor(data?: PartialMessage<CampaignDetails>);
|
|
6672
6767
|
static readonly runtime: typeof proto3;
|
|
6673
|
-
static readonly typeName = "trading.v1.
|
|
6768
|
+
static readonly typeName = "trading.v1.CampaignDetails";
|
|
6674
6769
|
static readonly fields: FieldList;
|
|
6675
|
-
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>):
|
|
6676
|
-
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>):
|
|
6677
|
-
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>):
|
|
6678
|
-
static equals(a:
|
|
6770
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): CampaignDetails;
|
|
6771
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): CampaignDetails;
|
|
6772
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): CampaignDetails;
|
|
6773
|
+
static equals(a: CampaignDetails | PlainMessage<CampaignDetails> | undefined, b: CampaignDetails | PlainMessage<CampaignDetails> | undefined): boolean;
|
|
6679
6774
|
}
|
|
6680
6775
|
/**
|
|
6681
6776
|
* @generated from message trading.v1.SponsorshipInfo
|
|
@@ -6690,9 +6785,13 @@ export declare class SponsorshipInfo extends Message<SponsorshipInfo> {
|
|
|
6690
6785
|
*/
|
|
6691
6786
|
rejectionReason?: string;
|
|
6692
6787
|
/**
|
|
6693
|
-
* @generated from field: optional trading.v1.
|
|
6788
|
+
* @generated from field: optional trading.v1.SponsorMetadata sponsor_metadata = 3;
|
|
6789
|
+
*/
|
|
6790
|
+
sponsorMetadata?: SponsorMetadata;
|
|
6791
|
+
/**
|
|
6792
|
+
* @generated from field: optional trading.v1.CampaignDetails campaign = 4;
|
|
6694
6793
|
*/
|
|
6695
|
-
|
|
6794
|
+
campaign?: CampaignDetails;
|
|
6696
6795
|
constructor(data?: PartialMessage<SponsorshipInfo>);
|
|
6697
6796
|
static readonly runtime: typeof proto3;
|
|
6698
6797
|
static readonly typeName = "trading.v1.SponsorshipInfo";
|
|
@@ -210,6 +210,10 @@ export var Protocols;
|
|
|
210
210
|
* @generated from enum value: UNISWAPX_V3 = 5;
|
|
211
211
|
*/
|
|
212
212
|
Protocols[Protocols["UNISWAPX_V3"] = 5] = "UNISWAPX_V3";
|
|
213
|
+
/**
|
|
214
|
+
* @generated from enum value: UNISWAPX_LATEST = 6;
|
|
215
|
+
*/
|
|
216
|
+
Protocols[Protocols["UNISWAPX_LATEST"] = 6] = "UNISWAPX_LATEST";
|
|
213
217
|
})(Protocols || (Protocols = {}));
|
|
214
218
|
// Retrieve enum metadata with: proto3.getEnumType(Protocols)
|
|
215
219
|
proto3.util.setEnumType(Protocols, "trading.v1.Protocols", [
|
|
@@ -218,6 +222,7 @@ proto3.util.setEnumType(Protocols, "trading.v1.Protocols", [
|
|
|
218
222
|
{ no: 2, name: "V4" },
|
|
219
223
|
{ no: 4, name: "UNISWAPX_V2" },
|
|
220
224
|
{ no: 5, name: "UNISWAPX_V3" },
|
|
225
|
+
{ no: 6, name: "UNISWAPX_LATEST" },
|
|
221
226
|
]);
|
|
222
227
|
/**
|
|
223
228
|
* @generated from enum trading.v1.RoutingPreference
|
|
@@ -955,37 +960,6 @@ UserOperation.fields = proto3.util.newFieldList(() => [
|
|
|
955
960
|
{ no: 15, name: "factory", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
956
961
|
{ no: 16, name: "factory_data", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
957
962
|
]);
|
|
958
|
-
/**
|
|
959
|
-
* @generated from message trading.v1.SponsorMetadata
|
|
960
|
-
*/
|
|
961
|
-
export class SponsorMetadata extends Message {
|
|
962
|
-
constructor(data) {
|
|
963
|
-
super();
|
|
964
|
-
/**
|
|
965
|
-
* @generated from field: string name = 1;
|
|
966
|
-
*/
|
|
967
|
-
this.name = "";
|
|
968
|
-
proto3.util.initPartial(data, this);
|
|
969
|
-
}
|
|
970
|
-
static fromBinary(bytes, options) {
|
|
971
|
-
return new SponsorMetadata().fromBinary(bytes, options);
|
|
972
|
-
}
|
|
973
|
-
static fromJson(jsonValue, options) {
|
|
974
|
-
return new SponsorMetadata().fromJson(jsonValue, options);
|
|
975
|
-
}
|
|
976
|
-
static fromJsonString(jsonString, options) {
|
|
977
|
-
return new SponsorMetadata().fromJsonString(jsonString, options);
|
|
978
|
-
}
|
|
979
|
-
static equals(a, b) {
|
|
980
|
-
return proto3.util.equals(SponsorMetadata, a, b);
|
|
981
|
-
}
|
|
982
|
-
}
|
|
983
|
-
SponsorMetadata.runtime = proto3;
|
|
984
|
-
SponsorMetadata.typeName = "trading.v1.SponsorMetadata";
|
|
985
|
-
SponsorMetadata.fields = proto3.util.newFieldList(() => [
|
|
986
|
-
{ no: 1, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
987
|
-
{ no: 2, name: "icon", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
988
|
-
]);
|
|
989
963
|
/**
|
|
990
964
|
* @generated from message trading.v1.Encode4337Response
|
|
991
965
|
*/
|
|
@@ -1020,7 +994,7 @@ Encode4337Response.typeName = "trading.v1.Encode4337Response";
|
|
|
1020
994
|
Encode4337Response.fields = proto3.util.newFieldList(() => [
|
|
1021
995
|
{ no: 1, name: "request_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
1022
996
|
{ no: 2, name: "user_operation", kind: "message", T: UserOperation },
|
|
1023
|
-
{ no: 3, name: "sponsor_metadata", kind: "message", T: SponsorMetadata },
|
|
997
|
+
{ no: 3, name: "sponsor_metadata", kind: "message", T: SponsorMetadata, opt: true },
|
|
1024
998
|
{ no: 4, name: "gas_sponsored", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
|
|
1025
999
|
{ no: 5, name: "gas_sponsorship_rejection_reason", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
1026
1000
|
]);
|
|
@@ -1067,6 +1041,7 @@ Swap4337Request.fields = proto3.util.newFieldList(() => [
|
|
|
1067
1041
|
{ no: 5, name: "permit_data", kind: "message", T: PermitSingleData, opt: true },
|
|
1068
1042
|
{ no: 6, name: "deadline", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
|
|
1069
1043
|
{ no: 7, name: "eip7702_auth", kind: "message", T: Eip7702Authorization, opt: true },
|
|
1044
|
+
{ no: 8, name: "sponsorship_info", kind: "message", T: SponsorshipInfo, opt: true },
|
|
1070
1045
|
]);
|
|
1071
1046
|
/**
|
|
1072
1047
|
* @generated from message trading.v1.Swap4337Response
|
|
@@ -1104,6 +1079,7 @@ Swap4337Response.fields = proto3.util.newFieldList(() => [
|
|
|
1104
1079
|
{ no: 2, name: "user_operation", kind: "message", T: UserOperation },
|
|
1105
1080
|
{ no: 3, name: "gas_sponsored", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
|
|
1106
1081
|
{ no: 4, name: "gas_sponsorship_rejection_reason", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
1082
|
+
{ no: 5, name: "paymaster_service_context", kind: "message", T: PaymasterServiceContext, opt: true },
|
|
1107
1083
|
]);
|
|
1108
1084
|
/**
|
|
1109
1085
|
* @generated from message trading.v1.Swap5792Request
|
|
@@ -1144,6 +1120,7 @@ Swap5792Request.fields = proto3.util.newFieldList(() => [
|
|
|
1144
1120
|
{ no: 5, name: "deadline", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
|
|
1145
1121
|
{ no: 6, name: "urgency", kind: "enum", T: proto3.getEnumType(Urgency), opt: true },
|
|
1146
1122
|
{ no: 7, name: "urgency_overrides", kind: "message", T: UrgencyWithOverrides, opt: true },
|
|
1123
|
+
{ no: 8, name: "sponsorship_info", kind: "message", T: SponsorshipInfo, opt: true },
|
|
1147
1124
|
]);
|
|
1148
1125
|
/**
|
|
1149
1126
|
* @generated from message trading.v1.Swap5792Response
|
|
@@ -2620,7 +2597,6 @@ ClassicQuote.fields = proto3.util.newFieldList(() => [
|
|
|
2620
2597
|
{ no: 22, name: "portion_bips", kind: "scalar", T: 5 /* ScalarType.INT32 */, opt: true },
|
|
2621
2598
|
{ no: 23, name: "portion_amount", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
2622
2599
|
{ no: 24, name: "portion_recipient", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
2623
|
-
{ no: 25, name: "sponsorship_info", kind: "message", T: SponsorshipInfo, opt: true },
|
|
2624
2600
|
{ no: 26, name: "swap_steps", kind: "message", T: SwapStep, repeated: true },
|
|
2625
2601
|
]);
|
|
2626
2602
|
/**
|
|
@@ -3867,7 +3843,6 @@ WrapUnwrapQuote.fields = proto3.util.newFieldList(() => [
|
|
|
3867
3843
|
{ no: 11, name: "gas_price", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
3868
3844
|
{ no: 12, name: "max_fee_per_gas", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
3869
3845
|
{ no: 13, name: "max_priority_fee_per_gas", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
3870
|
-
{ no: 14, name: "sponsorship_info", kind: "message", T: SponsorshipInfo, opt: true },
|
|
3871
3846
|
]);
|
|
3872
3847
|
/**
|
|
3873
3848
|
* @generated from message trading.v1.SwapRequest
|
|
@@ -4098,6 +4073,7 @@ GetSwapsRequest.fields = proto3.util.newFieldList(() => [
|
|
|
4098
4073
|
{ no: 1, name: "tx_hashes", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true },
|
|
4099
4074
|
{ no: 2, name: "chain_id", kind: "enum", T: proto3.getEnumType(ChainId) },
|
|
4100
4075
|
{ no: 3, name: "user_op_hashes", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true },
|
|
4076
|
+
{ no: 4, name: "swapper", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
4101
4077
|
]);
|
|
4102
4078
|
/**
|
|
4103
4079
|
* @generated from message trading.v1.GetSwapsResponse
|
|
@@ -4180,6 +4156,8 @@ SwapResult.fields = proto3.util.newFieldList(() => [
|
|
|
4180
4156
|
{ no: 4, name: "swap_id", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
4181
4157
|
{ no: 5, name: "user_op_hash", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
4182
4158
|
{ no: 6, name: "hash_type", kind: "enum", T: proto3.getEnumType(SwapResult_HashType) },
|
|
4159
|
+
{ no: 7, name: "paymaster", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
4160
|
+
{ no: 8, name: "sponsorship", kind: "message", T: SponsorMetadata, opt: true },
|
|
4183
4161
|
]);
|
|
4184
4162
|
/**
|
|
4185
4163
|
* @generated from enum trading.v1.SwapResult.SwapStatus
|
|
@@ -5490,7 +5468,6 @@ BridgeQuote.fields = proto3.util.newFieldList(() => [
|
|
|
5490
5468
|
{ no: 17, name: "fill_deadline", kind: "scalar", T: 5 /* ScalarType.INT32 */, opt: true },
|
|
5491
5469
|
{ no: 18, name: "gas_fee_usd", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
5492
5470
|
{ no: 19, name: "gas_estimates", kind: "message", T: GasEstimate, repeated: true },
|
|
5493
|
-
{ no: 20, name: "sponsorship_info", kind: "message", T: SponsorshipInfo, opt: true },
|
|
5494
5471
|
]);
|
|
5495
5472
|
/**
|
|
5496
5473
|
* @generated from message trading.v1.DutchLimitOrderInfo
|
|
@@ -5981,6 +5958,119 @@ CheckApprovalResponse.fields = proto3.util.newFieldList(() => [
|
|
|
5981
5958
|
{ no: 5, name: "cancel_gas_fee", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
5982
5959
|
{ no: 6, name: "gas_estimates", kind: "message", T: GasEstimate, repeated: true },
|
|
5983
5960
|
]);
|
|
5961
|
+
/**
|
|
5962
|
+
* @generated from message trading.v1.PermissionsRequest
|
|
5963
|
+
*/
|
|
5964
|
+
export class PermissionsRequest extends Message {
|
|
5965
|
+
constructor(data) {
|
|
5966
|
+
super();
|
|
5967
|
+
/**
|
|
5968
|
+
* @generated from field: string wallet_address = 1;
|
|
5969
|
+
*/
|
|
5970
|
+
this.walletAddress = "";
|
|
5971
|
+
/**
|
|
5972
|
+
* @generated from field: repeated string tokens = 2;
|
|
5973
|
+
*/
|
|
5974
|
+
this.tokens = [];
|
|
5975
|
+
/**
|
|
5976
|
+
* @generated from field: trading.v1.ChainId chain_id = 3;
|
|
5977
|
+
*/
|
|
5978
|
+
this.chainId = ChainId.CHAIN_ID_UNSPECIFIED;
|
|
5979
|
+
proto3.util.initPartial(data, this);
|
|
5980
|
+
}
|
|
5981
|
+
static fromBinary(bytes, options) {
|
|
5982
|
+
return new PermissionsRequest().fromBinary(bytes, options);
|
|
5983
|
+
}
|
|
5984
|
+
static fromJson(jsonValue, options) {
|
|
5985
|
+
return new PermissionsRequest().fromJson(jsonValue, options);
|
|
5986
|
+
}
|
|
5987
|
+
static fromJsonString(jsonString, options) {
|
|
5988
|
+
return new PermissionsRequest().fromJsonString(jsonString, options);
|
|
5989
|
+
}
|
|
5990
|
+
static equals(a, b) {
|
|
5991
|
+
return proto3.util.equals(PermissionsRequest, a, b);
|
|
5992
|
+
}
|
|
5993
|
+
}
|
|
5994
|
+
PermissionsRequest.runtime = proto3;
|
|
5995
|
+
PermissionsRequest.typeName = "trading.v1.PermissionsRequest";
|
|
5996
|
+
PermissionsRequest.fields = proto3.util.newFieldList(() => [
|
|
5997
|
+
{ no: 1, name: "wallet_address", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
5998
|
+
{ no: 2, name: "tokens", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true },
|
|
5999
|
+
{ no: 3, name: "chain_id", kind: "enum", T: proto3.getEnumType(ChainId) },
|
|
6000
|
+
]);
|
|
6001
|
+
/**
|
|
6002
|
+
* @generated from message trading.v1.PermissionsResponse
|
|
6003
|
+
*/
|
|
6004
|
+
export class PermissionsResponse extends Message {
|
|
6005
|
+
constructor(data) {
|
|
6006
|
+
super();
|
|
6007
|
+
/**
|
|
6008
|
+
* @generated from field: string request_id = 1;
|
|
6009
|
+
*/
|
|
6010
|
+
this.requestId = "";
|
|
6011
|
+
/**
|
|
6012
|
+
* @generated from field: repeated trading.v1.PermissionsResult results = 2;
|
|
6013
|
+
*/
|
|
6014
|
+
this.results = [];
|
|
6015
|
+
proto3.util.initPartial(data, this);
|
|
6016
|
+
}
|
|
6017
|
+
static fromBinary(bytes, options) {
|
|
6018
|
+
return new PermissionsResponse().fromBinary(bytes, options);
|
|
6019
|
+
}
|
|
6020
|
+
static fromJson(jsonValue, options) {
|
|
6021
|
+
return new PermissionsResponse().fromJson(jsonValue, options);
|
|
6022
|
+
}
|
|
6023
|
+
static fromJsonString(jsonString, options) {
|
|
6024
|
+
return new PermissionsResponse().fromJsonString(jsonString, options);
|
|
6025
|
+
}
|
|
6026
|
+
static equals(a, b) {
|
|
6027
|
+
return proto3.util.equals(PermissionsResponse, a, b);
|
|
6028
|
+
}
|
|
6029
|
+
}
|
|
6030
|
+
PermissionsResponse.runtime = proto3;
|
|
6031
|
+
PermissionsResponse.typeName = "trading.v1.PermissionsResponse";
|
|
6032
|
+
PermissionsResponse.fields = proto3.util.newFieldList(() => [
|
|
6033
|
+
{ no: 1, name: "request_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
6034
|
+
{ no: 2, name: "results", kind: "message", T: PermissionsResult, repeated: true },
|
|
6035
|
+
]);
|
|
6036
|
+
/**
|
|
6037
|
+
* @generated from message trading.v1.PermissionsResult
|
|
6038
|
+
*/
|
|
6039
|
+
export class PermissionsResult extends Message {
|
|
6040
|
+
constructor(data) {
|
|
6041
|
+
super();
|
|
6042
|
+
/**
|
|
6043
|
+
* @generated from field: string token = 1;
|
|
6044
|
+
*/
|
|
6045
|
+
this.token = "";
|
|
6046
|
+
/**
|
|
6047
|
+
* @generated from field: bool is_permissioned = 2;
|
|
6048
|
+
*/
|
|
6049
|
+
this.isPermissioned = false;
|
|
6050
|
+
proto3.util.initPartial(data, this);
|
|
6051
|
+
}
|
|
6052
|
+
static fromBinary(bytes, options) {
|
|
6053
|
+
return new PermissionsResult().fromBinary(bytes, options);
|
|
6054
|
+
}
|
|
6055
|
+
static fromJson(jsonValue, options) {
|
|
6056
|
+
return new PermissionsResult().fromJson(jsonValue, options);
|
|
6057
|
+
}
|
|
6058
|
+
static fromJsonString(jsonString, options) {
|
|
6059
|
+
return new PermissionsResult().fromJsonString(jsonString, options);
|
|
6060
|
+
}
|
|
6061
|
+
static equals(a, b) {
|
|
6062
|
+
return proto3.util.equals(PermissionsResult, a, b);
|
|
6063
|
+
}
|
|
6064
|
+
}
|
|
6065
|
+
PermissionsResult.runtime = proto3;
|
|
6066
|
+
PermissionsResult.typeName = "trading.v1.PermissionsResult";
|
|
6067
|
+
PermissionsResult.fields = proto3.util.newFieldList(() => [
|
|
6068
|
+
{ no: 1, name: "token", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
6069
|
+
{ no: 2, name: "is_permissioned", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
|
|
6070
|
+
{ no: 3, name: "is_allowlisted", kind: "scalar", T: 8 /* ScalarType.BOOL */, opt: true },
|
|
6071
|
+
{ no: 4, name: "adapter_token_address", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
6072
|
+
{ no: 5, name: "kyc_url", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
6073
|
+
]);
|
|
5984
6074
|
/**
|
|
5985
6075
|
* @generated from message trading.v1.PriorityOrderInfo
|
|
5986
6076
|
*/
|
|
@@ -7858,31 +7948,58 @@ WalletInfo.fields = proto3.util.newFieldList(() => [
|
|
|
7858
7948
|
{ no: 3, name: "rdns", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
7859
7949
|
]);
|
|
7860
7950
|
/**
|
|
7861
|
-
* @generated from message trading.v1.
|
|
7951
|
+
* @generated from message trading.v1.SponsorMetadata
|
|
7952
|
+
*/
|
|
7953
|
+
export class SponsorMetadata extends Message {
|
|
7954
|
+
constructor(data) {
|
|
7955
|
+
super();
|
|
7956
|
+
proto3.util.initPartial(data, this);
|
|
7957
|
+
}
|
|
7958
|
+
static fromBinary(bytes, options) {
|
|
7959
|
+
return new SponsorMetadata().fromBinary(bytes, options);
|
|
7960
|
+
}
|
|
7961
|
+
static fromJson(jsonValue, options) {
|
|
7962
|
+
return new SponsorMetadata().fromJson(jsonValue, options);
|
|
7963
|
+
}
|
|
7964
|
+
static fromJsonString(jsonString, options) {
|
|
7965
|
+
return new SponsorMetadata().fromJsonString(jsonString, options);
|
|
7966
|
+
}
|
|
7967
|
+
static equals(a, b) {
|
|
7968
|
+
return proto3.util.equals(SponsorMetadata, a, b);
|
|
7969
|
+
}
|
|
7970
|
+
}
|
|
7971
|
+
SponsorMetadata.runtime = proto3;
|
|
7972
|
+
SponsorMetadata.typeName = "trading.v1.SponsorMetadata";
|
|
7973
|
+
SponsorMetadata.fields = proto3.util.newFieldList(() => [
|
|
7974
|
+
{ no: 1, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
7975
|
+
{ no: 2, name: "icon", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
7976
|
+
]);
|
|
7977
|
+
/**
|
|
7978
|
+
* @generated from message trading.v1.CampaignDetails
|
|
7862
7979
|
*/
|
|
7863
|
-
export class
|
|
7980
|
+
export class CampaignDetails extends Message {
|
|
7864
7981
|
constructor(data) {
|
|
7865
7982
|
super();
|
|
7866
7983
|
proto3.util.initPartial(data, this);
|
|
7867
7984
|
}
|
|
7868
7985
|
static fromBinary(bytes, options) {
|
|
7869
|
-
return new
|
|
7986
|
+
return new CampaignDetails().fromBinary(bytes, options);
|
|
7870
7987
|
}
|
|
7871
7988
|
static fromJson(jsonValue, options) {
|
|
7872
|
-
return new
|
|
7989
|
+
return new CampaignDetails().fromJson(jsonValue, options);
|
|
7873
7990
|
}
|
|
7874
7991
|
static fromJsonString(jsonString, options) {
|
|
7875
|
-
return new
|
|
7992
|
+
return new CampaignDetails().fromJsonString(jsonString, options);
|
|
7876
7993
|
}
|
|
7877
7994
|
static equals(a, b) {
|
|
7878
|
-
return proto3.util.equals(
|
|
7995
|
+
return proto3.util.equals(CampaignDetails, a, b);
|
|
7879
7996
|
}
|
|
7880
7997
|
}
|
|
7881
|
-
|
|
7882
|
-
|
|
7883
|
-
|
|
7998
|
+
CampaignDetails.runtime = proto3;
|
|
7999
|
+
CampaignDetails.typeName = "trading.v1.CampaignDetails";
|
|
8000
|
+
CampaignDetails.fields = proto3.util.newFieldList(() => [
|
|
7884
8001
|
{ no: 1, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
7885
|
-
{ no: 2, name: "
|
|
8002
|
+
{ no: 2, name: "description", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
7886
8003
|
]);
|
|
7887
8004
|
/**
|
|
7888
8005
|
* @generated from message trading.v1.SponsorshipInfo
|
|
@@ -7910,5 +8027,6 @@ SponsorshipInfo.typeName = "trading.v1.SponsorshipInfo";
|
|
|
7910
8027
|
SponsorshipInfo.fields = proto3.util.newFieldList(() => [
|
|
7911
8028
|
{ no: 1, name: "sponsored", kind: "scalar", T: 8 /* ScalarType.BOOL */, opt: true },
|
|
7912
8029
|
{ no: 2, name: "rejection_reason", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
7913
|
-
{ no: 3, name: "
|
|
8030
|
+
{ no: 3, name: "sponsor_metadata", kind: "message", T: SponsorMetadata, opt: true },
|
|
8031
|
+
{ no: 4, name: "campaign", kind: "message", T: CampaignDetails, opt: true },
|
|
7914
8032
|
]);
|