@farcaster/hub-web 0.7.4 → 0.7.5
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.d.ts +410 -783
- package/dist/index.js +30 -79
- package/dist/index.mjs +30 -79
- package/package.json +2 -2
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 "
|
2993
|
-
return 7 /*
|
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 /*
|
3027
|
-
return "
|
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 */:
|
@@ -3138,28 +3138,6 @@ function reactionTypeToJSON(object) {
|
|
3138
3138
|
throw new tsProtoGlobalThis2.Error("Unrecognized enum value " + object + " for enum ReactionType");
|
3139
3139
|
}
|
3140
3140
|
}
|
3141
|
-
function protocolFromJSON(object) {
|
3142
|
-
switch (object) {
|
3143
|
-
case 0:
|
3144
|
-
case "PROTOCOL_ETHEREUM":
|
3145
|
-
return 0 /* ETHEREUM */;
|
3146
|
-
case 1:
|
3147
|
-
case "PROTOCOL_SOLANA":
|
3148
|
-
return 1 /* SOLANA */;
|
3149
|
-
default:
|
3150
|
-
throw new tsProtoGlobalThis2.Error("Unrecognized enum value " + object + " for enum Protocol");
|
3151
|
-
}
|
3152
|
-
}
|
3153
|
-
function protocolToJSON(object) {
|
3154
|
-
switch (object) {
|
3155
|
-
case 0 /* ETHEREUM */:
|
3156
|
-
return "PROTOCOL_ETHEREUM";
|
3157
|
-
case 1 /* SOLANA */:
|
3158
|
-
return "PROTOCOL_SOLANA";
|
3159
|
-
default:
|
3160
|
-
throw new tsProtoGlobalThis2.Error("Unrecognized enum value " + object + " for enum Protocol");
|
3161
|
-
}
|
3162
|
-
}
|
3163
3141
|
function createBaseMessage() {
|
3164
3142
|
return {
|
3165
3143
|
data: void 0,
|
@@ -3300,7 +3278,7 @@ function createBaseMessageData() {
|
|
3300
3278
|
castAddBody: void 0,
|
3301
3279
|
castRemoveBody: void 0,
|
3302
3280
|
reactionBody: void 0,
|
3303
|
-
|
3281
|
+
verificationAddEthAddressBody: void 0,
|
3304
3282
|
verificationRemoveBody: void 0,
|
3305
3283
|
userDataBody: void 0,
|
3306
3284
|
linkBody: void 0,
|
@@ -3331,8 +3309,8 @@ var MessageData = {
|
|
3331
3309
|
if (message.reactionBody !== void 0) {
|
3332
3310
|
ReactionBody.encode(message.reactionBody, writer.uint32(58).fork()).ldelim();
|
3333
3311
|
}
|
3334
|
-
if (message.
|
3335
|
-
|
3312
|
+
if (message.verificationAddEthAddressBody !== void 0) {
|
3313
|
+
VerificationAddEthAddressBody.encode(message.verificationAddEthAddressBody, writer.uint32(74).fork()).ldelim();
|
3336
3314
|
}
|
3337
3315
|
if (message.verificationRemoveBody !== void 0) {
|
3338
3316
|
VerificationRemoveBody.encode(message.verificationRemoveBody, writer.uint32(82).fork()).ldelim();
|
@@ -3404,7 +3382,7 @@ var MessageData = {
|
|
3404
3382
|
if (tag != 74) {
|
3405
3383
|
break;
|
3406
3384
|
}
|
3407
|
-
message.
|
3385
|
+
message.verificationAddEthAddressBody = VerificationAddEthAddressBody.decode(reader, reader.uint32());
|
3408
3386
|
continue;
|
3409
3387
|
case 10:
|
3410
3388
|
if (tag != 82) {
|
@@ -3453,7 +3431,7 @@ var MessageData = {
|
|
3453
3431
|
castAddBody: isSet2(object.castAddBody) ? CastAddBody.fromJSON(object.castAddBody) : void 0,
|
3454
3432
|
castRemoveBody: isSet2(object.castRemoveBody) ? CastRemoveBody.fromJSON(object.castRemoveBody) : void 0,
|
3455
3433
|
reactionBody: isSet2(object.reactionBody) ? ReactionBody.fromJSON(object.reactionBody) : void 0,
|
3456
|
-
|
3434
|
+
verificationAddEthAddressBody: isSet2(object.verificationAddEthAddressBody) ? VerificationAddEthAddressBody.fromJSON(object.verificationAddEthAddressBody) : void 0,
|
3457
3435
|
verificationRemoveBody: isSet2(object.verificationRemoveBody) ? VerificationRemoveBody.fromJSON(object.verificationRemoveBody) : void 0,
|
3458
3436
|
userDataBody: isSet2(object.userDataBody) ? UserDataBody.fromJSON(object.userDataBody) : void 0,
|
3459
3437
|
linkBody: isSet2(object.linkBody) ? LinkBody.fromJSON(object.linkBody) : void 0,
|
@@ -3470,7 +3448,7 @@ var MessageData = {
|
|
3470
3448
|
message.castAddBody !== void 0 && (obj.castAddBody = message.castAddBody ? CastAddBody.toJSON(message.castAddBody) : void 0);
|
3471
3449
|
message.castRemoveBody !== void 0 && (obj.castRemoveBody = message.castRemoveBody ? CastRemoveBody.toJSON(message.castRemoveBody) : void 0);
|
3472
3450
|
message.reactionBody !== void 0 && (obj.reactionBody = message.reactionBody ? ReactionBody.toJSON(message.reactionBody) : void 0);
|
3473
|
-
message.
|
3451
|
+
message.verificationAddEthAddressBody !== void 0 && (obj.verificationAddEthAddressBody = message.verificationAddEthAddressBody ? VerificationAddEthAddressBody.toJSON(message.verificationAddEthAddressBody) : void 0);
|
3474
3452
|
message.verificationRemoveBody !== void 0 && (obj.verificationRemoveBody = message.verificationRemoveBody ? VerificationRemoveBody.toJSON(message.verificationRemoveBody) : void 0);
|
3475
3453
|
message.userDataBody !== void 0 && (obj.userDataBody = message.userDataBody ? UserDataBody.toJSON(message.userDataBody) : void 0);
|
3476
3454
|
message.linkBody !== void 0 && (obj.linkBody = message.linkBody ? LinkBody.toJSON(message.linkBody) : void 0);
|
@@ -3491,7 +3469,7 @@ var MessageData = {
|
|
3491
3469
|
message.castAddBody = object.castAddBody !== void 0 && object.castAddBody !== null ? CastAddBody.fromPartial(object.castAddBody) : void 0;
|
3492
3470
|
message.castRemoveBody = object.castRemoveBody !== void 0 && object.castRemoveBody !== null ? CastRemoveBody.fromPartial(object.castRemoveBody) : void 0;
|
3493
3471
|
message.reactionBody = object.reactionBody !== void 0 && object.reactionBody !== null ? ReactionBody.fromPartial(object.reactionBody) : void 0;
|
3494
|
-
message.
|
3472
|
+
message.verificationAddEthAddressBody = object.verificationAddEthAddressBody !== void 0 && object.verificationAddEthAddressBody !== null ? VerificationAddEthAddressBody.fromPartial(object.verificationAddEthAddressBody) : void 0;
|
3495
3473
|
message.verificationRemoveBody = object.verificationRemoveBody !== void 0 && object.verificationRemoveBody !== null ? VerificationRemoveBody.fromPartial(object.verificationRemoveBody) : void 0;
|
3496
3474
|
message.userDataBody = object.userDataBody !== void 0 && object.userDataBody !== null ? UserDataBody.fromPartial(object.userDataBody) : void 0;
|
3497
3475
|
message.linkBody = object.linkBody !== void 0 && object.linkBody !== null ? LinkBody.fromPartial(object.linkBody) : void 0;
|
@@ -3978,23 +3956,22 @@ var ReactionBody = {
|
|
3978
3956
|
return message;
|
3979
3957
|
}
|
3980
3958
|
};
|
3981
|
-
function
|
3959
|
+
function createBaseVerificationAddEthAddressBody() {
|
3982
3960
|
return {
|
3983
3961
|
address: new Uint8Array(),
|
3984
|
-
|
3962
|
+
ethSignature: new Uint8Array(),
|
3985
3963
|
blockHash: new Uint8Array(),
|
3986
3964
|
verificationType: 0,
|
3987
|
-
chainId: 0
|
3988
|
-
protocol: 0
|
3965
|
+
chainId: 0
|
3989
3966
|
};
|
3990
3967
|
}
|
3991
|
-
var
|
3968
|
+
var VerificationAddEthAddressBody = {
|
3992
3969
|
encode(message, writer = import_minimal2.default.Writer.create()) {
|
3993
3970
|
if (message.address.length !== 0) {
|
3994
3971
|
writer.uint32(10).bytes(message.address);
|
3995
3972
|
}
|
3996
|
-
if (message.
|
3997
|
-
writer.uint32(18).bytes(message.
|
3973
|
+
if (message.ethSignature.length !== 0) {
|
3974
|
+
writer.uint32(18).bytes(message.ethSignature);
|
3998
3975
|
}
|
3999
3976
|
if (message.blockHash.length !== 0) {
|
4000
3977
|
writer.uint32(26).bytes(message.blockHash);
|
@@ -4005,15 +3982,12 @@ var VerificationAddAddressBody = {
|
|
4005
3982
|
if (message.chainId !== 0) {
|
4006
3983
|
writer.uint32(40).uint32(message.chainId);
|
4007
3984
|
}
|
4008
|
-
if (message.protocol !== 0) {
|
4009
|
-
writer.uint32(56).int32(message.protocol);
|
4010
|
-
}
|
4011
3985
|
return writer;
|
4012
3986
|
},
|
4013
3987
|
decode(input, length) {
|
4014
3988
|
const reader = input instanceof import_minimal2.default.Reader ? input : import_minimal2.default.Reader.create(input);
|
4015
3989
|
let end = length === void 0 ? reader.len : reader.pos + length;
|
4016
|
-
const message =
|
3990
|
+
const message = createBaseVerificationAddEthAddressBody();
|
4017
3991
|
while (reader.pos < end) {
|
4018
3992
|
const tag = reader.uint32();
|
4019
3993
|
switch (tag >>> 3) {
|
@@ -4027,7 +4001,7 @@ var VerificationAddAddressBody = {
|
|
4027
4001
|
if (tag != 18) {
|
4028
4002
|
break;
|
4029
4003
|
}
|
4030
|
-
message.
|
4004
|
+
message.ethSignature = reader.bytes();
|
4031
4005
|
continue;
|
4032
4006
|
case 3:
|
4033
4007
|
if (tag != 26) {
|
@@ -4047,12 +4021,6 @@ var VerificationAddAddressBody = {
|
|
4047
4021
|
}
|
4048
4022
|
message.chainId = reader.uint32();
|
4049
4023
|
continue;
|
4050
|
-
case 7:
|
4051
|
-
if (tag != 56) {
|
4052
|
-
break;
|
4053
|
-
}
|
4054
|
-
message.protocol = reader.int32();
|
4055
|
-
continue;
|
4056
4024
|
}
|
4057
4025
|
if ((tag & 7) == 4 || tag == 0) {
|
4058
4026
|
break;
|
@@ -4064,51 +4032,45 @@ var VerificationAddAddressBody = {
|
|
4064
4032
|
fromJSON(object) {
|
4065
4033
|
return {
|
4066
4034
|
address: isSet2(object.address) ? bytesFromBase642(object.address) : new Uint8Array(),
|
4067
|
-
|
4035
|
+
ethSignature: isSet2(object.ethSignature) ? bytesFromBase642(object.ethSignature) : new Uint8Array(),
|
4068
4036
|
blockHash: isSet2(object.blockHash) ? bytesFromBase642(object.blockHash) : new Uint8Array(),
|
4069
4037
|
verificationType: isSet2(object.verificationType) ? Number(object.verificationType) : 0,
|
4070
|
-
chainId: isSet2(object.chainId) ? Number(object.chainId) : 0
|
4071
|
-
protocol: isSet2(object.protocol) ? protocolFromJSON(object.protocol) : 0
|
4038
|
+
chainId: isSet2(object.chainId) ? Number(object.chainId) : 0
|
4072
4039
|
};
|
4073
4040
|
},
|
4074
4041
|
toJSON(message) {
|
4075
4042
|
const obj = {};
|
4076
4043
|
message.address !== void 0 && (obj.address = base64FromBytes2(message.address !== void 0 ? message.address : new Uint8Array()));
|
4077
|
-
message.
|
4078
|
-
message.
|
4044
|
+
message.ethSignature !== void 0 && (obj.ethSignature = base64FromBytes2(
|
4045
|
+
message.ethSignature !== void 0 ? message.ethSignature : new Uint8Array()
|
4079
4046
|
));
|
4080
4047
|
message.blockHash !== void 0 && (obj.blockHash = base64FromBytes2(message.blockHash !== void 0 ? message.blockHash : new Uint8Array()));
|
4081
4048
|
message.verificationType !== void 0 && (obj.verificationType = Math.round(message.verificationType));
|
4082
4049
|
message.chainId !== void 0 && (obj.chainId = Math.round(message.chainId));
|
4083
|
-
message.protocol !== void 0 && (obj.protocol = protocolToJSON(message.protocol));
|
4084
4050
|
return obj;
|
4085
4051
|
},
|
4086
4052
|
create(base) {
|
4087
|
-
return
|
4053
|
+
return VerificationAddEthAddressBody.fromPartial(base != null ? base : {});
|
4088
4054
|
},
|
4089
4055
|
fromPartial(object) {
|
4090
|
-
var _a, _b, _c, _d, _e
|
4091
|
-
const message =
|
4056
|
+
var _a, _b, _c, _d, _e;
|
4057
|
+
const message = createBaseVerificationAddEthAddressBody();
|
4092
4058
|
message.address = (_a = object.address) != null ? _a : new Uint8Array();
|
4093
|
-
message.
|
4059
|
+
message.ethSignature = (_b = object.ethSignature) != null ? _b : new Uint8Array();
|
4094
4060
|
message.blockHash = (_c = object.blockHash) != null ? _c : new Uint8Array();
|
4095
4061
|
message.verificationType = (_d = object.verificationType) != null ? _d : 0;
|
4096
4062
|
message.chainId = (_e = object.chainId) != null ? _e : 0;
|
4097
|
-
message.protocol = (_f = object.protocol) != null ? _f : 0;
|
4098
4063
|
return message;
|
4099
4064
|
}
|
4100
4065
|
};
|
4101
4066
|
function createBaseVerificationRemoveBody() {
|
4102
|
-
return { address: new Uint8Array()
|
4067
|
+
return { address: new Uint8Array() };
|
4103
4068
|
}
|
4104
4069
|
var VerificationRemoveBody = {
|
4105
4070
|
encode(message, writer = import_minimal2.default.Writer.create()) {
|
4106
4071
|
if (message.address.length !== 0) {
|
4107
4072
|
writer.uint32(10).bytes(message.address);
|
4108
4073
|
}
|
4109
|
-
if (message.protocol !== 0) {
|
4110
|
-
writer.uint32(16).int32(message.protocol);
|
4111
|
-
}
|
4112
4074
|
return writer;
|
4113
4075
|
},
|
4114
4076
|
decode(input, length) {
|
@@ -4124,12 +4086,6 @@ var VerificationRemoveBody = {
|
|
4124
4086
|
}
|
4125
4087
|
message.address = reader.bytes();
|
4126
4088
|
continue;
|
4127
|
-
case 2:
|
4128
|
-
if (tag != 16) {
|
4129
|
-
break;
|
4130
|
-
}
|
4131
|
-
message.protocol = reader.int32();
|
4132
|
-
continue;
|
4133
4089
|
}
|
4134
4090
|
if ((tag & 7) == 4 || tag == 0) {
|
4135
4091
|
break;
|
@@ -4139,25 +4095,20 @@ var VerificationRemoveBody = {
|
|
4139
4095
|
return message;
|
4140
4096
|
},
|
4141
4097
|
fromJSON(object) {
|
4142
|
-
return {
|
4143
|
-
address: isSet2(object.address) ? bytesFromBase642(object.address) : new Uint8Array(),
|
4144
|
-
protocol: isSet2(object.protocol) ? protocolFromJSON(object.protocol) : 0
|
4145
|
-
};
|
4098
|
+
return { address: isSet2(object.address) ? bytesFromBase642(object.address) : new Uint8Array() };
|
4146
4099
|
},
|
4147
4100
|
toJSON(message) {
|
4148
4101
|
const obj = {};
|
4149
4102
|
message.address !== void 0 && (obj.address = base64FromBytes2(message.address !== void 0 ? message.address : new Uint8Array()));
|
4150
|
-
message.protocol !== void 0 && (obj.protocol = protocolToJSON(message.protocol));
|
4151
4103
|
return obj;
|
4152
4104
|
},
|
4153
4105
|
create(base) {
|
4154
4106
|
return VerificationRemoveBody.fromPartial(base != null ? base : {});
|
4155
4107
|
},
|
4156
4108
|
fromPartial(object) {
|
4157
|
-
var _a
|
4109
|
+
var _a;
|
4158
4110
|
const message = createBaseVerificationRemoveBody();
|
4159
4111
|
message.address = (_a = object.address) != null ? _a : new Uint8Array();
|
4160
|
-
message.protocol = (_b = object.protocol) != null ? _b : 0;
|
4161
4112
|
return message;
|
4162
4113
|
}
|
4163
4114
|
};
|
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 "
|
2930
|
-
return 7 /*
|
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 /*
|
2964
|
-
return "
|
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 */:
|
@@ -3075,28 +3075,6 @@ function reactionTypeToJSON(object) {
|
|
3075
3075
|
throw new tsProtoGlobalThis2.Error("Unrecognized enum value " + object + " for enum ReactionType");
|
3076
3076
|
}
|
3077
3077
|
}
|
3078
|
-
function protocolFromJSON(object) {
|
3079
|
-
switch (object) {
|
3080
|
-
case 0:
|
3081
|
-
case "PROTOCOL_ETHEREUM":
|
3082
|
-
return 0 /* ETHEREUM */;
|
3083
|
-
case 1:
|
3084
|
-
case "PROTOCOL_SOLANA":
|
3085
|
-
return 1 /* SOLANA */;
|
3086
|
-
default:
|
3087
|
-
throw new tsProtoGlobalThis2.Error("Unrecognized enum value " + object + " for enum Protocol");
|
3088
|
-
}
|
3089
|
-
}
|
3090
|
-
function protocolToJSON(object) {
|
3091
|
-
switch (object) {
|
3092
|
-
case 0 /* ETHEREUM */:
|
3093
|
-
return "PROTOCOL_ETHEREUM";
|
3094
|
-
case 1 /* SOLANA */:
|
3095
|
-
return "PROTOCOL_SOLANA";
|
3096
|
-
default:
|
3097
|
-
throw new tsProtoGlobalThis2.Error("Unrecognized enum value " + object + " for enum Protocol");
|
3098
|
-
}
|
3099
|
-
}
|
3100
3078
|
function createBaseMessage() {
|
3101
3079
|
return {
|
3102
3080
|
data: void 0,
|
@@ -3237,7 +3215,7 @@ function createBaseMessageData() {
|
|
3237
3215
|
castAddBody: void 0,
|
3238
3216
|
castRemoveBody: void 0,
|
3239
3217
|
reactionBody: void 0,
|
3240
|
-
|
3218
|
+
verificationAddEthAddressBody: void 0,
|
3241
3219
|
verificationRemoveBody: void 0,
|
3242
3220
|
userDataBody: void 0,
|
3243
3221
|
linkBody: void 0,
|
@@ -3268,8 +3246,8 @@ var MessageData = {
|
|
3268
3246
|
if (message.reactionBody !== void 0) {
|
3269
3247
|
ReactionBody.encode(message.reactionBody, writer.uint32(58).fork()).ldelim();
|
3270
3248
|
}
|
3271
|
-
if (message.
|
3272
|
-
|
3249
|
+
if (message.verificationAddEthAddressBody !== void 0) {
|
3250
|
+
VerificationAddEthAddressBody.encode(message.verificationAddEthAddressBody, writer.uint32(74).fork()).ldelim();
|
3273
3251
|
}
|
3274
3252
|
if (message.verificationRemoveBody !== void 0) {
|
3275
3253
|
VerificationRemoveBody.encode(message.verificationRemoveBody, writer.uint32(82).fork()).ldelim();
|
@@ -3341,7 +3319,7 @@ var MessageData = {
|
|
3341
3319
|
if (tag != 74) {
|
3342
3320
|
break;
|
3343
3321
|
}
|
3344
|
-
message.
|
3322
|
+
message.verificationAddEthAddressBody = VerificationAddEthAddressBody.decode(reader, reader.uint32());
|
3345
3323
|
continue;
|
3346
3324
|
case 10:
|
3347
3325
|
if (tag != 82) {
|
@@ -3390,7 +3368,7 @@ var MessageData = {
|
|
3390
3368
|
castAddBody: isSet2(object.castAddBody) ? CastAddBody.fromJSON(object.castAddBody) : void 0,
|
3391
3369
|
castRemoveBody: isSet2(object.castRemoveBody) ? CastRemoveBody.fromJSON(object.castRemoveBody) : void 0,
|
3392
3370
|
reactionBody: isSet2(object.reactionBody) ? ReactionBody.fromJSON(object.reactionBody) : void 0,
|
3393
|
-
|
3371
|
+
verificationAddEthAddressBody: isSet2(object.verificationAddEthAddressBody) ? VerificationAddEthAddressBody.fromJSON(object.verificationAddEthAddressBody) : void 0,
|
3394
3372
|
verificationRemoveBody: isSet2(object.verificationRemoveBody) ? VerificationRemoveBody.fromJSON(object.verificationRemoveBody) : void 0,
|
3395
3373
|
userDataBody: isSet2(object.userDataBody) ? UserDataBody.fromJSON(object.userDataBody) : void 0,
|
3396
3374
|
linkBody: isSet2(object.linkBody) ? LinkBody.fromJSON(object.linkBody) : void 0,
|
@@ -3407,7 +3385,7 @@ var MessageData = {
|
|
3407
3385
|
message.castAddBody !== void 0 && (obj.castAddBody = message.castAddBody ? CastAddBody.toJSON(message.castAddBody) : void 0);
|
3408
3386
|
message.castRemoveBody !== void 0 && (obj.castRemoveBody = message.castRemoveBody ? CastRemoveBody.toJSON(message.castRemoveBody) : void 0);
|
3409
3387
|
message.reactionBody !== void 0 && (obj.reactionBody = message.reactionBody ? ReactionBody.toJSON(message.reactionBody) : void 0);
|
3410
|
-
message.
|
3388
|
+
message.verificationAddEthAddressBody !== void 0 && (obj.verificationAddEthAddressBody = message.verificationAddEthAddressBody ? VerificationAddEthAddressBody.toJSON(message.verificationAddEthAddressBody) : void 0);
|
3411
3389
|
message.verificationRemoveBody !== void 0 && (obj.verificationRemoveBody = message.verificationRemoveBody ? VerificationRemoveBody.toJSON(message.verificationRemoveBody) : void 0);
|
3412
3390
|
message.userDataBody !== void 0 && (obj.userDataBody = message.userDataBody ? UserDataBody.toJSON(message.userDataBody) : void 0);
|
3413
3391
|
message.linkBody !== void 0 && (obj.linkBody = message.linkBody ? LinkBody.toJSON(message.linkBody) : void 0);
|
@@ -3428,7 +3406,7 @@ var MessageData = {
|
|
3428
3406
|
message.castAddBody = object.castAddBody !== void 0 && object.castAddBody !== null ? CastAddBody.fromPartial(object.castAddBody) : void 0;
|
3429
3407
|
message.castRemoveBody = object.castRemoveBody !== void 0 && object.castRemoveBody !== null ? CastRemoveBody.fromPartial(object.castRemoveBody) : void 0;
|
3430
3408
|
message.reactionBody = object.reactionBody !== void 0 && object.reactionBody !== null ? ReactionBody.fromPartial(object.reactionBody) : void 0;
|
3431
|
-
message.
|
3409
|
+
message.verificationAddEthAddressBody = object.verificationAddEthAddressBody !== void 0 && object.verificationAddEthAddressBody !== null ? VerificationAddEthAddressBody.fromPartial(object.verificationAddEthAddressBody) : void 0;
|
3432
3410
|
message.verificationRemoveBody = object.verificationRemoveBody !== void 0 && object.verificationRemoveBody !== null ? VerificationRemoveBody.fromPartial(object.verificationRemoveBody) : void 0;
|
3433
3411
|
message.userDataBody = object.userDataBody !== void 0 && object.userDataBody !== null ? UserDataBody.fromPartial(object.userDataBody) : void 0;
|
3434
3412
|
message.linkBody = object.linkBody !== void 0 && object.linkBody !== null ? LinkBody.fromPartial(object.linkBody) : void 0;
|
@@ -3915,23 +3893,22 @@ var ReactionBody = {
|
|
3915
3893
|
return message;
|
3916
3894
|
}
|
3917
3895
|
};
|
3918
|
-
function
|
3896
|
+
function createBaseVerificationAddEthAddressBody() {
|
3919
3897
|
return {
|
3920
3898
|
address: new Uint8Array(),
|
3921
|
-
|
3899
|
+
ethSignature: new Uint8Array(),
|
3922
3900
|
blockHash: new Uint8Array(),
|
3923
3901
|
verificationType: 0,
|
3924
|
-
chainId: 0
|
3925
|
-
protocol: 0
|
3902
|
+
chainId: 0
|
3926
3903
|
};
|
3927
3904
|
}
|
3928
|
-
var
|
3905
|
+
var VerificationAddEthAddressBody = {
|
3929
3906
|
encode(message, writer = import_minimal2.default.Writer.create()) {
|
3930
3907
|
if (message.address.length !== 0) {
|
3931
3908
|
writer.uint32(10).bytes(message.address);
|
3932
3909
|
}
|
3933
|
-
if (message.
|
3934
|
-
writer.uint32(18).bytes(message.
|
3910
|
+
if (message.ethSignature.length !== 0) {
|
3911
|
+
writer.uint32(18).bytes(message.ethSignature);
|
3935
3912
|
}
|
3936
3913
|
if (message.blockHash.length !== 0) {
|
3937
3914
|
writer.uint32(26).bytes(message.blockHash);
|
@@ -3942,15 +3919,12 @@ var VerificationAddAddressBody = {
|
|
3942
3919
|
if (message.chainId !== 0) {
|
3943
3920
|
writer.uint32(40).uint32(message.chainId);
|
3944
3921
|
}
|
3945
|
-
if (message.protocol !== 0) {
|
3946
|
-
writer.uint32(56).int32(message.protocol);
|
3947
|
-
}
|
3948
3922
|
return writer;
|
3949
3923
|
},
|
3950
3924
|
decode(input, length) {
|
3951
3925
|
const reader = input instanceof import_minimal2.default.Reader ? input : import_minimal2.default.Reader.create(input);
|
3952
3926
|
let end = length === void 0 ? reader.len : reader.pos + length;
|
3953
|
-
const message =
|
3927
|
+
const message = createBaseVerificationAddEthAddressBody();
|
3954
3928
|
while (reader.pos < end) {
|
3955
3929
|
const tag = reader.uint32();
|
3956
3930
|
switch (tag >>> 3) {
|
@@ -3964,7 +3938,7 @@ var VerificationAddAddressBody = {
|
|
3964
3938
|
if (tag != 18) {
|
3965
3939
|
break;
|
3966
3940
|
}
|
3967
|
-
message.
|
3941
|
+
message.ethSignature = reader.bytes();
|
3968
3942
|
continue;
|
3969
3943
|
case 3:
|
3970
3944
|
if (tag != 26) {
|
@@ -3984,12 +3958,6 @@ var VerificationAddAddressBody = {
|
|
3984
3958
|
}
|
3985
3959
|
message.chainId = reader.uint32();
|
3986
3960
|
continue;
|
3987
|
-
case 7:
|
3988
|
-
if (tag != 56) {
|
3989
|
-
break;
|
3990
|
-
}
|
3991
|
-
message.protocol = reader.int32();
|
3992
|
-
continue;
|
3993
3961
|
}
|
3994
3962
|
if ((tag & 7) == 4 || tag == 0) {
|
3995
3963
|
break;
|
@@ -4001,51 +3969,45 @@ var VerificationAddAddressBody = {
|
|
4001
3969
|
fromJSON(object) {
|
4002
3970
|
return {
|
4003
3971
|
address: isSet2(object.address) ? bytesFromBase642(object.address) : new Uint8Array(),
|
4004
|
-
|
3972
|
+
ethSignature: isSet2(object.ethSignature) ? bytesFromBase642(object.ethSignature) : new Uint8Array(),
|
4005
3973
|
blockHash: isSet2(object.blockHash) ? bytesFromBase642(object.blockHash) : new Uint8Array(),
|
4006
3974
|
verificationType: isSet2(object.verificationType) ? Number(object.verificationType) : 0,
|
4007
|
-
chainId: isSet2(object.chainId) ? Number(object.chainId) : 0
|
4008
|
-
protocol: isSet2(object.protocol) ? protocolFromJSON(object.protocol) : 0
|
3975
|
+
chainId: isSet2(object.chainId) ? Number(object.chainId) : 0
|
4009
3976
|
};
|
4010
3977
|
},
|
4011
3978
|
toJSON(message) {
|
4012
3979
|
const obj = {};
|
4013
3980
|
message.address !== void 0 && (obj.address = base64FromBytes2(message.address !== void 0 ? message.address : new Uint8Array()));
|
4014
|
-
message.
|
4015
|
-
message.
|
3981
|
+
message.ethSignature !== void 0 && (obj.ethSignature = base64FromBytes2(
|
3982
|
+
message.ethSignature !== void 0 ? message.ethSignature : new Uint8Array()
|
4016
3983
|
));
|
4017
3984
|
message.blockHash !== void 0 && (obj.blockHash = base64FromBytes2(message.blockHash !== void 0 ? message.blockHash : new Uint8Array()));
|
4018
3985
|
message.verificationType !== void 0 && (obj.verificationType = Math.round(message.verificationType));
|
4019
3986
|
message.chainId !== void 0 && (obj.chainId = Math.round(message.chainId));
|
4020
|
-
message.protocol !== void 0 && (obj.protocol = protocolToJSON(message.protocol));
|
4021
3987
|
return obj;
|
4022
3988
|
},
|
4023
3989
|
create(base) {
|
4024
|
-
return
|
3990
|
+
return VerificationAddEthAddressBody.fromPartial(base != null ? base : {});
|
4025
3991
|
},
|
4026
3992
|
fromPartial(object) {
|
4027
|
-
var _a, _b, _c, _d, _e
|
4028
|
-
const message =
|
3993
|
+
var _a, _b, _c, _d, _e;
|
3994
|
+
const message = createBaseVerificationAddEthAddressBody();
|
4029
3995
|
message.address = (_a = object.address) != null ? _a : new Uint8Array();
|
4030
|
-
message.
|
3996
|
+
message.ethSignature = (_b = object.ethSignature) != null ? _b : new Uint8Array();
|
4031
3997
|
message.blockHash = (_c = object.blockHash) != null ? _c : new Uint8Array();
|
4032
3998
|
message.verificationType = (_d = object.verificationType) != null ? _d : 0;
|
4033
3999
|
message.chainId = (_e = object.chainId) != null ? _e : 0;
|
4034
|
-
message.protocol = (_f = object.protocol) != null ? _f : 0;
|
4035
4000
|
return message;
|
4036
4001
|
}
|
4037
4002
|
};
|
4038
4003
|
function createBaseVerificationRemoveBody() {
|
4039
|
-
return { address: new Uint8Array()
|
4004
|
+
return { address: new Uint8Array() };
|
4040
4005
|
}
|
4041
4006
|
var VerificationRemoveBody = {
|
4042
4007
|
encode(message, writer = import_minimal2.default.Writer.create()) {
|
4043
4008
|
if (message.address.length !== 0) {
|
4044
4009
|
writer.uint32(10).bytes(message.address);
|
4045
4010
|
}
|
4046
|
-
if (message.protocol !== 0) {
|
4047
|
-
writer.uint32(16).int32(message.protocol);
|
4048
|
-
}
|
4049
4011
|
return writer;
|
4050
4012
|
},
|
4051
4013
|
decode(input, length) {
|
@@ -4061,12 +4023,6 @@ var VerificationRemoveBody = {
|
|
4061
4023
|
}
|
4062
4024
|
message.address = reader.bytes();
|
4063
4025
|
continue;
|
4064
|
-
case 2:
|
4065
|
-
if (tag != 16) {
|
4066
|
-
break;
|
4067
|
-
}
|
4068
|
-
message.protocol = reader.int32();
|
4069
|
-
continue;
|
4070
4026
|
}
|
4071
4027
|
if ((tag & 7) == 4 || tag == 0) {
|
4072
4028
|
break;
|
@@ -4076,25 +4032,20 @@ var VerificationRemoveBody = {
|
|
4076
4032
|
return message;
|
4077
4033
|
},
|
4078
4034
|
fromJSON(object) {
|
4079
|
-
return {
|
4080
|
-
address: isSet2(object.address) ? bytesFromBase642(object.address) : new Uint8Array(),
|
4081
|
-
protocol: isSet2(object.protocol) ? protocolFromJSON(object.protocol) : 0
|
4082
|
-
};
|
4035
|
+
return { address: isSet2(object.address) ? bytesFromBase642(object.address) : new Uint8Array() };
|
4083
4036
|
},
|
4084
4037
|
toJSON(message) {
|
4085
4038
|
const obj = {};
|
4086
4039
|
message.address !== void 0 && (obj.address = base64FromBytes2(message.address !== void 0 ? message.address : new Uint8Array()));
|
4087
|
-
message.protocol !== void 0 && (obj.protocol = protocolToJSON(message.protocol));
|
4088
4040
|
return obj;
|
4089
4041
|
},
|
4090
4042
|
create(base) {
|
4091
4043
|
return VerificationRemoveBody.fromPartial(base != null ? base : {});
|
4092
4044
|
},
|
4093
4045
|
fromPartial(object) {
|
4094
|
-
var _a
|
4046
|
+
var _a;
|
4095
4047
|
const message = createBaseVerificationRemoveBody();
|
4096
4048
|
message.address = (_a = object.address) != null ? _a : new Uint8Array();
|
4097
|
-
message.protocol = (_b = object.protocol) != null ? _b : 0;
|
4098
4049
|
return message;
|
4099
4050
|
}
|
4100
4051
|
};
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@farcaster/hub-web",
|
3
|
-
"version": "0.7.
|
3
|
+
"version": "0.7.5",
|
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.
|
31
|
+
"@farcaster/core": "^0.13.7",
|
32
32
|
"@improbable-eng/grpc-web": "^0.15.0",
|
33
33
|
"rxjs": "^7.8.0"
|
34
34
|
}
|