@uniswap/client-platform-service 0.0.29 → 0.0.30
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.
|
@@ -310,6 +310,12 @@ export declare class Criterion extends Message<Criterion> {
|
|
|
310
310
|
*/
|
|
311
311
|
value: EffectiveTime;
|
|
312
312
|
case: "effectiveTime";
|
|
313
|
+
} | {
|
|
314
|
+
/**
|
|
315
|
+
* @generated from field: uniswap.platformservice.v1.NewUserOnly new_user_only = 5;
|
|
316
|
+
*/
|
|
317
|
+
value: NewUserOnly;
|
|
318
|
+
case: "newUserOnly";
|
|
313
319
|
} | {
|
|
314
320
|
case: undefined;
|
|
315
321
|
value?: undefined;
|
|
@@ -323,6 +329,28 @@ export declare class Criterion extends Message<Criterion> {
|
|
|
323
329
|
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): Criterion;
|
|
324
330
|
static equals(a: Criterion | PlainMessage<Criterion> | undefined, b: Criterion | PlainMessage<Criterion> | undefined): boolean;
|
|
325
331
|
}
|
|
332
|
+
/**
|
|
333
|
+
* Restricts a campaign to new users: wallets with zero lifetime swaps at the
|
|
334
|
+
* time of their first sponsored swap. Evaluation is sticky — a wallet with
|
|
335
|
+
* any sponsorship already recorded under this campaign qualified at its
|
|
336
|
+
* first sponsored swap, so later swaps under the per-wallet cap keep
|
|
337
|
+
* matching. Otherwise the wallet must have zero lifetime swaps across all
|
|
338
|
+
* chains (wallet_swaps ClickHouse rollup: tx sender or output recipient of
|
|
339
|
+
* any v2/v3/v4 swap). A wallet whose first swap happened outside
|
|
340
|
+
* sponsorship never qualifies.
|
|
341
|
+
*
|
|
342
|
+
* @generated from message uniswap.platformservice.v1.NewUserOnly
|
|
343
|
+
*/
|
|
344
|
+
export declare class NewUserOnly extends Message<NewUserOnly> {
|
|
345
|
+
constructor(data?: PartialMessage<NewUserOnly>);
|
|
346
|
+
static readonly runtime: typeof proto3;
|
|
347
|
+
static readonly typeName = "uniswap.platformservice.v1.NewUserOnly";
|
|
348
|
+
static readonly fields: FieldList;
|
|
349
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): NewUserOnly;
|
|
350
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): NewUserOnly;
|
|
351
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): NewUserOnly;
|
|
352
|
+
static equals(a: NewUserOnly | PlainMessage<NewUserOnly> | undefined, b: NewUserOnly | PlainMessage<NewUserOnly> | undefined): boolean;
|
|
353
|
+
}
|
|
326
354
|
/**
|
|
327
355
|
* Matches same-chain classic swaps and wrap/unwrap operations on the listed chains.
|
|
328
356
|
* Cross-chain bridges never match.
|
|
@@ -388,7 +388,41 @@ Criterion.fields = proto3.util.newFieldList(() => [
|
|
|
388
388
|
{ no: 2, name: "always_reject", kind: "message", T: AlwaysReject, oneof: "criterion" },
|
|
389
389
|
{ no: 3, name: "max_sponsees_per_wallet", kind: "message", T: MaxSponseesPerWallet, oneof: "criterion" },
|
|
390
390
|
{ no: 4, name: "effective_time", kind: "message", T: EffectiveTime, oneof: "criterion" },
|
|
391
|
+
{ no: 5, name: "new_user_only", kind: "message", T: NewUserOnly, oneof: "criterion" },
|
|
391
392
|
]);
|
|
393
|
+
/**
|
|
394
|
+
* Restricts a campaign to new users: wallets with zero lifetime swaps at the
|
|
395
|
+
* time of their first sponsored swap. Evaluation is sticky — a wallet with
|
|
396
|
+
* any sponsorship already recorded under this campaign qualified at its
|
|
397
|
+
* first sponsored swap, so later swaps under the per-wallet cap keep
|
|
398
|
+
* matching. Otherwise the wallet must have zero lifetime swaps across all
|
|
399
|
+
* chains (wallet_swaps ClickHouse rollup: tx sender or output recipient of
|
|
400
|
+
* any v2/v3/v4 swap). A wallet whose first swap happened outside
|
|
401
|
+
* sponsorship never qualifies.
|
|
402
|
+
*
|
|
403
|
+
* @generated from message uniswap.platformservice.v1.NewUserOnly
|
|
404
|
+
*/
|
|
405
|
+
export class NewUserOnly extends Message {
|
|
406
|
+
constructor(data) {
|
|
407
|
+
super();
|
|
408
|
+
proto3.util.initPartial(data, this);
|
|
409
|
+
}
|
|
410
|
+
static fromBinary(bytes, options) {
|
|
411
|
+
return new NewUserOnly().fromBinary(bytes, options);
|
|
412
|
+
}
|
|
413
|
+
static fromJson(jsonValue, options) {
|
|
414
|
+
return new NewUserOnly().fromJson(jsonValue, options);
|
|
415
|
+
}
|
|
416
|
+
static fromJsonString(jsonString, options) {
|
|
417
|
+
return new NewUserOnly().fromJsonString(jsonString, options);
|
|
418
|
+
}
|
|
419
|
+
static equals(a, b) {
|
|
420
|
+
return proto3.util.equals(NewUserOnly, a, b);
|
|
421
|
+
}
|
|
422
|
+
}
|
|
423
|
+
NewUserOnly.runtime = proto3;
|
|
424
|
+
NewUserOnly.typeName = "uniswap.platformservice.v1.NewUserOnly";
|
|
425
|
+
NewUserOnly.fields = proto3.util.newFieldList(() => []);
|
|
392
426
|
/**
|
|
393
427
|
* Matches same-chain classic swaps and wrap/unwrap operations on the listed chains.
|
|
394
428
|
* Cross-chain bridges never match.
|