@uniswap/client-data-api 0.0.257 → 0.0.259

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.
@@ -209,7 +209,7 @@ export declare class MultichainTarget extends Message<MultichainTarget> {
209
209
  */
210
210
  identifier: {
211
211
  /**
212
- * canonical chain's candles (mainnet -> else lowest chainId)
212
+ * the group's canonical deployment's series (MultichainToken.canonical_chain_id)
213
213
  *
214
214
  * @generated from field: data.v2.TokenIdentifier token = 1;
215
215
  */
@@ -848,7 +848,7 @@ export declare class GetTokenMultiChainRequest extends Message<GetTokenMultiChai
848
848
  value?: undefined;
849
849
  };
850
850
  /**
851
- * override canonical chain selection; mainnet -> lowest chainId if omitted
851
+ * override the canonical deployment; omitted -> the served MultichainToken.canonical_chain_id pick
852
852
  *
853
853
  * @generated from field: optional uint32 canonical_chain_id = 3;
854
854
  */
@@ -827,6 +827,12 @@ export declare class MultichainTokenMarket extends Message<MultichainTokenMarket
827
827
  * @generated from field: data.v2.TokenMarketStats stats = 2;
828
828
  */
829
829
  stats?: TokenMarketStats;
830
+ /**
831
+ * deployment the 52w range and valuations come from
832
+ *
833
+ * @generated from field: optional uint32 canonical_chain_id = 3;
834
+ */
835
+ canonicalChainId?: number;
830
836
  constructor(data?: PartialMessage<MultichainTokenMarket>);
831
837
  static readonly runtime: typeof proto3;
832
838
  static readonly typeName = "data.v2.MultichainTokenMarket";
@@ -984,6 +990,31 @@ export declare class TokenIssuerInfo extends Message<TokenIssuerInfo> {
984
990
  static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): TokenIssuerInfo;
985
991
  static equals(a: TokenIssuerInfo | PlainMessage<TokenIssuerInfo> | undefined, b: TokenIssuerInfo | PlainMessage<TokenIssuerInfo> | undefined): boolean;
986
992
  }
993
+ /**
994
+ * One chain's deployment of a multichain token. Decimals differ across a
995
+ * group's chains (USDC is 6 on mainnet and 18 on BNB), so amounts on a
996
+ * chain are scaled by this value, never by MultichainToken.decimals.
997
+ *
998
+ * @generated from message data.v2.ChainDeployment
999
+ */
1000
+ export declare class ChainDeployment extends Message<ChainDeployment> {
1001
+ /**
1002
+ * @generated from field: string address = 1;
1003
+ */
1004
+ address: string;
1005
+ /**
1006
+ * @generated from field: uint32 decimals = 2;
1007
+ */
1008
+ decimals: number;
1009
+ constructor(data?: PartialMessage<ChainDeployment>);
1010
+ static readonly runtime: typeof proto3;
1011
+ static readonly typeName = "data.v2.ChainDeployment";
1012
+ static readonly fields: FieldList;
1013
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ChainDeployment;
1014
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ChainDeployment;
1015
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ChainDeployment;
1016
+ static equals(a: ChainDeployment | PlainMessage<ChainDeployment> | undefined, b: ChainDeployment | PlainMessage<ChainDeployment> | undefined): boolean;
1017
+ }
987
1018
  /**
988
1019
  * @generated from message data.v2.MultichainToken
989
1020
  */
