@latticexyz/services 1.3.0 → 1.4.1
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/bin/ecs-relay +0 -0
- package/bin/ecs-snapshot +0 -0
- package/bin/ecs-stream +0 -0
- package/bin/faucet +0 -0
- package/package.json +2 -2
- package/protobuf/go/ecs-relay/ecs-relay.pb.go +301 -146
- package/protobuf/go/ecs-relay/ecs-relay_grpc.pb.go +63 -23
- package/protobuf/go/faucet/faucet.pb.go +196 -128
- package/protobuf/go/faucet/faucet_grpc.pb.go +50 -14
- package/protobuf/ts/ecs-relay/ecs-relay.client.ts +43 -21
- package/protobuf/ts/ecs-relay/ecs-relay.ts +178 -45
- package/protobuf/ts/faucet/faucet.client.ts +27 -11
- package/protobuf/ts/faucet/faucet.ts +85 -24
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/* eslint-disable */
|
|
2
|
-
// @generated by protobuf-ts 2.8.
|
|
2
|
+
// @generated by protobuf-ts 2.8.0 with parameter eslint_disable
|
|
3
3
|
// @generated from protobuf file "faucet.proto" (package "faucet", syntax proto3)
|
|
4
4
|
// tslint:disable
|
|
5
5
|
import type { RpcTransport } from "@protobuf-ts/runtime-rpc";
|
|
@@ -11,9 +11,10 @@ import type { LinkedTwitterForAddressResponse } from "./faucet";
|
|
|
11
11
|
import type { LinkedTwitterForAddressRequest } from "./faucet";
|
|
12
12
|
import type { GetLinkedTwittersResponse } from "./faucet";
|
|
13
13
|
import type { GetLinkedTwittersRequest } from "./faucet";
|
|
14
|
+
import type { DripVerifyTweetRequest } from "./faucet";
|
|
14
15
|
import { stackIntercept } from "@protobuf-ts/runtime-rpc";
|
|
15
|
-
import type {
|
|
16
|
-
import type {
|
|
16
|
+
import type { DripResponse } from "./faucet";
|
|
17
|
+
import type { DripDevRequest } from "./faucet";
|
|
17
18
|
import type { UnaryCall } from "@protobuf-ts/runtime-rpc";
|
|
18
19
|
import type { RpcOptions } from "@protobuf-ts/runtime-rpc";
|
|
19
20
|
/**
|
|
@@ -23,9 +24,13 @@ import type { RpcOptions } from "@protobuf-ts/runtime-rpc";
|
|
|
23
24
|
*/
|
|
24
25
|
export interface IFaucetServiceClient {
|
|
25
26
|
/**
|
|
26
|
-
* @generated from protobuf rpc:
|
|
27
|
+
* @generated from protobuf rpc: DripDev(faucet.DripDevRequest) returns (faucet.DripResponse);
|
|
27
28
|
*/
|
|
28
|
-
|
|
29
|
+
dripDev(input: DripDevRequest, options?: RpcOptions): UnaryCall<DripDevRequest, DripResponse>;
|
|
30
|
+
/**
|
|
31
|
+
* @generated from protobuf rpc: DripVerifyTweet(faucet.DripVerifyTweetRequest) returns (faucet.DripResponse);
|
|
32
|
+
*/
|
|
33
|
+
dripVerifyTweet(input: DripVerifyTweetRequest, options?: RpcOptions): UnaryCall<DripVerifyTweetRequest, DripResponse>;
|
|
29
34
|
/**
|
|
30
35
|
* @generated from protobuf rpc: GetLinkedTwitters(faucet.GetLinkedTwittersRequest) returns (faucet.GetLinkedTwittersResponse);
|
|
31
36
|
*/
|
|
@@ -59,12 +64,23 @@ export class FaucetServiceClient implements IFaucetServiceClient, ServiceInfo {
|
|
|
59
64
|
options = FaucetService.options;
|
|
60
65
|
constructor(private readonly _transport: RpcTransport) {}
|
|
61
66
|
/**
|
|
62
|
-
* @generated from protobuf rpc:
|
|
67
|
+
* @generated from protobuf rpc: DripDev(faucet.DripDevRequest) returns (faucet.DripResponse);
|
|
63
68
|
*/
|
|
64
|
-
|
|
69
|
+
dripDev(input: DripDevRequest, options?: RpcOptions): UnaryCall<DripDevRequest, DripResponse> {
|
|
65
70
|
const method = this.methods[0],
|
|
66
71
|
opt = this._transport.mergeOptions(options);
|
|
67
|
-
return stackIntercept<
|
|
72
|
+
return stackIntercept<DripDevRequest, DripResponse>("unary", this._transport, method, opt, input);
|
|
73
|
+
}
|
|
74
|
+
/**
|
|
75
|
+
* @generated from protobuf rpc: DripVerifyTweet(faucet.DripVerifyTweetRequest) returns (faucet.DripResponse);
|
|
76
|
+
*/
|
|
77
|
+
dripVerifyTweet(
|
|
78
|
+
input: DripVerifyTweetRequest,
|
|
79
|
+
options?: RpcOptions
|
|
80
|
+
): UnaryCall<DripVerifyTweetRequest, DripResponse> {
|
|
81
|
+
const method = this.methods[1],
|
|
82
|
+
opt = this._transport.mergeOptions(options);
|
|
83
|
+
return stackIntercept<DripVerifyTweetRequest, DripResponse>("unary", this._transport, method, opt, input);
|
|
68
84
|
}
|
|
69
85
|
/**
|
|
70
86
|
* @generated from protobuf rpc: GetLinkedTwitters(faucet.GetLinkedTwittersRequest) returns (faucet.GetLinkedTwittersResponse);
|
|
@@ -73,7 +89,7 @@ export class FaucetServiceClient implements IFaucetServiceClient, ServiceInfo {
|
|
|
73
89
|
input: GetLinkedTwittersRequest,
|
|
74
90
|
options?: RpcOptions
|
|
75
91
|
): UnaryCall<GetLinkedTwittersRequest, GetLinkedTwittersResponse> {
|
|
76
|
-
const method = this.methods[
|
|
92
|
+
const method = this.methods[2],
|
|
77
93
|
opt = this._transport.mergeOptions(options);
|
|
78
94
|
return stackIntercept<GetLinkedTwittersRequest, GetLinkedTwittersResponse>(
|
|
79
95
|
"unary",
|
|
@@ -90,7 +106,7 @@ export class FaucetServiceClient implements IFaucetServiceClient, ServiceInfo {
|
|
|
90
106
|
input: LinkedTwitterForAddressRequest,
|
|
91
107
|
options?: RpcOptions
|
|
92
108
|
): UnaryCall<LinkedTwitterForAddressRequest, LinkedTwitterForAddressResponse> {
|
|
93
|
-
const method = this.methods[
|
|
109
|
+
const method = this.methods[3],
|
|
94
110
|
opt = this._transport.mergeOptions(options);
|
|
95
111
|
return stackIntercept<LinkedTwitterForAddressRequest, LinkedTwitterForAddressResponse>(
|
|
96
112
|
"unary",
|
|
@@ -107,7 +123,7 @@ export class FaucetServiceClient implements IFaucetServiceClient, ServiceInfo {
|
|
|
107
123
|
input: LinkedAddressForTwitterRequest,
|
|
108
124
|
options?: RpcOptions
|
|
109
125
|
): UnaryCall<LinkedAddressForTwitterRequest, LinkedAddressForTwitterResponse> {
|
|
110
|
-
const method = this.methods[
|
|
126
|
+
const method = this.methods[4],
|
|
111
127
|
opt = this._transport.mergeOptions(options);
|
|
112
128
|
return stackIntercept<LinkedAddressForTwitterRequest, LinkedAddressForTwitterResponse>(
|
|
113
129
|
"unary",
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/* eslint-disable */
|
|
2
|
-
// @generated by protobuf-ts 2.8.
|
|
2
|
+
// @generated by protobuf-ts 2.8.0 with parameter eslint_disable
|
|
3
3
|
// @generated from protobuf file "faucet.proto" (package "faucet", syntax proto3)
|
|
4
4
|
// tslint:disable
|
|
5
5
|
import { ServiceType } from "@protobuf-ts/runtime-rpc";
|
|
@@ -58,9 +58,9 @@ export interface FaucetStore {
|
|
|
58
58
|
totalDripCount: bigint;
|
|
59
59
|
}
|
|
60
60
|
/**
|
|
61
|
-
* @generated from protobuf message faucet.
|
|
61
|
+
* @generated from protobuf message faucet.DripVerifyTweetRequest
|
|
62
62
|
*/
|
|
63
|
-
export interface
|
|
63
|
+
export interface DripVerifyTweetRequest {
|
|
64
64
|
/**
|
|
65
65
|
* @generated from protobuf field: string username = 1;
|
|
66
66
|
*/
|
|
@@ -71,9 +71,18 @@ export interface VerifyTweetRequest {
|
|
|
71
71
|
address: string;
|
|
72
72
|
}
|
|
73
73
|
/**
|
|
74
|
-
* @generated from protobuf message faucet.
|
|
74
|
+
* @generated from protobuf message faucet.DripDevRequest
|
|
75
75
|
*/
|
|
76
|
-
export interface
|
|
76
|
+
export interface DripDevRequest {
|
|
77
|
+
/**
|
|
78
|
+
* @generated from protobuf field: string address = 1;
|
|
79
|
+
*/
|
|
80
|
+
address: string;
|
|
81
|
+
}
|
|
82
|
+
/**
|
|
83
|
+
* @generated from protobuf message faucet.DripResponse
|
|
84
|
+
*/
|
|
85
|
+
export interface DripResponse {
|
|
77
86
|
/**
|
|
78
87
|
* @generated from protobuf field: string txHash = 1;
|
|
79
88
|
*/
|
|
@@ -361,25 +370,25 @@ class FaucetStore$Type extends MessageType<FaucetStore> {
|
|
|
361
370
|
*/
|
|
362
371
|
export const FaucetStore = new FaucetStore$Type();
|
|
363
372
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
364
|
-
class
|
|
373
|
+
class DripVerifyTweetRequest$Type extends MessageType<DripVerifyTweetRequest> {
|
|
365
374
|
constructor() {
|
|
366
|
-
super("faucet.
|
|
375
|
+
super("faucet.DripVerifyTweetRequest", [
|
|
367
376
|
{ no: 1, name: "username", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
368
377
|
{ no: 2, name: "address", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
369
378
|
]);
|
|
370
379
|
}
|
|
371
|
-
create(value?: PartialMessage<
|
|
380
|
+
create(value?: PartialMessage<DripVerifyTweetRequest>): DripVerifyTweetRequest {
|
|
372
381
|
const message = { username: "", address: "" };
|
|
373
382
|
globalThis.Object.defineProperty(message, MESSAGE_TYPE, { enumerable: false, value: this });
|
|
374
|
-
if (value !== undefined) reflectionMergePartial<
|
|
383
|
+
if (value !== undefined) reflectionMergePartial<DripVerifyTweetRequest>(this, message, value);
|
|
375
384
|
return message;
|
|
376
385
|
}
|
|
377
386
|
internalBinaryRead(
|
|
378
387
|
reader: IBinaryReader,
|
|
379
388
|
length: number,
|
|
380
389
|
options: BinaryReadOptions,
|
|
381
|
-
target?:
|
|
382
|
-
):
|
|
390
|
+
target?: DripVerifyTweetRequest
|
|
391
|
+
): DripVerifyTweetRequest {
|
|
383
392
|
let message = target ?? this.create(),
|
|
384
393
|
end = reader.pos + length;
|
|
385
394
|
while (reader.pos < end) {
|
|
@@ -401,7 +410,11 @@ class VerifyTweetRequest$Type extends MessageType<VerifyTweetRequest> {
|
|
|
401
410
|
}
|
|
402
411
|
return message;
|
|
403
412
|
}
|
|
404
|
-
internalBinaryWrite(
|
|
413
|
+
internalBinaryWrite(
|
|
414
|
+
message: DripVerifyTweetRequest,
|
|
415
|
+
writer: IBinaryWriter,
|
|
416
|
+
options: BinaryWriteOptions
|
|
417
|
+
): IBinaryWriter {
|
|
405
418
|
/* string username = 1; */
|
|
406
419
|
if (message.username !== "") writer.tag(1, WireType.LengthDelimited).string(message.username);
|
|
407
420
|
/* string address = 2; */
|
|
@@ -412,26 +425,73 @@ class VerifyTweetRequest$Type extends MessageType<VerifyTweetRequest> {
|
|
|
412
425
|
}
|
|
413
426
|
}
|
|
414
427
|
/**
|
|
415
|
-
* @generated MessageType for protobuf message faucet.
|
|
428
|
+
* @generated MessageType for protobuf message faucet.DripVerifyTweetRequest
|
|
429
|
+
*/
|
|
430
|
+
export const DripVerifyTweetRequest = new DripVerifyTweetRequest$Type();
|
|
431
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
432
|
+
class DripDevRequest$Type extends MessageType<DripDevRequest> {
|
|
433
|
+
constructor() {
|
|
434
|
+
super("faucet.DripDevRequest", [{ no: 1, name: "address", kind: "scalar", T: 9 /*ScalarType.STRING*/ }]);
|
|
435
|
+
}
|
|
436
|
+
create(value?: PartialMessage<DripDevRequest>): DripDevRequest {
|
|
437
|
+
const message = { address: "" };
|
|
438
|
+
globalThis.Object.defineProperty(message, MESSAGE_TYPE, { enumerable: false, value: this });
|
|
439
|
+
if (value !== undefined) reflectionMergePartial<DripDevRequest>(this, message, value);
|
|
440
|
+
return message;
|
|
441
|
+
}
|
|
442
|
+
internalBinaryRead(
|
|
443
|
+
reader: IBinaryReader,
|
|
444
|
+
length: number,
|
|
445
|
+
options: BinaryReadOptions,
|
|
446
|
+
target?: DripDevRequest
|
|
447
|
+
): DripDevRequest {
|
|
448
|
+
let message = target ?? this.create(),
|
|
449
|
+
end = reader.pos + length;
|
|
450
|
+
while (reader.pos < end) {
|
|
451
|
+
let [fieldNo, wireType] = reader.tag();
|
|
452
|
+
switch (fieldNo) {
|
|
453
|
+
case /* string address */ 1:
|
|
454
|
+
message.address = reader.string();
|
|
455
|
+
break;
|
|
456
|
+
default:
|
|
457
|
+
let u = options.readUnknownField;
|
|
458
|
+
if (u === "throw")
|
|
459
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
460
|
+
let d = reader.skip(wireType);
|
|
461
|
+
if (u !== false) (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
462
|
+
}
|
|
463
|
+
}
|
|
464
|
+
return message;
|
|
465
|
+
}
|
|
466
|
+
internalBinaryWrite(message: DripDevRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
467
|
+
/* string address = 1; */
|
|
468
|
+
if (message.address !== "") writer.tag(1, WireType.LengthDelimited).string(message.address);
|
|
469
|
+
let u = options.writeUnknownFields;
|
|
470
|
+
if (u !== false) (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
471
|
+
return writer;
|
|
472
|
+
}
|
|
473
|
+
}
|
|
474
|
+
/**
|
|
475
|
+
* @generated MessageType for protobuf message faucet.DripDevRequest
|
|
416
476
|
*/
|
|
417
|
-
export const
|
|
477
|
+
export const DripDevRequest = new DripDevRequest$Type();
|
|
418
478
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
419
|
-
class
|
|
479
|
+
class DripResponse$Type extends MessageType<DripResponse> {
|
|
420
480
|
constructor() {
|
|
421
|
-
super("faucet.
|
|
481
|
+
super("faucet.DripResponse", [{ no: 1, name: "txHash", kind: "scalar", T: 9 /*ScalarType.STRING*/ }]);
|
|
422
482
|
}
|
|
423
|
-
create(value?: PartialMessage<
|
|
483
|
+
create(value?: PartialMessage<DripResponse>): DripResponse {
|
|
424
484
|
const message = { txHash: "" };
|
|
425
485
|
globalThis.Object.defineProperty(message, MESSAGE_TYPE, { enumerable: false, value: this });
|
|
426
|
-
if (value !== undefined) reflectionMergePartial<
|
|
486
|
+
if (value !== undefined) reflectionMergePartial<DripResponse>(this, message, value);
|
|
427
487
|
return message;
|
|
428
488
|
}
|
|
429
489
|
internalBinaryRead(
|
|
430
490
|
reader: IBinaryReader,
|
|
431
491
|
length: number,
|
|
432
492
|
options: BinaryReadOptions,
|
|
433
|
-
target?:
|
|
434
|
-
):
|
|
493
|
+
target?: DripResponse
|
|
494
|
+
): DripResponse {
|
|
435
495
|
let message = target ?? this.create(),
|
|
436
496
|
end = reader.pos + length;
|
|
437
497
|
while (reader.pos < end) {
|
|
@@ -450,7 +510,7 @@ class VerifyTweetResponse$Type extends MessageType<VerifyTweetResponse> {
|
|
|
450
510
|
}
|
|
451
511
|
return message;
|
|
452
512
|
}
|
|
453
|
-
internalBinaryWrite(message:
|
|
513
|
+
internalBinaryWrite(message: DripResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
454
514
|
/* string txHash = 1; */
|
|
455
515
|
if (message.txHash !== "") writer.tag(1, WireType.LengthDelimited).string(message.txHash);
|
|
456
516
|
let u = options.writeUnknownFields;
|
|
@@ -459,9 +519,9 @@ class VerifyTweetResponse$Type extends MessageType<VerifyTweetResponse> {
|
|
|
459
519
|
}
|
|
460
520
|
}
|
|
461
521
|
/**
|
|
462
|
-
* @generated MessageType for protobuf message faucet.
|
|
522
|
+
* @generated MessageType for protobuf message faucet.DripResponse
|
|
463
523
|
*/
|
|
464
|
-
export const
|
|
524
|
+
export const DripResponse = new DripResponse$Type();
|
|
465
525
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
466
526
|
class GetLinkedTwittersRequest$Type extends MessageType<GetLinkedTwittersRequest> {
|
|
467
527
|
constructor() {
|
|
@@ -769,7 +829,8 @@ export const LinkedAddressForTwitterResponse = new LinkedAddressForTwitterRespon
|
|
|
769
829
|
* @generated ServiceType for protobuf service faucet.FaucetService
|
|
770
830
|
*/
|
|
771
831
|
export const FaucetService = new ServiceType("faucet.FaucetService", [
|
|
772
|
-
{ name: "
|
|
832
|
+
{ name: "DripDev", options: {}, I: DripDevRequest, O: DripResponse },
|
|
833
|
+
{ name: "DripVerifyTweet", options: {}, I: DripVerifyTweetRequest, O: DripResponse },
|
|
773
834
|
{ name: "GetLinkedTwitters", options: {}, I: GetLinkedTwittersRequest, O: GetLinkedTwittersResponse },
|
|
774
835
|
{
|
|
775
836
|
name: "GetLinkedTwitterForAddress",
|