@uniswap/client-data-api 0.0.258 → 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.
@@ -990,6 +990,31 @@ export declare class TokenIssuerInfo extends Message<TokenIssuerInfo> {
990
990
  static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): TokenIssuerInfo;
991
991
  static equals(a: TokenIssuerInfo | PlainMessage<TokenIssuerInfo> | undefined, b: TokenIssuerInfo | PlainMessage<TokenIssuerInfo> | undefined): boolean;
992
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
+ }
993
1018
  /**
994
1019
  * @generated from message data.v2.MultichainToken
995
1020
  */
@@ -1003,7 +1028,11 @@ export declare class MultichainToken extends Message<MultichainToken> {
1003
1028
  */
1004
1029
  multichainId: string;
1005
1030
  /**
1006
- * @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
1007
1036
  */
1008
1037
  addresses: {
1009
1038
  [key: string]: string;
@@ -1013,6 +1042,9 @@ export declare class MultichainToken extends Message<MultichainToken> {
1013
1042
  */
1014
1043
  symbol: string;
1015
1044
  /**
1045
+ * The canonical deployment's decimals (`canonical_chain_id`). Per-chain
1046
+ * values are in `deployments`.
1047
+ *
1016
1048
  * @generated from field: uint32 decimals = 4;
1017
1049
  */
1018
1050
  decimals: number;
@@ -1058,11 +1090,19 @@ export declare class MultichainToken extends Message<MultichainToken> {
1058
1090
  */
1059
1091
  issuer?: TokenIssuerInfo;
1060
1092
  /**
1061
- * key of `addresses` the price, chart and metadata come from
1093
+ * key of `deployments` the price, chart and metadata come from
1062
1094
  *
1063
1095
  * @generated from field: optional uint32 canonical_chain_id = 14;
1064
1096
  */
1065
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
+ };
1066
1106
  constructor(data?: PartialMessage<MultichainToken>);
1067
1107
  static readonly runtime: typeof proto3;
1068
1108
  static readonly typeName = "data.v2.MultichainToken";
@@ -1134,6 +1134,45 @@ TokenIssuerInfo.fields = proto3.util.newFieldList(() => [
1134
1134
  { no: 2, name: "display_name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1135
1135
  { no: 3, name: "logo_url", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1136
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
+ ]);
1137
1176
  /**
1138
1177
  * @generated from message data.v2.MultichainToken
1139
1178
  */
@@ -1149,7 +1188,11 @@ export class MultichainToken extends Message {
1149
1188
  */
1150
1189
  this.multichainId = "";
1151
1190
  /**
1152
- * @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
1153
1196
  */
1154
1197
  this.addresses = {};
1155
1198
  /**
@@ -1157,6 +1200,9 @@ export class MultichainToken extends Message {
1157
1200
  */
1158
1201
  this.symbol = "";
1159
1202
  /**
1203
+ * The canonical deployment's decimals (`canonical_chain_id`). Per-chain
1204
+ * values are in `deployments`.
1205
+ *
1160
1206
  * @generated from field: uint32 decimals = 4;
1161
1207
  */
1162
1208
  this.decimals = 0;
@@ -1174,6 +1220,12 @@ export class MultichainToken extends Message {
1174
1220
  * @generated from field: repeated string category_ids = 12;
1175
1221
  */
1176
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 = {};
1177
1229
  proto3.util.initPartial(data, this);
1178
1230
  }
1179
1231
  static fromBinary(bytes, options) {
@@ -1206,6 +1258,7 @@ MultichainToken.fields = proto3.util.newFieldList(() => [
1206
1258
  { no: 12, name: "category_ids", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true },
1207
1259
  { no: 13, name: "issuer", kind: "message", T: TokenIssuerInfo, opt: true },
1208
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 } },
1209
1262
  ]);
1210
1263
  /**
1211
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.258",
3
+ "version": "0.0.259",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },