@farcaster/hub-web 0.7.4 → 0.7.6

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/index.js CHANGED
@@ -2989,8 +2989,8 @@ function messageTypeFromJSON(object) {
2989
2989
  case "MESSAGE_TYPE_LINK_REMOVE":
2990
2990
  return 6 /* LINK_REMOVE */;
2991
2991
  case 7:
2992
- case "MESSAGE_TYPE_VERIFICATION_ADD_ADDRESS":
2993
- return 7 /* VERIFICATION_ADD_ADDRESS */;
2992
+ case "MESSAGE_TYPE_VERIFICATION_ADD_ETH_ADDRESS":
2993
+ return 7 /* VERIFICATION_ADD_ETH_ADDRESS */;
2994
2994
  case 8:
2995
2995
  case "MESSAGE_TYPE_VERIFICATION_REMOVE":
2996
2996
  return 8 /* VERIFICATION_REMOVE */;
@@ -3023,8 +3023,8 @@ function messageTypeToJSON(object) {
3023
3023
  return "MESSAGE_TYPE_LINK_ADD";
3024
3024
  case 6 /* LINK_REMOVE */:
3025
3025
  return "MESSAGE_TYPE_LINK_REMOVE";
3026
- case 7 /* VERIFICATION_ADD_ADDRESS */:
3027
- return "MESSAGE_TYPE_VERIFICATION_ADD_ADDRESS";
3026
+ case 7 /* VERIFICATION_ADD_ETH_ADDRESS */:
3027
+ return "MESSAGE_TYPE_VERIFICATION_ADD_ETH_ADDRESS";
3028
3028
  case 8 /* VERIFICATION_REMOVE */:
3029
3029
  return "MESSAGE_TYPE_VERIFICATION_REMOVE";
3030
3030
  case 11 /* USER_DATA_ADD */:
@@ -3981,7 +3981,7 @@ var ReactionBody = {
3981
3981
  function createBaseVerificationAddAddressBody() {
3982
3982
  return {
3983
3983
  address: new Uint8Array(),
3984
- protocolSignature: new Uint8Array(),
3984
+ claimSignature: new Uint8Array(),
3985
3985
  blockHash: new Uint8Array(),
3986
3986
  verificationType: 0,
3987
3987
  chainId: 0,
@@ -3993,8 +3993,8 @@ var VerificationAddAddressBody = {
3993
3993
  if (message.address.length !== 0) {
3994
3994
  writer.uint32(10).bytes(message.address);
3995
3995
  }
3996
- if (message.protocolSignature.length !== 0) {
3997
- writer.uint32(18).bytes(message.protocolSignature);
3996
+ if (message.claimSignature.length !== 0) {
3997
+ writer.uint32(18).bytes(message.claimSignature);
3998
3998
  }
3999
3999
  if (message.blockHash.length !== 0) {
4000
4000
  writer.uint32(26).bytes(message.blockHash);
@@ -4027,7 +4027,7 @@ var VerificationAddAddressBody = {
4027
4027
  if (tag != 18) {
4028
4028
  break;
4029
4029
  }
4030
- message.protocolSignature = reader.bytes();
4030
+ message.claimSignature = reader.bytes();
4031
4031
  continue;
4032
4032
  case 3:
4033
4033
  if (tag != 26) {
@@ -4064,7 +4064,7 @@ var VerificationAddAddressBody = {
4064
4064
  fromJSON(object) {
4065
4065
  return {
4066
4066
  address: isSet2(object.address) ? bytesFromBase642(object.address) : new Uint8Array(),
4067
- protocolSignature: isSet2(object.protocolSignature) ? bytesFromBase642(object.protocolSignature) : new Uint8Array(),
4067
+ claimSignature: isSet2(object.claimSignature) ? bytesFromBase642(object.claimSignature) : new Uint8Array(),
4068
4068
  blockHash: isSet2(object.blockHash) ? bytesFromBase642(object.blockHash) : new Uint8Array(),
4069
4069
  verificationType: isSet2(object.verificationType) ? Number(object.verificationType) : 0,
4070
4070
  chainId: isSet2(object.chainId) ? Number(object.chainId) : 0,
@@ -4074,8 +4074,8 @@ var VerificationAddAddressBody = {
4074
4074
  toJSON(message) {
4075
4075
  const obj = {};
4076
4076
  message.address !== void 0 && (obj.address = base64FromBytes2(message.address !== void 0 ? message.address : new Uint8Array()));
4077
- message.protocolSignature !== void 0 && (obj.protocolSignature = base64FromBytes2(
4078
- message.protocolSignature !== void 0 ? message.protocolSignature : new Uint8Array()
4077
+ message.claimSignature !== void 0 && (obj.claimSignature = base64FromBytes2(
4078
+ message.claimSignature !== void 0 ? message.claimSignature : new Uint8Array()
4079
4079
  ));
4080
4080
  message.blockHash !== void 0 && (obj.blockHash = base64FromBytes2(message.blockHash !== void 0 ? message.blockHash : new Uint8Array()));
4081
4081
  message.verificationType !== void 0 && (obj.verificationType = Math.round(message.verificationType));
@@ -4090,7 +4090,7 @@ var VerificationAddAddressBody = {
4090
4090
  var _a, _b, _c, _d, _e, _f;
4091
4091
  const message = createBaseVerificationAddAddressBody();
4092
4092
  message.address = (_a = object.address) != null ? _a : new Uint8Array();
4093
- message.protocolSignature = (_b = object.protocolSignature) != null ? _b : new Uint8Array();
4093
+ message.claimSignature = (_b = object.claimSignature) != null ? _b : new Uint8Array();
4094
4094
  message.blockHash = (_c = object.blockHash) != null ? _c : new Uint8Array();
4095
4095
  message.verificationType = (_d = object.verificationType) != null ? _d : 0;
4096
4096
  message.chainId = (_e = object.chainId) != null ? _e : 0;
package/dist/index.mjs CHANGED
@@ -2926,8 +2926,8 @@ function messageTypeFromJSON(object) {
2926
2926
  case "MESSAGE_TYPE_LINK_REMOVE":
2927
2927
  return 6 /* LINK_REMOVE */;
2928
2928
  case 7:
2929
- case "MESSAGE_TYPE_VERIFICATION_ADD_ADDRESS":
2930
- return 7 /* VERIFICATION_ADD_ADDRESS */;
2929
+ case "MESSAGE_TYPE_VERIFICATION_ADD_ETH_ADDRESS":
2930
+ return 7 /* VERIFICATION_ADD_ETH_ADDRESS */;
2931
2931
  case 8:
2932
2932
  case "MESSAGE_TYPE_VERIFICATION_REMOVE":
2933
2933
  return 8 /* VERIFICATION_REMOVE */;
@@ -2960,8 +2960,8 @@ function messageTypeToJSON(object) {
2960
2960
  return "MESSAGE_TYPE_LINK_ADD";
2961
2961
  case 6 /* LINK_REMOVE */:
2962
2962
  return "MESSAGE_TYPE_LINK_REMOVE";
2963
- case 7 /* VERIFICATION_ADD_ADDRESS */:
2964
- return "MESSAGE_TYPE_VERIFICATION_ADD_ADDRESS";
2963
+ case 7 /* VERIFICATION_ADD_ETH_ADDRESS */:
2964
+ return "MESSAGE_TYPE_VERIFICATION_ADD_ETH_ADDRESS";
2965
2965
  case 8 /* VERIFICATION_REMOVE */:
2966
2966
  return "MESSAGE_TYPE_VERIFICATION_REMOVE";
2967
2967
  case 11 /* USER_DATA_ADD */:
@@ -3918,7 +3918,7 @@ var ReactionBody = {
3918
3918
  function createBaseVerificationAddAddressBody() {
3919
3919
  return {
3920
3920
  address: new Uint8Array(),
3921
- protocolSignature: new Uint8Array(),
3921
+ claimSignature: new Uint8Array(),
3922
3922
  blockHash: new Uint8Array(),
3923
3923
  verificationType: 0,
3924
3924
  chainId: 0,
@@ -3930,8 +3930,8 @@ var VerificationAddAddressBody = {
3930
3930
  if (message.address.length !== 0) {
3931
3931
  writer.uint32(10).bytes(message.address);
3932
3932
  }
3933
- if (message.protocolSignature.length !== 0) {
3934
- writer.uint32(18).bytes(message.protocolSignature);
3933
+ if (message.claimSignature.length !== 0) {
3934
+ writer.uint32(18).bytes(message.claimSignature);
3935
3935
  }
3936
3936
  if (message.blockHash.length !== 0) {
3937
3937
  writer.uint32(26).bytes(message.blockHash);
@@ -3964,7 +3964,7 @@ var VerificationAddAddressBody = {
3964
3964
  if (tag != 18) {
3965
3965
  break;
3966
3966
  }
3967
- message.protocolSignature = reader.bytes();
3967
+ message.claimSignature = reader.bytes();
3968
3968
  continue;
3969
3969
  case 3:
3970
3970
  if (tag != 26) {
@@ -4001,7 +4001,7 @@ var VerificationAddAddressBody = {
4001
4001
  fromJSON(object) {
4002
4002
  return {
4003
4003
  address: isSet2(object.address) ? bytesFromBase642(object.address) : new Uint8Array(),
4004
- protocolSignature: isSet2(object.protocolSignature) ? bytesFromBase642(object.protocolSignature) : new Uint8Array(),
4004
+ claimSignature: isSet2(object.claimSignature) ? bytesFromBase642(object.claimSignature) : new Uint8Array(),
4005
4005
  blockHash: isSet2(object.blockHash) ? bytesFromBase642(object.blockHash) : new Uint8Array(),
4006
4006
  verificationType: isSet2(object.verificationType) ? Number(object.verificationType) : 0,
4007
4007
  chainId: isSet2(object.chainId) ? Number(object.chainId) : 0,
@@ -4011,8 +4011,8 @@ var VerificationAddAddressBody = {
4011
4011
  toJSON(message) {
4012
4012
  const obj = {};
4013
4013
  message.address !== void 0 && (obj.address = base64FromBytes2(message.address !== void 0 ? message.address : new Uint8Array()));
4014
- message.protocolSignature !== void 0 && (obj.protocolSignature = base64FromBytes2(
4015
- message.protocolSignature !== void 0 ? message.protocolSignature : new Uint8Array()
4014
+ message.claimSignature !== void 0 && (obj.claimSignature = base64FromBytes2(
4015
+ message.claimSignature !== void 0 ? message.claimSignature : new Uint8Array()
4016
4016
  ));
4017
4017
  message.blockHash !== void 0 && (obj.blockHash = base64FromBytes2(message.blockHash !== void 0 ? message.blockHash : new Uint8Array()));
4018
4018
  message.verificationType !== void 0 && (obj.verificationType = Math.round(message.verificationType));
@@ -4027,7 +4027,7 @@ var VerificationAddAddressBody = {
4027
4027
  var _a, _b, _c, _d, _e, _f;
4028
4028
  const message = createBaseVerificationAddAddressBody();
4029
4029
  message.address = (_a = object.address) != null ? _a : new Uint8Array();
4030
- message.protocolSignature = (_b = object.protocolSignature) != null ? _b : new Uint8Array();
4030
+ message.claimSignature = (_b = object.claimSignature) != null ? _b : new Uint8Array();
4031
4031
  message.blockHash = (_c = object.blockHash) != null ? _c : new Uint8Array();
4032
4032
  message.verificationType = (_d = object.verificationType) != null ? _d : 0;
4033
4033
  message.chainId = (_e = object.chainId) != null ? _e : 0;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@farcaster/hub-web",
3
- "version": "0.7.4",
3
+ "version": "0.7.6",
4
4
  "main": "./dist/index.js",
5
5
  "module": "./dist/index.mjs",
6
6
  "types": "./dist/index.d.ts",
@@ -28,7 +28,7 @@
28
28
  "ts-proto": "^1.146.0"
29
29
  },
30
30
  "dependencies": {
31
- "@farcaster/core": "^0.13.6",
31
+ "@farcaster/core": "^0.13.8",
32
32
  "@improbable-eng/grpc-web": "^0.15.0",
33
33
  "rxjs": "^7.8.0"
34
34
  }