@@ -997,7 +1028,11 @@ export declare class MultichainToken extends Message<MultichainToken> {
997
1028
  */
998
1029
  multichainId: string;
999
1030
  /**
1000
- * @generated from field: map<string, string> addresses = 2;
1031
+ * chainId -> address. Same keys as `deployments`, which also carries the
1032
+ * chain's decimals; read that instead.
1033
+ *
1034
+ * @generated from field: map<string, string> addresses = 2 [deprecated = true];
1035
+ * @deprecated
1001
1036
  */
1002
1037
  addresses: {
1003
1038
  [key: string]: string;
@@ -1007,6 +1042,9 @@ export declare class MultichainToken extends Message<MultichainToken> {
1007
1042
  */
1008
1043
  symbol: string;
1009
1044
  /**
1045
+ * The canonical deployment's decimals (`canonical_chain_id`). Per-chain
1046
+ * values are in `deployments`.
1047
+ *
1010
1048
  * @generated from field: uint32 decimals = 4;
1011
1049
  */
1012
1050
  decimals: number;
@@ -1051,6 +1089,20 @@ export declare class MultichainToken extends Message<MultichainToken> {
1051
1089
  * @generated from field: optional data.v2.TokenIssuerInfo issuer = 13;
1052
1090
  */
1053
1091
  issuer?: TokenIssuerInfo;
1092
+ /**
1093
+ * key of `deployments` the price, chart and metadata come from
1094
+ *
1095
+ * @generated from field: optional uint32 canonical_chain_id = 14;
1096
+ */
1097
+ canonicalChainId?: number;
1098
+ /**
1099
+ * chainId -> that chain's deployment: one per chain, the full canonical group.
1100
+ *
1101
+ * @generated from field: map<string, data.v2.ChainDeployment> deployments = 15;
1102
+ */
1103
+ deployments: {
1104
+ [key: string]: ChainDeployment;
1105
+ };
1054
1106
  constructor(data?: PartialMessage<MultichainToken>);
1055
1107
  static readonly runtime: typeof proto3;
1056
1108
  static readonly typeName = "data.v2.MultichainToken";
@@ -942,6 +942,7 @@ MultichainTokenMarket.typeName = "data.v2.MultichainTokenMarket";
942
942
  MultichainTokenMarket.fields = proto3.util.newFieldList(() => [
943
943
  { no: 1, name: "multichain_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
944
944
  { no: 2, name: "stats", kind: "message", T: TokenMarketStats },
945
+ { no: 3, name: "canonical_chain_id", kind: "scalar", T: 13 /* ScalarType.UINT32 */, opt: true },
945
946
  ]);
946
947
  /**
947
948
  * @generated from message data.v2.TokenSafety
@@ -1133,6 +1134,45 @@ TokenIssuerInfo.fields = proto3.util.newFieldList(() => [
1133
1134
  { no: 2, name: "display_name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1134
1135
  { no: 3, name: "logo_url", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1135
1136
  ]);
1137
+ /**
1138
+ * One chain's deployment of a multichain token. Decimals differ across a
1139
+ * group's chains (USDC is 6 on mainnet and 18 on BNB), so amounts on a
1140
+ * chain are scaled by this value, never by MultichainToken.decimals.
1141
+ *
1142
+ * @generated from message data.v2.ChainDeployment
1143
+ */
1144
+ export class ChainDeployment extends Message {
1145
+ constructor(data) {
1146
+ super();
1147
+ /**
1148
+ * @generated from field: string address = 1;
1149
+ */
1150
+ this.address = "";
1151
+ /**
1152
+ * @generated from field: uint32 decimals = 2;
1153
+ */
1154
+ this.decimals = 0;
1155
+ proto3.util.initPartial(data, this);
1156
+ }
1157
+ static fromBinary(bytes, options) {
1158
+ return new ChainDeployment().fromBinary(bytes, options);
1159
+ }
1160
+ static fromJson(jsonValue, options) {
1161
+ return new ChainDeployment().fromJson(jsonValue, options);
1162
+ }
1163
+ static fromJsonString(jsonString, options) {
1164
+ return new ChainDeployment().fromJsonString(jsonString, options);
1165
+ }
1166
+ static equals(a, b) {
1167
+ return proto3.util.equals(ChainDeployment, a, b);
1168
+ }
1169
+ }
1170
+ ChainDeployment.runtime = proto3;
1171
+ ChainDeployment.typeName = "data.v2.ChainDeployment";
1172
+ ChainDeployment.fields = proto3.util.newFieldList(() => [
1173
+ { no: 1, name: "address", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1174
+ { no: 2, name: "decimals", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
1175
+ ]);
1136
1176
  /**
1137
1177
  * @generated from message data.v2.MultichainToken
1138
1178
  */
@@ -1148,7 +1188,11 @@ export class MultichainToken extends Message {
1148
1188
  */
1149
1189
  this.multichainId = "";
1150
1190
  /**
1151
- * @generated from field: map<string, string> addresses = 2;
1191
+ * chainId -> address. Same keys as `deployments`, which also carries the
1192
+ * chain's decimals; read that instead.
1193
+ *
1194
+ * @generated from field: map<string, string> addresses = 2 [deprecated = true];
1195
+ * @deprecated
1152
1196
  */
1153
1197
  this.addresses = {};
1154
1198
  /**
@@ -1156,6 +1200,9 @@ export class MultichainToken extends Message {
1156
1200
  */
1157
1201
  this.symbol = "";
1158
1202
  /**
1203
+ * The canonical deployment's decimals (`canonical_chain_id`). Per-chain
1204
+ * values are in `deployments`.
1205
+ *
1159
1206
  * @generated from field: uint32 decimals = 4;
1160
1207
  */
1161
1208
  this.decimals = 0;
@@ -1173,6 +1220,12 @@ export class MultichainToken extends Message {
1173
1220
  * @generated from field: repeated string category_ids = 12;
1174
1221
  */
1175
1222
  this.categoryIds = [];
1223
+ /**
1224
+ * chainId -> that chain's deployment: one per chain, the full canonical group.
1225
+ *
1226
+ * @generated from field: map<string, data.v2.ChainDeployment> deployments = 15;
1227
+ */
1228
+ this.deployments = {};
1176
1229
  proto3.util.initPartial(data, this);
1177
1230
  }
1178
1231
  static fromBinary(bytes, options) {
@@ -1204,6 +1257,8 @@ MultichainToken.fields = proto3.util.newFieldList(() => [
1204
1257
  { no: 11, name: "fdv", kind: "scalar", T: 1 /* ScalarType.DOUBLE */, opt: true },
1205
1258
  { no: 12, name: "category_ids", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true },
1206
1259
  { no: 13, name: "issuer", kind: "message", T: TokenIssuerInfo, opt: true },
1260
+ { no: 14, name: "canonical_chain_id", kind: "scalar", T: 13 /* ScalarType.UINT32 */, opt: true },
1261
+ { no: 15, name: "deployments", kind: "map", K: 9 /* ScalarType.STRING */, V: { kind: "message", T: ChainDeployment } },
1207
1262
  ]);
1208
1263
  /**
1209
1264
  * @generated from message data.v2.PoolsSort
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@uniswap/client-data-api",
3
- "version": "0.0.257",
3
+ "version": "0.0.259",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },