@uniswap/client-data-api 0.0.1 → 0.0.4
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/data/v1/api-DataApiService_connectquery.d.ts +46 -7
- package/dist/data/v1/api-DataApiService_connectquery.js +46 -7
- package/dist/data/v1/api_connect.d.ts +33 -6
- package/dist/data/v1/api_connect.js +33 -6
- package/dist/data/v1/api_pb.d.ts +213 -1
- package/dist/data/v1/api_pb.js +315 -1
- package/dist/data/v1/types_pb.d.ts +661 -5
- package/dist/data/v1/types_pb.js +829 -10
- package/package.json +2 -2
|
@@ -5,23 +5,23 @@ import { Message, proto3 } from "@bufbuild/protobuf";
|
|
|
5
5
|
*/
|
|
6
6
|
export declare enum TokenType {
|
|
7
7
|
/**
|
|
8
|
-
* @generated from enum value:
|
|
8
|
+
* @generated from enum value: TOKEN_TYPE_UNKNOWN = 0;
|
|
9
9
|
*/
|
|
10
10
|
UNKNOWN = 0,
|
|
11
11
|
/**
|
|
12
|
-
* @generated from enum value:
|
|
12
|
+
* @generated from enum value: TOKEN_TYPE_NATIVE = 1;
|
|
13
13
|
*/
|
|
14
14
|
NATIVE = 1,
|
|
15
15
|
/**
|
|
16
|
-
* @generated from enum value:
|
|
16
|
+
* @generated from enum value: TOKEN_TYPE_ERC20 = 2;
|
|
17
17
|
*/
|
|
18
18
|
ERC20 = 2,
|
|
19
19
|
/**
|
|
20
|
-
* @generated from enum value:
|
|
20
|
+
* @generated from enum value: TOKEN_TYPE_ERC721 = 3;
|
|
21
21
|
*/
|
|
22
22
|
ERC721 = 3,
|
|
23
23
|
/**
|
|
24
|
-
* @generated from enum value:
|
|
24
|
+
* @generated from enum value: TOKEN_TYPE_ERC1155 = 4;
|
|
25
25
|
*/
|
|
26
26
|
ERC1155 = 4
|
|
27
27
|
}
|
|
@@ -71,6 +71,209 @@ export declare enum SafetyLevel {
|
|
|
71
71
|
*/
|
|
72
72
|
BLOCKED = 4
|
|
73
73
|
}
|
|
74
|
+
/**
|
|
75
|
+
* @generated from enum data.v1.TokenReportEventType
|
|
76
|
+
*/
|
|
77
|
+
export declare enum TokenReportEventType {
|
|
78
|
+
/**
|
|
79
|
+
* @generated from enum value: TOKEN_REPORT_EVENT_TYPE_UNSPECIFIED = 0;
|
|
80
|
+
*/
|
|
81
|
+
UNSPECIFIED = 0,
|
|
82
|
+
/**
|
|
83
|
+
* @generated from enum value: TOKEN_REPORT_EVENT_TYPE_FALSE_POSITIVE = 1;
|
|
84
|
+
*/
|
|
85
|
+
FALSE_POSITIVE = 1,
|
|
86
|
+
/**
|
|
87
|
+
* @generated from enum value: TOKEN_REPORT_EVENT_TYPE_FALSE_NEGATIVE = 2;
|
|
88
|
+
*/
|
|
89
|
+
FALSE_NEGATIVE = 2
|
|
90
|
+
}
|
|
91
|
+
/**
|
|
92
|
+
* @generated from enum data.v1.Direction
|
|
93
|
+
*/
|
|
94
|
+
export declare enum Direction {
|
|
95
|
+
/**
|
|
96
|
+
* @generated from enum value: DIRECTION_SELF = 0;
|
|
97
|
+
*/
|
|
98
|
+
SELF = 0,
|
|
99
|
+
/**
|
|
100
|
+
* @generated from enum value: DIRECTION_RECEIVE = 1;
|
|
101
|
+
*/
|
|
102
|
+
RECEIVE = 1,
|
|
103
|
+
/**
|
|
104
|
+
* @generated from enum value: DIRECTION_SEND = 2;
|
|
105
|
+
*/
|
|
106
|
+
SEND = 2
|
|
107
|
+
}
|
|
108
|
+
/**
|
|
109
|
+
* @generated from enum data.v1.OnChainTransactionLabel
|
|
110
|
+
*/
|
|
111
|
+
export declare enum OnChainTransactionLabel {
|
|
112
|
+
/**
|
|
113
|
+
* @generated from enum value: ON_CHAIN_TRANSACTION_LABEL_UNKNOWN = 0;
|
|
114
|
+
*/
|
|
115
|
+
UNKNOWN = 0,
|
|
116
|
+
/**
|
|
117
|
+
* @generated from enum value: ON_CHAIN_TRANSACTION_LABEL_APPROVE = 1;
|
|
118
|
+
*/
|
|
119
|
+
APPROVE = 1,
|
|
120
|
+
/**
|
|
121
|
+
* @generated from enum value: ON_CHAIN_TRANSACTION_LABEL_BORROW = 2;
|
|
122
|
+
*/
|
|
123
|
+
BORROW = 2,
|
|
124
|
+
/**
|
|
125
|
+
* @generated from enum value: ON_CHAIN_TRANSACTION_LABEL_BRIDGE = 3;
|
|
126
|
+
*/
|
|
127
|
+
BRIDGE = 3,
|
|
128
|
+
/**
|
|
129
|
+
* @generated from enum value: ON_CHAIN_TRANSACTION_LABEL_CANCEL = 4;
|
|
130
|
+
*/
|
|
131
|
+
CANCEL = 4,
|
|
132
|
+
/**
|
|
133
|
+
* @generated from enum value: ON_CHAIN_TRANSACTION_LABEL_CLAIM = 5;
|
|
134
|
+
*/
|
|
135
|
+
CLAIM = 5,
|
|
136
|
+
/**
|
|
137
|
+
* @generated from enum value: ON_CHAIN_TRANSACTION_LABEL_DEPLOY = 6;
|
|
138
|
+
*/
|
|
139
|
+
DEPLOY = 6,
|
|
140
|
+
/**
|
|
141
|
+
* @generated from enum value: ON_CHAIN_TRANSACTION_LABEL_EXECUTE = 7;
|
|
142
|
+
*/
|
|
143
|
+
EXECUTE = 7,
|
|
144
|
+
/**
|
|
145
|
+
* @generated from enum value: ON_CHAIN_TRANSACTION_LABEL_LEND = 8;
|
|
146
|
+
*/
|
|
147
|
+
LEND = 8,
|
|
148
|
+
/**
|
|
149
|
+
* @generated from enum value: ON_CHAIN_TRANSACTION_LABEL_MINT = 9;
|
|
150
|
+
*/
|
|
151
|
+
MINT = 9,
|
|
152
|
+
/**
|
|
153
|
+
* @generated from enum value: ON_CHAIN_TRANSACTION_LABEL_FIAT_ON_RAMP = 10;
|
|
154
|
+
*/
|
|
155
|
+
FIAT_ON_RAMP = 10,
|
|
156
|
+
/**
|
|
157
|
+
* @generated from enum value: ON_CHAIN_TRANSACTION_LABEL_RECEIVE = 11;
|
|
158
|
+
*/
|
|
159
|
+
RECEIVE = 11,
|
|
160
|
+
/**
|
|
161
|
+
* @generated from enum value: ON_CHAIN_TRANSACTION_LABEL_REPAY = 12;
|
|
162
|
+
*/
|
|
163
|
+
REPAY = 12,
|
|
164
|
+
/**
|
|
165
|
+
* @generated from enum value: ON_CHAIN_TRANSACTION_LABEL_SEND = 13;
|
|
166
|
+
*/
|
|
167
|
+
SEND = 13,
|
|
168
|
+
/**
|
|
169
|
+
* @generated from enum value: ON_CHAIN_TRANSACTION_LABEL_STAKE = 14;
|
|
170
|
+
*/
|
|
171
|
+
STAKE = 14,
|
|
172
|
+
/**
|
|
173
|
+
* @generated from enum value: ON_CHAIN_TRANSACTION_LABEL_SWAP = 15;
|
|
174
|
+
*/
|
|
175
|
+
SWAP = 15,
|
|
176
|
+
/**
|
|
177
|
+
* @generated from enum value: ON_CHAIN_TRANSACTION_LABEL_UNISWAP_X = 16;
|
|
178
|
+
*/
|
|
179
|
+
UNISWAP_X = 16,
|
|
180
|
+
/**
|
|
181
|
+
* @generated from enum value: ON_CHAIN_TRANSACTION_LABEL_TRANSFER = 17;
|
|
182
|
+
*/
|
|
183
|
+
TRANSFER = 17,
|
|
184
|
+
/**
|
|
185
|
+
* @generated from enum value: ON_CHAIN_TRANSACTION_LABEL_UNSTAKE = 18;
|
|
186
|
+
*/
|
|
187
|
+
UNSTAKE = 18,
|
|
188
|
+
/**
|
|
189
|
+
* @generated from enum value: ON_CHAIN_TRANSACTION_LABEL_WITHDRAW = 19;
|
|
190
|
+
*/
|
|
191
|
+
WITHDRAW = 19
|
|
192
|
+
}
|
|
193
|
+
/**
|
|
194
|
+
* @generated from enum data.v1.OnChainTransactionStatus
|
|
195
|
+
*/
|
|
196
|
+
export declare enum OnChainTransactionStatus {
|
|
197
|
+
/**
|
|
198
|
+
* @generated from enum value: ON_CHAIN_TRANSACTION_STATUS_PENDING = 0;
|
|
199
|
+
*/
|
|
200
|
+
PENDING = 0,
|
|
201
|
+
/**
|
|
202
|
+
* @generated from enum value: ON_CHAIN_TRANSACTION_STATUS_CONFIRMED = 1;
|
|
203
|
+
*/
|
|
204
|
+
CONFIRMED = 1,
|
|
205
|
+
/**
|
|
206
|
+
* @generated from enum value: ON_CHAIN_TRANSACTION_STATUS_FAILED = 2;
|
|
207
|
+
*/
|
|
208
|
+
FAILED = 2
|
|
209
|
+
}
|
|
210
|
+
/**
|
|
211
|
+
* @generated from enum data.v1.UniswapXOrderType
|
|
212
|
+
*/
|
|
213
|
+
export declare enum UniswapXOrderType {
|
|
214
|
+
/**
|
|
215
|
+
* @generated from enum value: UNISWAP_X_ORDER_TYPE_DUTCH = 0;
|
|
216
|
+
*/
|
|
217
|
+
DUTCH = 0,
|
|
218
|
+
/**
|
|
219
|
+
* @generated from enum value: UNISWAP_X_ORDER_TYPE_LIMIT = 1;
|
|
220
|
+
*/
|
|
221
|
+
LIMIT = 1,
|
|
222
|
+
/**
|
|
223
|
+
* @generated from enum value: UNISWAP_X_ORDER_TYPE_DUTCH_V2 = 2;
|
|
224
|
+
*/
|
|
225
|
+
DUTCH_V2 = 2,
|
|
226
|
+
/**
|
|
227
|
+
* @generated from enum value: UNISWAP_X_ORDER_TYPE_PRIORITY = 3;
|
|
228
|
+
*/
|
|
229
|
+
PRIORITY = 3
|
|
230
|
+
}
|
|
231
|
+
/**
|
|
232
|
+
* @generated from enum data.v1.UniswapXTransactionStatus
|
|
233
|
+
*/
|
|
234
|
+
export declare enum UniswapXTransactionStatus {
|
|
235
|
+
/**
|
|
236
|
+
* @generated from enum value: UNISWAP_X_TRANSACTION_STATUS_OPEN = 0;
|
|
237
|
+
*/
|
|
238
|
+
OPEN = 0,
|
|
239
|
+
/**
|
|
240
|
+
* @generated from enum value: UNISWAP_X_TRANSACTION_STATUS_EXPIRED = 1;
|
|
241
|
+
*/
|
|
242
|
+
EXPIRED = 1,
|
|
243
|
+
/**
|
|
244
|
+
* @generated from enum value: UNISWAP_X_TRANSACTION_STATUS_ERROR = 2;
|
|
245
|
+
*/
|
|
246
|
+
ERROR = 2,
|
|
247
|
+
/**
|
|
248
|
+
* @generated from enum value: UNISWAP_X_TRANSACTION_STATUS_INSUFFICIENT_FUNDS = 3;
|
|
249
|
+
*/
|
|
250
|
+
INSUFFICIENT_FUNDS = 3,
|
|
251
|
+
/**
|
|
252
|
+
* @generated from enum value: UNISWAP_X_TRANSACTION_STATUS_FILLED = 4;
|
|
253
|
+
*/
|
|
254
|
+
FILLED = 4,
|
|
255
|
+
/**
|
|
256
|
+
* @generated from enum value: UNISWAP_X_TRANSACTION_STATUS_CANCELLED = 5;
|
|
257
|
+
*/
|
|
258
|
+
CANCELLED = 5
|
|
259
|
+
}
|
|
260
|
+
/**
|
|
261
|
+
* @generated from enum data.v1.FiatOnRampTransactionStatus
|
|
262
|
+
*/
|
|
263
|
+
export declare enum FiatOnRampTransactionStatus {
|
|
264
|
+
/**
|
|
265
|
+
* @generated from enum value: FIAT_ON_RAMP_TRANSACTION_STATUS_FAILED = 0;
|
|
266
|
+
*/
|
|
267
|
+
FAILED = 0,
|
|
268
|
+
/**
|
|
269
|
+
* @generated from enum value: FIAT_ON_RAMP_TRANSACTION_STATUS_SETTLED = 1;
|
|
270
|
+
*/
|
|
271
|
+
SETTLED = 1,
|
|
272
|
+
/**
|
|
273
|
+
* @generated from enum value: FIAT_ON_RAMP_TRANSACTION_STATUS_PENDING = 2;
|
|
274
|
+
*/
|
|
275
|
+
PENDING = 2
|
|
276
|
+
}
|
|
74
277
|
/**
|
|
75
278
|
* @generated from message data.v1.Token
|
|
76
279
|
*/
|
|
@@ -343,6 +546,10 @@ export declare class Balance extends Message<Balance> {
|
|
|
343
546
|
* @generated from field: double value_usd = 5;
|
|
344
547
|
*/
|
|
345
548
|
valueUsd: number;
|
|
549
|
+
/**
|
|
550
|
+
* @generated from field: bool is_hidden = 6;
|
|
551
|
+
*/
|
|
552
|
+
isHidden: boolean;
|
|
346
553
|
constructor(data?: PartialMessage<Balance>);
|
|
347
554
|
static readonly runtime: typeof proto3;
|
|
348
555
|
static readonly typeName = "data.v1.Balance";
|
|
@@ -394,3 +601,452 @@ export declare class Contract extends Message<Contract> {
|
|
|
394
601
|
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): Contract;
|
|
395
602
|
static equals(a: Contract | PlainMessage<Contract> | undefined, b: Contract | PlainMessage<Contract> | undefined): boolean;
|
|
396
603
|
}
|
|
604
|
+
/**
|
|
605
|
+
* @generated from message data.v1.Nft
|
|
606
|
+
*/
|
|
607
|
+
export declare class Nft extends Message<Nft> {
|
|
608
|
+
/**
|
|
609
|
+
* @generated from field: uint32 chain_id = 1;
|
|
610
|
+
*/
|
|
611
|
+
chainId: number;
|
|
612
|
+
/**
|
|
613
|
+
* @generated from field: string address = 2;
|
|
614
|
+
*/
|
|
615
|
+
address: string;
|
|
616
|
+
/**
|
|
617
|
+
* @generated from field: string token_id = 3;
|
|
618
|
+
*/
|
|
619
|
+
tokenId: string;
|
|
620
|
+
/**
|
|
621
|
+
* @generated from field: string name = 4;
|
|
622
|
+
*/
|
|
623
|
+
name: string;
|
|
624
|
+
/**
|
|
625
|
+
* @generated from field: string collection_name = 5;
|
|
626
|
+
*/
|
|
627
|
+
collectionName: string;
|
|
628
|
+
/**
|
|
629
|
+
* @generated from field: data.v1.TokenType type = 6;
|
|
630
|
+
*/
|
|
631
|
+
type: TokenType;
|
|
632
|
+
/**
|
|
633
|
+
* @generated from field: string image_url = 7;
|
|
634
|
+
*/
|
|
635
|
+
imageUrl: string;
|
|
636
|
+
/**
|
|
637
|
+
* @generated from field: bool is_spam = 8;
|
|
638
|
+
*/
|
|
639
|
+
isSpam: boolean;
|
|
640
|
+
constructor(data?: PartialMessage<Nft>);
|
|
641
|
+
static readonly runtime: typeof proto3;
|
|
642
|
+
static readonly typeName = "data.v1.Nft";
|
|
643
|
+
static readonly fields: FieldList;
|
|
644
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): Nft;
|
|
645
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): Nft;
|
|
646
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): Nft;
|
|
647
|
+
static equals(a: Nft | PlainMessage<Nft> | undefined, b: Nft | PlainMessage<Nft> | undefined): boolean;
|
|
648
|
+
}
|
|
649
|
+
/**
|
|
650
|
+
* @generated from message data.v1.Transaction
|
|
651
|
+
*/
|
|
652
|
+
export declare class Transaction extends Message<Transaction> {
|
|
653
|
+
/**
|
|
654
|
+
* @generated from oneof data.v1.Transaction.transaction
|
|
655
|
+
*/
|
|
656
|
+
transaction: {
|
|
657
|
+
/**
|
|
658
|
+
* @generated from field: data.v1.OnChainTransaction on_chain = 1;
|
|
659
|
+
*/
|
|
660
|
+
value: OnChainTransaction;
|
|
661
|
+
case: "onChain";
|
|
662
|
+
} | {
|
|
663
|
+
/**
|
|
664
|
+
* @generated from field: data.v1.UniswapXTransaction uniswap_x = 2;
|
|
665
|
+
*/
|
|
666
|
+
value: UniswapXTransaction;
|
|
667
|
+
case: "uniswapX";
|
|
668
|
+
} | {
|
|
669
|
+
/**
|
|
670
|
+
* @generated from field: data.v1.FiatOnRampTransaction fiat_on_ramp = 3;
|
|
671
|
+
*/
|
|
672
|
+
value: FiatOnRampTransaction;
|
|
673
|
+
case: "fiatOnRamp";
|
|
674
|
+
} | {
|
|
675
|
+
case: undefined;
|
|
676
|
+
value?: undefined;
|
|
677
|
+
};
|
|
678
|
+
constructor(data?: PartialMessage<Transaction>);
|
|
679
|
+
static readonly runtime: typeof proto3;
|
|
680
|
+
static readonly typeName = "data.v1.Transaction";
|
|
681
|
+
static readonly fields: FieldList;
|
|
682
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): Transaction;
|
|
683
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): Transaction;
|
|
684
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): Transaction;
|
|
685
|
+
static equals(a: Transaction | PlainMessage<Transaction> | undefined, b: Transaction | PlainMessage<Transaction> | undefined): boolean;
|
|
686
|
+
}
|
|
687
|
+
/**
|
|
688
|
+
* @generated from message data.v1.OnChainTransaction
|
|
689
|
+
*/
|
|
690
|
+
export declare class OnChainTransaction extends Message<OnChainTransaction> {
|
|
691
|
+
/**
|
|
692
|
+
* @generated from field: uint32 chain_id = 1;
|
|
693
|
+
*/
|
|
694
|
+
chainId: number;
|
|
695
|
+
/**
|
|
696
|
+
* @generated from field: uint32 block_number = 2;
|
|
697
|
+
*/
|
|
698
|
+
blockNumber: number;
|
|
699
|
+
/**
|
|
700
|
+
* @generated from field: uint32 timestamp_millis = 3;
|
|
701
|
+
*/
|
|
702
|
+
timestampMillis: number;
|
|
703
|
+
/**
|
|
704
|
+
* @generated from field: string transaction_hash = 4;
|
|
705
|
+
*/
|
|
706
|
+
transactionHash: string;
|
|
707
|
+
/**
|
|
708
|
+
* @generated from field: string from = 5;
|
|
709
|
+
*/
|
|
710
|
+
from: string;
|
|
711
|
+
/**
|
|
712
|
+
* @generated from field: string to = 6;
|
|
713
|
+
*/
|
|
714
|
+
to: string;
|
|
715
|
+
/**
|
|
716
|
+
* @generated from field: repeated data.v1.Transfer transfers = 7;
|
|
717
|
+
*/
|
|
718
|
+
transfers: Transfer[];
|
|
719
|
+
/**
|
|
720
|
+
* @generated from field: repeated data.v1.Approval approvals = 8;
|
|
721
|
+
*/
|
|
722
|
+
approvals: Approval[];
|
|
723
|
+
/**
|
|
724
|
+
* @generated from field: data.v1.OnChainTransactionLabel label = 9;
|
|
725
|
+
*/
|
|
726
|
+
label: OnChainTransactionLabel;
|
|
727
|
+
/**
|
|
728
|
+
* @generated from field: data.v1.OnChainTransactionStatus status = 10;
|
|
729
|
+
*/
|
|
730
|
+
status: OnChainTransactionStatus;
|
|
731
|
+
/**
|
|
732
|
+
* @generated from field: optional data.v1.ProtocolMetadata protocol = 11;
|
|
733
|
+
*/
|
|
734
|
+
protocol?: ProtocolMetadata;
|
|
735
|
+
/**
|
|
736
|
+
* @generated from field: data.v1.TransactionFee fee = 12;
|
|
737
|
+
*/
|
|
738
|
+
fee?: TransactionFee;
|
|
739
|
+
constructor(data?: PartialMessage<OnChainTransaction>);
|
|
740
|
+
static readonly runtime: typeof proto3;
|
|
741
|
+
static readonly typeName = "data.v1.OnChainTransaction";
|
|
742
|
+
static readonly fields: FieldList;
|
|
743
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): OnChainTransaction;
|
|
744
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): OnChainTransaction;
|
|
745
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): OnChainTransaction;
|
|
746
|
+
static equals(a: OnChainTransaction | PlainMessage<OnChainTransaction> | undefined, b: OnChainTransaction | PlainMessage<OnChainTransaction> | undefined): boolean;
|
|
747
|
+
}
|
|
748
|
+
/**
|
|
749
|
+
* @generated from message data.v1.Transfer
|
|
750
|
+
*/
|
|
751
|
+
export declare class Transfer extends Message<Transfer> {
|
|
752
|
+
/**
|
|
753
|
+
* @generated from field: data.v1.Direction direction = 1;
|
|
754
|
+
*/
|
|
755
|
+
direction: Direction;
|
|
756
|
+
/**
|
|
757
|
+
* @generated from field: string from = 2;
|
|
758
|
+
*/
|
|
759
|
+
from: string;
|
|
760
|
+
/**
|
|
761
|
+
* @generated from field: string to = 3;
|
|
762
|
+
*/
|
|
763
|
+
to: string;
|
|
764
|
+
/**
|
|
765
|
+
* @generated from oneof data.v1.Transfer.asset
|
|
766
|
+
*/
|
|
767
|
+
asset: {
|
|
768
|
+
/**
|
|
769
|
+
* @generated from field: data.v1.Token token = 4;
|
|
770
|
+
*/
|
|
771
|
+
value: Token;
|
|
772
|
+
case: "token";
|
|
773
|
+
} | {
|
|
774
|
+
/**
|
|
775
|
+
* @generated from field: data.v1.Nft nft = 5;
|
|
776
|
+
*/
|
|
777
|
+
value: Nft;
|
|
778
|
+
case: "nft";
|
|
779
|
+
} | {
|
|
780
|
+
case: undefined;
|
|
781
|
+
value?: undefined;
|
|
782
|
+
};
|
|
783
|
+
/**
|
|
784
|
+
* @generated from field: data.v1.Amount amount = 6;
|
|
785
|
+
*/
|
|
786
|
+
amount?: Amount;
|
|
787
|
+
constructor(data?: PartialMessage<Transfer>);
|
|
788
|
+
static readonly runtime: typeof proto3;
|
|
789
|
+
static readonly typeName = "data.v1.Transfer";
|
|
790
|
+
static readonly fields: FieldList;
|
|
791
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): Transfer;
|
|
792
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): Transfer;
|
|
793
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): Transfer;
|
|
794
|
+
static equals(a: Transfer | PlainMessage<Transfer> | undefined, b: Transfer | PlainMessage<Transfer> | undefined): boolean;
|
|
795
|
+
}
|
|
796
|
+
/**
|
|
797
|
+
* @generated from message data.v1.Approval
|
|
798
|
+
*/
|
|
799
|
+
export declare class Approval extends Message<Approval> {
|
|
800
|
+
/**
|
|
801
|
+
* @generated from field: string approved_address = 1;
|
|
802
|
+
*/
|
|
803
|
+
approvedAddress: string;
|
|
804
|
+
/**
|
|
805
|
+
* @generated from oneof data.v1.Approval.asset
|
|
806
|
+
*/
|
|
807
|
+
asset: {
|
|
808
|
+
/**
|
|
809
|
+
* @generated from field: data.v1.Token token = 2;
|
|
810
|
+
*/
|
|
811
|
+
value: Token;
|
|
812
|
+
case: "token";
|
|
813
|
+
} | {
|
|
814
|
+
/**
|
|
815
|
+
* @generated from field: data.v1.Nft nft = 3;
|
|
816
|
+
*/
|
|
817
|
+
value: Nft;
|
|
818
|
+
case: "nft";
|
|
819
|
+
} | {
|
|
820
|
+
case: undefined;
|
|
821
|
+
value?: undefined;
|
|
822
|
+
};
|
|
823
|
+
/**
|
|
824
|
+
* @generated from field: data.v1.Amount amount = 4;
|
|
825
|
+
*/
|
|
826
|
+
amount?: Amount;
|
|
827
|
+
constructor(data?: PartialMessage<Approval>);
|
|
828
|
+
static readonly runtime: typeof proto3;
|
|
829
|
+
static readonly typeName = "data.v1.Approval";
|
|
830
|
+
static readonly fields: FieldList;
|
|
831
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): Approval;
|
|
832
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): Approval;
|
|
833
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): Approval;
|
|
834
|
+
static equals(a: Approval | PlainMessage<Approval> | undefined, b: Approval | PlainMessage<Approval> | undefined): boolean;
|
|
835
|
+
}
|
|
836
|
+
/**
|
|
837
|
+
* @generated from message data.v1.ProtocolMetadata
|
|
838
|
+
*/
|
|
839
|
+
export declare class ProtocolMetadata extends Message<ProtocolMetadata> {
|
|
840
|
+
/**
|
|
841
|
+
* @generated from field: string name = 1;
|
|
842
|
+
*/
|
|
843
|
+
name: string;
|
|
844
|
+
/**
|
|
845
|
+
* @generated from field: string logo_url = 2;
|
|
846
|
+
*/
|
|
847
|
+
logoUrl: string;
|
|
848
|
+
constructor(data?: PartialMessage<ProtocolMetadata>);
|
|
849
|
+
static readonly runtime: typeof proto3;
|
|
850
|
+
static readonly typeName = "data.v1.ProtocolMetadata";
|
|
851
|
+
static readonly fields: FieldList;
|
|
852
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ProtocolMetadata;
|
|
853
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ProtocolMetadata;
|
|
854
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ProtocolMetadata;
|
|
855
|
+
static equals(a: ProtocolMetadata | PlainMessage<ProtocolMetadata> | undefined, b: ProtocolMetadata | PlainMessage<ProtocolMetadata> | undefined): boolean;
|
|
856
|
+
}
|
|
857
|
+
/**
|
|
858
|
+
* @generated from message data.v1.UniswapXTransaction
|
|
859
|
+
*/
|
|
860
|
+
export declare class UniswapXTransaction extends Message<UniswapXTransaction> {
|
|
861
|
+
/**
|
|
862
|
+
* @generated from field: uint32 chain_id = 1;
|
|
863
|
+
*/
|
|
864
|
+
chainId: number;
|
|
865
|
+
/**
|
|
866
|
+
* @generated from field: uint32 timestamp_millis = 2;
|
|
867
|
+
*/
|
|
868
|
+
timestampMillis: number;
|
|
869
|
+
/**
|
|
870
|
+
* @generated from field: string offerer = 3;
|
|
871
|
+
*/
|
|
872
|
+
offerer: string;
|
|
873
|
+
/**
|
|
874
|
+
* @generated from field: string order_hash = 4;
|
|
875
|
+
*/
|
|
876
|
+
orderHash: string;
|
|
877
|
+
/**
|
|
878
|
+
* @generated from field: data.v1.Token input_token = 5;
|
|
879
|
+
*/
|
|
880
|
+
inputToken?: Token;
|
|
881
|
+
/**
|
|
882
|
+
* @generated from field: data.v1.Amount input_token_amount = 6;
|
|
883
|
+
*/
|
|
884
|
+
inputTokenAmount?: Amount;
|
|
885
|
+
/**
|
|
886
|
+
* @generated from field: data.v1.Token output_token = 7;
|
|
887
|
+
*/
|
|
888
|
+
outputToken?: Token;
|
|
889
|
+
/**
|
|
890
|
+
* @generated from field: data.v1.Amount output_token_amount = 8;
|
|
891
|
+
*/
|
|
892
|
+
outputTokenAmount?: Amount;
|
|
893
|
+
/**
|
|
894
|
+
* @generated from field: uint32 expiry_millis = 9;
|
|
895
|
+
*/
|
|
896
|
+
expiryMillis: number;
|
|
897
|
+
/**
|
|
898
|
+
* @generated from field: string encoded_order = 10;
|
|
899
|
+
*/
|
|
900
|
+
encodedOrder: string;
|
|
901
|
+
/**
|
|
902
|
+
* @generated from field: data.v1.UniswapXOrderType order_type = 11;
|
|
903
|
+
*/
|
|
904
|
+
orderType: UniswapXOrderType;
|
|
905
|
+
/**
|
|
906
|
+
* @generated from field: data.v1.UniswapXTransactionStatus status = 12;
|
|
907
|
+
*/
|
|
908
|
+
status: UniswapXTransactionStatus;
|
|
909
|
+
constructor(data?: PartialMessage<UniswapXTransaction>);
|
|
910
|
+
static readonly runtime: typeof proto3;
|
|
911
|
+
static readonly typeName = "data.v1.UniswapXTransaction";
|
|
912
|
+
static readonly fields: FieldList;
|
|
913
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): UniswapXTransaction;
|
|
914
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): UniswapXTransaction;
|
|
915
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): UniswapXTransaction;
|
|
916
|
+
static equals(a: UniswapXTransaction | PlainMessage<UniswapXTransaction> | undefined, b: UniswapXTransaction | PlainMessage<UniswapXTransaction> | undefined): boolean;
|
|
917
|
+
}
|
|
918
|
+
/**
|
|
919
|
+
* @generated from message data.v1.FiatOnRampTransaction
|
|
920
|
+
*/
|
|
921
|
+
export declare class FiatOnRampTransaction extends Message<FiatOnRampTransaction> {
|
|
922
|
+
/**
|
|
923
|
+
* @generated from field: uint32 chain_id = 1;
|
|
924
|
+
*/
|
|
925
|
+
chainId: number;
|
|
926
|
+
/**
|
|
927
|
+
* @generated from field: uint32 timestamp_millis = 2;
|
|
928
|
+
*/
|
|
929
|
+
timestampMillis: number;
|
|
930
|
+
/**
|
|
931
|
+
* @generated from field: string wallet_address = 3;
|
|
932
|
+
*/
|
|
933
|
+
walletAddress: string;
|
|
934
|
+
/**
|
|
935
|
+
* @generated from field: data.v1.Token token = 4;
|
|
936
|
+
*/
|
|
937
|
+
token?: Token;
|
|
938
|
+
/**
|
|
939
|
+
* @generated from field: data.v1.Amount token_amount = 5;
|
|
940
|
+
*/
|
|
941
|
+
tokenAmount?: Amount;
|
|
942
|
+
/**
|
|
943
|
+
* @generated from field: string fiat_currency = 6;
|
|
944
|
+
*/
|
|
945
|
+
fiatCurrency: string;
|
|
946
|
+
/**
|
|
947
|
+
* @generated from field: double fiat_amount = 7;
|
|
948
|
+
*/
|
|
949
|
+
fiatAmount: number;
|
|
950
|
+
/**
|
|
951
|
+
* @generated from field: data.v1.OnRampServiceProvider service_provider = 8;
|
|
952
|
+
*/
|
|
953
|
+
serviceProvider?: OnRampServiceProvider;
|
|
954
|
+
/**
|
|
955
|
+
* @generated from field: string transaction_reference_id = 9;
|
|
956
|
+
*/
|
|
957
|
+
transactionReferenceId: string;
|
|
958
|
+
/**
|
|
959
|
+
* @generated from field: string external_session_id = 10;
|
|
960
|
+
*/
|
|
961
|
+
externalSessionId: string;
|
|
962
|
+
/**
|
|
963
|
+
* @generated from field: double network_fee = 11;
|
|
964
|
+
*/
|
|
965
|
+
networkFee: number;
|
|
966
|
+
/**
|
|
967
|
+
* @generated from field: double transaction_fee = 12;
|
|
968
|
+
*/
|
|
969
|
+
transactionFee: number;
|
|
970
|
+
/**
|
|
971
|
+
* @generated from field: double total_fee = 13;
|
|
972
|
+
*/
|
|
973
|
+
totalFee: number;
|
|
974
|
+
/**
|
|
975
|
+
* @generated from field: data.v1.FiatOnRampTransactionStatus status = 14;
|
|
976
|
+
*/
|
|
977
|
+
status: FiatOnRampTransactionStatus;
|
|
978
|
+
constructor(data?: PartialMessage<FiatOnRampTransaction>);
|
|
979
|
+
static readonly runtime: typeof proto3;
|
|
980
|
+
static readonly typeName = "data.v1.FiatOnRampTransaction";
|
|
981
|
+
static readonly fields: FieldList;
|
|
982
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): FiatOnRampTransaction;
|
|
983
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): FiatOnRampTransaction;
|
|
984
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): FiatOnRampTransaction;
|
|
985
|
+
static equals(a: FiatOnRampTransaction | PlainMessage<FiatOnRampTransaction> | undefined, b: FiatOnRampTransaction | PlainMessage<FiatOnRampTransaction> | undefined): boolean;
|
|
986
|
+
}
|
|
987
|
+
/**
|
|
988
|
+
* @generated from message data.v1.OnRampServiceProvider
|
|
989
|
+
*/
|
|
990
|
+
export declare class OnRampServiceProvider extends Message<OnRampServiceProvider> {
|
|
991
|
+
/**
|
|
992
|
+
* @generated from field: string service_provider = 1;
|
|
993
|
+
*/
|
|
994
|
+
serviceProvider: string;
|
|
995
|
+
/**
|
|
996
|
+
* @generated from field: string name = 2;
|
|
997
|
+
*/
|
|
998
|
+
name: string;
|
|
999
|
+
/**
|
|
1000
|
+
* @generated from field: string url = 3;
|
|
1001
|
+
*/
|
|
1002
|
+
url: string;
|
|
1003
|
+
/**
|
|
1004
|
+
* @generated from field: string logo_light_url = 4;
|
|
1005
|
+
*/
|
|
1006
|
+
logoLightUrl: string;
|
|
1007
|
+
/**
|
|
1008
|
+
* @generated from field: string logo_dark_url = 5;
|
|
1009
|
+
*/
|
|
1010
|
+
logoDarkUrl: string;
|
|
1011
|
+
/**
|
|
1012
|
+
* @generated from field: string support_url = 6;
|
|
1013
|
+
*/
|
|
1014
|
+
supportUrl: string;
|
|
1015
|
+
constructor(data?: PartialMessage<OnRampServiceProvider>);
|
|
1016
|
+
static readonly runtime: typeof proto3;
|
|
1017
|
+
static readonly typeName = "data.v1.OnRampServiceProvider";
|
|
1018
|
+
static readonly fields: FieldList;
|
|
1019
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): OnRampServiceProvider;
|
|
1020
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): OnRampServiceProvider;
|
|
1021
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): OnRampServiceProvider;
|
|
1022
|
+
static equals(a: OnRampServiceProvider | PlainMessage<OnRampServiceProvider> | undefined, b: OnRampServiceProvider | PlainMessage<OnRampServiceProvider> | undefined): boolean;
|
|
1023
|
+
}
|
|
1024
|
+
/**
|
|
1025
|
+
* @generated from message data.v1.TransactionFee
|
|
1026
|
+
*/
|
|
1027
|
+
export declare class TransactionFee extends Message<TransactionFee> {
|
|
1028
|
+
/**
|
|
1029
|
+
* @generated from field: data.v1.Amount amount = 1;
|
|
1030
|
+
*/
|
|
1031
|
+
amount?: Amount;
|
|
1032
|
+
/**
|
|
1033
|
+
* @generated from field: string address = 2;
|
|
1034
|
+
*/
|
|
1035
|
+
address: string;
|
|
1036
|
+
/**
|
|
1037
|
+
* @generated from field: string symbol = 3;
|
|
1038
|
+
*/
|
|
1039
|
+
symbol: string;
|
|
1040
|
+
/**
|
|
1041
|
+
* @generated from field: uint32 decimals = 4;
|
|
1042
|
+
*/
|
|
1043
|
+
decimals: number;
|
|
1044
|
+
constructor(data?: PartialMessage<TransactionFee>);
|
|
1045
|
+
static readonly runtime: typeof proto3;
|
|
1046
|
+
static readonly typeName = "data.v1.TransactionFee";
|
|
1047
|
+
static readonly fields: FieldList;
|
|
1048
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): TransactionFee;
|
|
1049
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): TransactionFee;
|
|
1050
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): TransactionFee;
|
|
1051
|
+
static equals(a: TransactionFee | PlainMessage<TransactionFee> | undefined, b: TransactionFee | PlainMessage<TransactionFee> | undefined): boolean;
|
|
1052
|
+
}
|