@uniswap/client-data-api 0.0.277 → 0.0.278
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/dist/data/v2/types_pb.d.ts +33 -0
- package/dist/data/v2/types_pb.js +40 -0
- package/package.json +1 -1
|
@@ -941,6 +941,14 @@ export declare class TokenProject extends Message<TokenProject> {
|
|
|
941
941
|
* @generated from field: optional string logo_url = 4;
|
|
942
942
|
*/
|
|
943
943
|
logoUrl?: string;
|
|
944
|
+
/**
|
|
945
|
+
* Curated display color per theme, used as-is in place of a color extracted
|
|
946
|
+
* from the logo. Unset for almost every token: clients then fall back to
|
|
947
|
+
* extraction.
|
|
948
|
+
*
|
|
949
|
+
* @generated from field: optional data.v2.ThemedColors colors = 6;
|
|
950
|
+
*/
|
|
951
|
+
colors?: ThemedColors;
|
|
944
952
|
constructor(data?: PartialMessage<TokenProject>);
|
|
945
953
|
static readonly runtime: typeof proto3;
|
|
946
954
|
static readonly typeName = "data.v2.TokenProject";
|
|
@@ -950,6 +958,31 @@ export declare class TokenProject extends Message<TokenProject> {
|
|
|
950
958
|
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): TokenProject;
|
|
951
959
|
static equals(a: TokenProject | PlainMessage<TokenProject> | undefined, b: TokenProject | PlainMessage<TokenProject> | undefined): boolean;
|
|
952
960
|
}
|
|
961
|
+
/**
|
|
962
|
+
* One color per theme, each an uppercase "#RRGGBB" hex string. The two are
|
|
963
|
+
* equal unless the logo needs a different color on dark backgrounds (e.g. a
|
|
964
|
+
* black logo shown in white).
|
|
965
|
+
*
|
|
966
|
+
* @generated from message data.v2.ThemedColors
|
|
967
|
+
*/
|
|
968
|
+
export declare class ThemedColors extends Message<ThemedColors> {
|
|
969
|
+
/**
|
|
970
|
+
* @generated from field: string light = 1;
|
|
971
|
+
*/
|
|
972
|
+
light: string;
|
|
973
|
+
/**
|
|
974
|
+
* @generated from field: string dark = 2;
|
|
975
|
+
*/
|
|
976
|
+
dark: string;
|
|
977
|
+
constructor(data?: PartialMessage<ThemedColors>);
|
|
978
|
+
static readonly runtime: typeof proto3;
|
|
979
|
+
static readonly typeName = "data.v2.ThemedColors";
|
|
980
|
+
static readonly fields: FieldList;
|
|
981
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ThemedColors;
|
|
982
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ThemedColors;
|
|
983
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ThemedColors;
|
|
984
|
+
static equals(a: ThemedColors | PlainMessage<ThemedColors> | undefined, b: ThemedColors | PlainMessage<ThemedColors> | undefined): boolean;
|
|
985
|
+
}
|
|
953
986
|
/**
|
|
954
987
|
* @generated from message data.v2.TokenMultichain
|
|
955
988
|
*/
|
package/dist/data/v2/types_pb.js
CHANGED
|
@@ -1057,6 +1057,46 @@ TokenProject.fields = proto3.util.newFieldList(() => [
|
|
|
1057
1057
|
{ no: 2, name: "homepage_url", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
1058
1058
|
{ no: 3, name: "twitter_name", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
1059
1059
|
{ no: 4, name: "logo_url", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
1060
|
+
{ no: 6, name: "colors", kind: "message", T: ThemedColors, opt: true },
|
|
1061
|
+
]);
|
|
1062
|
+
/**
|
|
1063
|
+
* One color per theme, each an uppercase "#RRGGBB" hex string. The two are
|
|
1064
|
+
* equal unless the logo needs a different color on dark backgrounds (e.g. a
|
|
1065
|
+
* black logo shown in white).
|
|
1066
|
+
*
|
|
1067
|
+
* @generated from message data.v2.ThemedColors
|
|
1068
|
+
*/
|
|
1069
|
+
export class ThemedColors extends Message {
|
|
1070
|
+
constructor(data) {
|
|
1071
|
+
super();
|
|
1072
|
+
/**
|
|
1073
|
+
* @generated from field: string light = 1;
|
|
1074
|
+
*/
|
|
1075
|
+
this.light = "";
|
|
1076
|
+
/**
|
|
1077
|
+
* @generated from field: string dark = 2;
|
|
1078
|
+
*/
|
|
1079
|
+
this.dark = "";
|
|
1080
|
+
proto3.util.initPartial(data, this);
|
|
1081
|
+
}
|
|
1082
|
+
static fromBinary(bytes, options) {
|
|
1083
|
+
return new ThemedColors().fromBinary(bytes, options);
|
|
1084
|
+
}
|
|
1085
|
+
static fromJson(jsonValue, options) {
|
|
1086
|
+
return new ThemedColors().fromJson(jsonValue, options);
|
|
1087
|
+
}
|
|
1088
|
+
static fromJsonString(jsonString, options) {
|
|
1089
|
+
return new ThemedColors().fromJsonString(jsonString, options);
|
|
1090
|
+
}
|
|
1091
|
+
static equals(a, b) {
|
|
1092
|
+
return proto3.util.equals(ThemedColors, a, b);
|
|
1093
|
+
}
|
|
1094
|
+
}
|
|
1095
|
+
ThemedColors.runtime = proto3;
|
|
1096
|
+
ThemedColors.typeName = "data.v2.ThemedColors";
|
|
1097
|
+
ThemedColors.fields = proto3.util.newFieldList(() => [
|
|
1098
|
+
{ no: 1, name: "light", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
1099
|
+
{ no: 2, name: "dark", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
1060
1100
|
]);
|
|
1061
1101
|
/**
|
|
1062
1102
|
* @generated from message data.v2.TokenMultichain
|