@uniswap/client-data-api 0.0.70 → 0.0.71

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.
@@ -1,6 +1,27 @@
1
1
  import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf";
2
2
  import { Message, proto3 } from "@bufbuild/protobuf";
3
3
  import { FeeData, ProtectionInfo, SafetyLevel, SpamCode, TokenType } from "../v1/types_pb.js";
4
+ /**
5
+ * @generated from message data.v2.TokenPriceData
6
+ */
7
+ export declare class TokenPriceData extends Message<TokenPriceData> {
8
+ /**
9
+ * @generated from field: optional double spot_usd = 1;
10
+ */
11
+ spotUsd?: number;
12
+ /**
13
+ * @generated from field: optional double percent_change_24h = 2;
14
+ */
15
+ percentChange24h?: number;
16
+ constructor(data?: PartialMessage<TokenPriceData>);
17
+ static readonly runtime: typeof proto3;
18
+ static readonly typeName = "data.v2.TokenPriceData";
19
+ static readonly fields: FieldList;
20
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): TokenPriceData;
21
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): TokenPriceData;
22
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): TokenPriceData;
23
+ static equals(a: TokenPriceData | PlainMessage<TokenPriceData> | undefined, b: TokenPriceData | PlainMessage<TokenPriceData> | undefined): boolean;
24
+ }
4
25
  /**
5
26
  * @generated from message data.v2.Token
6
27
  */
@@ -33,6 +54,10 @@ export declare class Token extends Message<Token> {
33
54
  * @generated from field: data.v2.TokenMetadata metadata = 7;
34
55
  */
35
56
  metadata?: TokenMetadata;
57
+ /**
58
+ * @generated from field: data.v2.TokenPriceData price = 8;
59
+ */
60
+ price?: TokenPriceData;
36
61
  constructor(data?: PartialMessage<Token>);
37
62
  static readonly runtime: typeof proto3;
38
63
  static readonly typeName = "data.v2.Token";
@@ -4,6 +4,33 @@
4
4
  // @ts-nocheck
5
5
  import { Message, proto3 } from "@bufbuild/protobuf";
6
6
  import { FeeData, ProtectionInfo, SafetyLevel, SpamCode, TokenType } from "../v1/types_pb.js";
7
+ /**
8
+ * @generated from message data.v2.TokenPriceData
9
+ */
10
+ export class TokenPriceData extends Message {
11
+ constructor(data) {
12
+ super();
13
+ proto3.util.initPartial(data, this);
14
+ }
15
+ static fromBinary(bytes, options) {
16
+ return new TokenPriceData().fromBinary(bytes, options);
17
+ }
18
+ static fromJson(jsonValue, options) {
19
+ return new TokenPriceData().fromJson(jsonValue, options);
20
+ }
21
+ static fromJsonString(jsonString, options) {
22
+ return new TokenPriceData().fromJsonString(jsonString, options);
23
+ }
24
+ static equals(a, b) {
25
+ return proto3.util.equals(TokenPriceData, a, b);
26
+ }
27
+ }
28
+ TokenPriceData.runtime = proto3;
29
+ TokenPriceData.typeName = "data.v2.TokenPriceData";
30
+ TokenPriceData.fields = proto3.util.newFieldList(() => [
31
+ { no: 1, name: "spot_usd", kind: "scalar", T: 1 /* ScalarType.DOUBLE */, opt: true },
32
+ { no: 2, name: "percent_change_24h", kind: "scalar", T: 1 /* ScalarType.DOUBLE */, opt: true },
33
+ ]);
7
34
  /**
8
35
  * @generated from message data.v2.Token
9
36
  */
@@ -59,6 +86,7 @@ Token.fields = proto3.util.newFieldList(() => [
59
86
  { no: 5, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
60
87
  { no: 6, name: "type", kind: "enum", T: proto3.getEnumType(TokenType) },
61
88
  { no: 7, name: "metadata", kind: "message", T: TokenMetadata },
89
+ { no: 8, name: "price", kind: "message", T: TokenPriceData },
62
90
  ]);
63
91
  /**
64
92
  * @generated from message data.v2.TokenMetadata
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@uniswap/client-data-api",
3
- "version": "0.0.70",
3
+ "version": "0.0.71",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },