@sparkdreamnft/sparkdreamjs 0.0.8 → 0.0.9
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/cosmos/bundle.d.ts +160 -160
- package/cosmos/bundle.js +182 -182
- package/esm/cosmos/bundle.js +182 -182
- package/esm/ibc/bundle.js +106 -106
- package/esm/sparkdream/bundle.js +368 -332
- package/esm/sparkdream/client.js +4 -1
- package/esm/sparkdream/{forum → commons}/v1/category.js +7 -5
- package/esm/sparkdream/commons/v1/genesis.js +29 -1
- package/esm/sparkdream/commons/v1/query.js +292 -0
- package/esm/sparkdream/commons/v1/query.lcd.js +18 -0
- package/esm/sparkdream/commons/v1/query.rpc.Query.js +21 -1
- package/esm/sparkdream/commons/v1/tx.amino.js +6 -1
- package/esm/sparkdream/commons/v1/tx.js +193 -0
- package/esm/sparkdream/commons/v1/tx.registry.js +20 -2
- package/esm/sparkdream/commons/v1/tx.rpc.msg.js +8 -1
- package/esm/sparkdream/federation/module/v1/module.js +71 -0
- package/esm/sparkdream/federation/v1/genesis.js +244 -0
- package/esm/sparkdream/federation/v1/packet.js +810 -0
- package/esm/sparkdream/federation/v1/params.js +789 -0
- package/esm/sparkdream/federation/v1/query.js +2629 -0
- package/esm/sparkdream/federation/v1/query.lcd.js +152 -0
- package/esm/sparkdream/federation/v1/query.rpc.Query.js +189 -0
- package/esm/sparkdream/federation/v1/tx.amino.js +139 -0
- package/esm/sparkdream/federation/v1/tx.js +4199 -0
- package/esm/sparkdream/federation/v1/tx.registry.js +501 -0
- package/esm/sparkdream/federation/v1/tx.rpc.msg.js +173 -0
- package/esm/sparkdream/federation/v1/types.js +2571 -0
- package/esm/sparkdream/forum/v1/genesis.js +26 -250
- package/esm/sparkdream/forum/v1/query.js +2084 -7387
- package/esm/sparkdream/forum/v1/query.lcd.js +0 -310
- package/esm/sparkdream/forum/v1/query.rpc.Query.js +1 -339
- package/esm/sparkdream/forum/v1/sentinel_activity.js +46 -139
- package/esm/sparkdream/forum/v1/tx.amino.js +1 -76
- package/esm/sparkdream/forum/v1/tx.js +333 -2628
- package/esm/sparkdream/forum/v1/tx.registry.js +2 -272
- package/esm/sparkdream/forum/v1/tx.rpc.msg.js +1 -91
- package/esm/sparkdream/forum/v1/types.js +0 -216
- package/esm/sparkdream/lcd.js +5 -0
- package/esm/sparkdream/rep/v1/accountability.js +172 -0
- package/esm/sparkdream/rep/v1/genesis.js +209 -1
- package/esm/sparkdream/{forum → rep}/v1/gov_action_appeal.js +4 -4
- package/esm/sparkdream/{forum → rep}/v1/jury_participation.js +4 -4
- package/esm/sparkdream/rep/v1/member.js +25 -1
- package/esm/sparkdream/{forum → rep}/v1/member_report.js +4 -4
- package/esm/sparkdream/{forum → rep}/v1/member_warning.js +4 -4
- package/esm/sparkdream/rep/v1/params.js +782 -254
- package/esm/sparkdream/rep/v1/project.js +13 -1
- package/esm/sparkdream/rep/v1/query.js +5260 -0
- package/esm/sparkdream/rep/v1/query.lcd.js +286 -0
- package/esm/sparkdream/rep/v1/query.rpc.Query.js +333 -1
- package/esm/sparkdream/{common → rep}/v1/reserved_tag.js +5 -5
- package/esm/sparkdream/rep/v1/sentinel_activity.js +214 -0
- package/esm/sparkdream/{common → rep}/v1/tag.js +6 -6
- package/esm/sparkdream/{forum → rep}/v1/tag_budget.js +4 -4
- package/esm/sparkdream/{forum → rep}/v1/tag_budget_award.js +4 -4
- package/esm/sparkdream/{forum → rep}/v1/tag_report.js +4 -4
- package/esm/sparkdream/rep/v1/tx.amino.js +81 -1
- package/esm/sparkdream/rep/v1/tx.js +2439 -0
- package/esm/sparkdream/rep/v1/tx.registry.js +290 -2
- package/esm/sparkdream/rep/v1/tx.rpc.msg.js +102 -1
- package/esm/sparkdream/rpc.query.js +3 -0
- package/esm/sparkdream/rpc.tx.js +3 -0
- package/esm/sparkdream/season/v1/params.js +94 -46
- package/esm/sparkdream/shield/v1/types.js +47 -5
- package/esm/tendermint/bundle.js +20 -20
- package/ibc/bundle.d.ts +90 -90
- package/ibc/bundle.js +106 -106
- package/package.json +1 -1
- package/sparkdream/bundle.d.ts +13210 -11120
- package/sparkdream/bundle.js +368 -332
- package/sparkdream/client.d.ts +202 -57
- package/sparkdream/client.js +4 -1
- package/sparkdream/{forum → commons}/v1/category.d.ts +17 -11
- package/sparkdream/{forum → commons}/v1/category.js +7 -5
- package/sparkdream/commons/v1/genesis.d.ts +17 -0
- package/sparkdream/commons/v1/genesis.js +29 -1
- package/sparkdream/commons/v1/query.d.ts +179 -0
- package/sparkdream/commons/v1/query.js +293 -1
- package/sparkdream/commons/v1/query.lcd.d.ts +3 -1
- package/sparkdream/commons/v1/query.lcd.js +18 -0
- package/sparkdream/commons/v1/query.rpc.Query.d.ts +9 -1
- package/sparkdream/commons/v1/query.rpc.Query.js +20 -0
- package/sparkdream/commons/v1/tx.amino.d.ts +6 -1
- package/sparkdream/commons/v1/tx.amino.js +5 -0
- package/sparkdream/commons/v1/tx.d.ts +98 -0
- package/sparkdream/commons/v1/tx.js +194 -1
- package/sparkdream/commons/v1/tx.registry.d.ts +13 -1
- package/sparkdream/commons/v1/tx.registry.js +19 -1
- package/sparkdream/commons/v1/tx.rpc.msg.d.ts +7 -1
- package/sparkdream/commons/v1/tx.rpc.msg.js +7 -0
- package/sparkdream/federation/module/v1/module.d.ts +54 -0
- package/sparkdream/federation/module/v1/module.js +74 -0
- package/sparkdream/federation/v1/genesis.d.ts +78 -0
- package/sparkdream/federation/v1/genesis.js +247 -0
- package/sparkdream/federation/v1/packet.d.ts +397 -0
- package/sparkdream/federation/v1/packet.js +813 -0
- package/sparkdream/federation/v1/params.d.ts +272 -0
- package/sparkdream/federation/v1/params.js +792 -0
- package/sparkdream/federation/v1/query.d.ts +1541 -0
- package/sparkdream/federation/v1/query.js +2632 -0
- package/sparkdream/federation/v1/query.lcd.d.ts +26 -0
- package/sparkdream/federation/v1/query.lcd.js +156 -0
- package/sparkdream/federation/v1/query.rpc.Query.d.ts +66 -0
- package/sparkdream/federation/v1/query.rpc.Query.js +194 -0
- package/sparkdream/federation/v1/tx.amino.d.ts +138 -0
- package/sparkdream/federation/v1/tx.amino.js +142 -0
- package/sparkdream/federation/v1/tx.d.ts +2311 -0
- package/sparkdream/federation/v1/tx.js +4203 -0
- package/sparkdream/federation/v1/tx.registry.d.ts +337 -0
- package/sparkdream/federation/v1/tx.registry.js +505 -0
- package/sparkdream/federation/v1/tx.rpc.msg.d.ts +64 -0
- package/sparkdream/federation/v1/tx.rpc.msg.js +178 -0
- package/sparkdream/federation/v1/types.d.ts +906 -0
- package/sparkdream/federation/v1/types.js +2588 -0
- package/sparkdream/forum/v1/genesis.d.ts +0 -41
- package/sparkdream/forum/v1/genesis.js +26 -250
- package/sparkdream/forum/v1/query.d.ts +65 -3164
- package/sparkdream/forum/v1/query.js +2086 -7391
- package/sparkdream/forum/v1/query.lcd.d.ts +1 -35
- package/sparkdream/forum/v1/query.lcd.js +0 -310
- package/sparkdream/forum/v1/query.rpc.Query.d.ts +1 -137
- package/sparkdream/forum/v1/query.rpc.Query.js +0 -338
- package/sparkdream/forum/v1/sentinel_activity.d.ts +9 -20
- package/sparkdream/forum/v1/sentinel_activity.js +46 -139
- package/sparkdream/forum/v1/tx.amino.d.ts +1 -76
- package/sparkdream/forum/v1/tx.amino.js +0 -75
- package/sparkdream/forum/v1/tx.d.ts +85 -1445
- package/sparkdream/forum/v1/tx.js +335 -2630
- package/sparkdream/forum/v1/tx.registry.d.ts +1 -181
- package/sparkdream/forum/v1/tx.registry.js +1 -271
- package/sparkdream/forum/v1/tx.rpc.msg.d.ts +1 -46
- package/sparkdream/forum/v1/tx.rpc.msg.js +0 -90
- package/sparkdream/forum/v1/types.d.ts +0 -50
- package/sparkdream/forum/v1/types.js +1 -225
- package/sparkdream/lcd.d.ts +3 -0
- package/sparkdream/lcd.js +5 -0
- package/sparkdream/rep/v1/accountability.d.ts +39 -0
- package/sparkdream/rep/v1/accountability.js +181 -0
- package/sparkdream/rep/v1/genesis.d.ts +68 -0
- package/sparkdream/rep/v1/genesis.js +209 -1
- package/sparkdream/{forum → rep}/v1/gov_action_appeal.d.ts +9 -9
- package/sparkdream/{forum → rep}/v1/gov_action_appeal.js +4 -4
- package/sparkdream/{forum → rep}/v1/jury_participation.d.ts +8 -8
- package/sparkdream/{forum → rep}/v1/jury_participation.js +4 -4
- package/sparkdream/rep/v1/member.d.ts +16 -0
- package/sparkdream/rep/v1/member.js +25 -1
- package/sparkdream/{forum → rep}/v1/member_report.d.ts +9 -9
- package/sparkdream/{forum → rep}/v1/member_report.js +4 -4
- package/sparkdream/{forum → rep}/v1/member_warning.d.ts +8 -8
- package/sparkdream/{forum → rep}/v1/member_warning.js +4 -4
- package/sparkdream/rep/v1/params.d.ts +352 -8
- package/sparkdream/rep/v1/params.js +782 -254
- package/sparkdream/rep/v1/project.d.ts +10 -0
- package/sparkdream/rep/v1/project.js +13 -1
- package/sparkdream/rep/v1/query.d.ts +4197 -1129
- package/sparkdream/rep/v1/query.js +5263 -1
- package/sparkdream/rep/v1/query.lcd.d.ts +35 -1
- package/sparkdream/rep/v1/query.lcd.js +286 -0
- package/sparkdream/rep/v1/query.rpc.Query.d.ts +137 -1
- package/sparkdream/rep/v1/query.rpc.Query.js +332 -0
- package/sparkdream/{common → rep}/v1/reserved_tag.d.ts +11 -11
- package/sparkdream/{common → rep}/v1/reserved_tag.js +5 -5
- package/sparkdream/rep/v1/sentinel_activity.d.ts +79 -0
- package/sparkdream/rep/v1/sentinel_activity.js +219 -0
- package/sparkdream/{common → rep}/v1/tag.d.ts +14 -14
- package/sparkdream/{common → rep}/v1/tag.js +6 -6
- package/sparkdream/{forum → rep}/v1/tag_budget.d.ts +8 -8
- package/sparkdream/{forum → rep}/v1/tag_budget.js +4 -4
- package/sparkdream/{forum → rep}/v1/tag_budget_award.d.ts +8 -8
- package/sparkdream/{forum → rep}/v1/tag_budget_award.js +4 -4
- package/sparkdream/{forum → rep}/v1/tag_report.d.ts +8 -8
- package/sparkdream/{forum → rep}/v1/tag_report.js +4 -4
- package/sparkdream/rep/v1/tx.amino.d.ts +81 -1
- package/sparkdream/rep/v1/tx.amino.js +80 -0
- package/sparkdream/rep/v1/tx.d.ts +1467 -0
- package/sparkdream/rep/v1/tx.js +2440 -1
- package/sparkdream/rep/v1/tx.registry.d.ts +193 -1
- package/sparkdream/rep/v1/tx.registry.js +289 -1
- package/sparkdream/rep/v1/tx.rpc.msg.d.ts +62 -1
- package/sparkdream/rep/v1/tx.rpc.msg.js +101 -0
- package/sparkdream/rpc.query.d.ts +58 -34
- package/sparkdream/rpc.query.js +3 -0
- package/sparkdream/rpc.tx.d.ts +3 -0
- package/sparkdream/rpc.tx.js +3 -0
- package/sparkdream/season/v1/params.d.ts +36 -4
- package/sparkdream/season/v1/params.js +94 -46
- package/sparkdream/shield/v1/types.d.ts +28 -0
- package/sparkdream/shield/v1/types.js +47 -5
- package/tendermint/bundle.d.ts +844 -844
- package/tendermint/bundle.js +20 -20
- package/esm/sparkdream/forum/v1/member_salvation_status.js +0 -119
- package/sparkdream/forum/v1/member_salvation_status.d.ts +0 -54
- package/sparkdream/forum/v1/member_salvation_status.js +0 -122
|
@@ -3280,3 +3280,196 @@ export const MsgAnonymousVoteProposalResponse = {
|
|
|
3280
3280
|
};
|
|
3281
3281
|
}
|
|
3282
3282
|
};
|
|
3283
|
+
function createBaseMsgCreateCategory() {
|
|
3284
|
+
return {
|
|
3285
|
+
creator: "",
|
|
3286
|
+
title: "",
|
|
3287
|
+
description: "",
|
|
3288
|
+
membersOnlyWrite: false,
|
|
3289
|
+
adminOnlyWrite: false
|
|
3290
|
+
};
|
|
3291
|
+
}
|
|
3292
|
+
/**
|
|
3293
|
+
* MsgCreateCategory defines the MsgCreateCategory message.
|
|
3294
|
+
* @name MsgCreateCategory
|
|
3295
|
+
* @package sparkdream.commons.v1
|
|
3296
|
+
* @see proto type: sparkdream.commons.v1.MsgCreateCategory
|
|
3297
|
+
*/
|
|
3298
|
+
export const MsgCreateCategory = {
|
|
3299
|
+
typeUrl: "/sparkdream.commons.v1.MsgCreateCategory",
|
|
3300
|
+
aminoType: "sparkdream/x/commons/MsgCreateCategory",
|
|
3301
|
+
encode(message, writer = BinaryWriter.create()) {
|
|
3302
|
+
if (message.creator !== "") {
|
|
3303
|
+
writer.uint32(10).string(message.creator);
|
|
3304
|
+
}
|
|
3305
|
+
if (message.title !== "") {
|
|
3306
|
+
writer.uint32(18).string(message.title);
|
|
3307
|
+
}
|
|
3308
|
+
if (message.description !== "") {
|
|
3309
|
+
writer.uint32(26).string(message.description);
|
|
3310
|
+
}
|
|
3311
|
+
if (message.membersOnlyWrite === true) {
|
|
3312
|
+
writer.uint32(32).bool(message.membersOnlyWrite);
|
|
3313
|
+
}
|
|
3314
|
+
if (message.adminOnlyWrite === true) {
|
|
3315
|
+
writer.uint32(40).bool(message.adminOnlyWrite);
|
|
3316
|
+
}
|
|
3317
|
+
return writer;
|
|
3318
|
+
},
|
|
3319
|
+
decode(input, length) {
|
|
3320
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
3321
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
3322
|
+
const message = createBaseMsgCreateCategory();
|
|
3323
|
+
while (reader.pos < end) {
|
|
3324
|
+
const tag = reader.uint32();
|
|
3325
|
+
switch (tag >>> 3) {
|
|
3326
|
+
case 1:
|
|
3327
|
+
message.creator = reader.string();
|
|
3328
|
+
break;
|
|
3329
|
+
case 2:
|
|
3330
|
+
message.title = reader.string();
|
|
3331
|
+
break;
|
|
3332
|
+
case 3:
|
|
3333
|
+
message.description = reader.string();
|
|
3334
|
+
break;
|
|
3335
|
+
case 4:
|
|
3336
|
+
message.membersOnlyWrite = reader.bool();
|
|
3337
|
+
break;
|
|
3338
|
+
case 5:
|
|
3339
|
+
message.adminOnlyWrite = reader.bool();
|
|
3340
|
+
break;
|
|
3341
|
+
default:
|
|
3342
|
+
reader.skipType(tag & 7);
|
|
3343
|
+
break;
|
|
3344
|
+
}
|
|
3345
|
+
}
|
|
3346
|
+
return message;
|
|
3347
|
+
},
|
|
3348
|
+
fromPartial(object) {
|
|
3349
|
+
const message = createBaseMsgCreateCategory();
|
|
3350
|
+
message.creator = object.creator ?? "";
|
|
3351
|
+
message.title = object.title ?? "";
|
|
3352
|
+
message.description = object.description ?? "";
|
|
3353
|
+
message.membersOnlyWrite = object.membersOnlyWrite ?? false;
|
|
3354
|
+
message.adminOnlyWrite = object.adminOnlyWrite ?? false;
|
|
3355
|
+
return message;
|
|
3356
|
+
},
|
|
3357
|
+
fromAmino(object) {
|
|
3358
|
+
const message = createBaseMsgCreateCategory();
|
|
3359
|
+
if (object.creator !== undefined && object.creator !== null) {
|
|
3360
|
+
message.creator = object.creator;
|
|
3361
|
+
}
|
|
3362
|
+
if (object.title !== undefined && object.title !== null) {
|
|
3363
|
+
message.title = object.title;
|
|
3364
|
+
}
|
|
3365
|
+
if (object.description !== undefined && object.description !== null) {
|
|
3366
|
+
message.description = object.description;
|
|
3367
|
+
}
|
|
3368
|
+
if (object.members_only_write !== undefined && object.members_only_write !== null) {
|
|
3369
|
+
message.membersOnlyWrite = object.members_only_write;
|
|
3370
|
+
}
|
|
3371
|
+
if (object.admin_only_write !== undefined && object.admin_only_write !== null) {
|
|
3372
|
+
message.adminOnlyWrite = object.admin_only_write;
|
|
3373
|
+
}
|
|
3374
|
+
return message;
|
|
3375
|
+
},
|
|
3376
|
+
toAmino(message) {
|
|
3377
|
+
const obj = {};
|
|
3378
|
+
obj.creator = message.creator === "" ? undefined : message.creator;
|
|
3379
|
+
obj.title = message.title === "" ? undefined : message.title;
|
|
3380
|
+
obj.description = message.description === "" ? undefined : message.description;
|
|
3381
|
+
obj.members_only_write = message.membersOnlyWrite === false ? undefined : message.membersOnlyWrite;
|
|
3382
|
+
obj.admin_only_write = message.adminOnlyWrite === false ? undefined : message.adminOnlyWrite;
|
|
3383
|
+
return obj;
|
|
3384
|
+
},
|
|
3385
|
+
fromAminoMsg(object) {
|
|
3386
|
+
return MsgCreateCategory.fromAmino(object.value);
|
|
3387
|
+
},
|
|
3388
|
+
toAminoMsg(message) {
|
|
3389
|
+
return {
|
|
3390
|
+
type: "sparkdream/x/commons/MsgCreateCategory",
|
|
3391
|
+
value: MsgCreateCategory.toAmino(message)
|
|
3392
|
+
};
|
|
3393
|
+
},
|
|
3394
|
+
fromProtoMsg(message) {
|
|
3395
|
+
return MsgCreateCategory.decode(message.value);
|
|
3396
|
+
},
|
|
3397
|
+
toProto(message) {
|
|
3398
|
+
return MsgCreateCategory.encode(message).finish();
|
|
3399
|
+
},
|
|
3400
|
+
toProtoMsg(message) {
|
|
3401
|
+
return {
|
|
3402
|
+
typeUrl: "/sparkdream.commons.v1.MsgCreateCategory",
|
|
3403
|
+
value: MsgCreateCategory.encode(message).finish()
|
|
3404
|
+
};
|
|
3405
|
+
}
|
|
3406
|
+
};
|
|
3407
|
+
function createBaseMsgCreateCategoryResponse() {
|
|
3408
|
+
return {
|
|
3409
|
+
categoryId: BigInt(0)
|
|
3410
|
+
};
|
|
3411
|
+
}
|
|
3412
|
+
/**
|
|
3413
|
+
* MsgCreateCategoryResponse defines the MsgCreateCategoryResponse message.
|
|
3414
|
+
* @name MsgCreateCategoryResponse
|
|
3415
|
+
* @package sparkdream.commons.v1
|
|
3416
|
+
* @see proto type: sparkdream.commons.v1.MsgCreateCategoryResponse
|
|
3417
|
+
*/
|
|
3418
|
+
export const MsgCreateCategoryResponse = {
|
|
3419
|
+
typeUrl: "/sparkdream.commons.v1.MsgCreateCategoryResponse",
|
|
3420
|
+
encode(message, writer = BinaryWriter.create()) {
|
|
3421
|
+
if (message.categoryId !== BigInt(0)) {
|
|
3422
|
+
writer.uint32(8).uint64(message.categoryId);
|
|
3423
|
+
}
|
|
3424
|
+
return writer;
|
|
3425
|
+
},
|
|
3426
|
+
decode(input, length) {
|
|
3427
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
3428
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
3429
|
+
const message = createBaseMsgCreateCategoryResponse();
|
|
3430
|
+
while (reader.pos < end) {
|
|
3431
|
+
const tag = reader.uint32();
|
|
3432
|
+
switch (tag >>> 3) {
|
|
3433
|
+
case 1:
|
|
3434
|
+
message.categoryId = reader.uint64();
|
|
3435
|
+
break;
|
|
3436
|
+
default:
|
|
3437
|
+
reader.skipType(tag & 7);
|
|
3438
|
+
break;
|
|
3439
|
+
}
|
|
3440
|
+
}
|
|
3441
|
+
return message;
|
|
3442
|
+
},
|
|
3443
|
+
fromPartial(object) {
|
|
3444
|
+
const message = createBaseMsgCreateCategoryResponse();
|
|
3445
|
+
message.categoryId = object.categoryId !== undefined && object.categoryId !== null ? BigInt(object.categoryId.toString()) : BigInt(0);
|
|
3446
|
+
return message;
|
|
3447
|
+
},
|
|
3448
|
+
fromAmino(object) {
|
|
3449
|
+
const message = createBaseMsgCreateCategoryResponse();
|
|
3450
|
+
if (object.category_id !== undefined && object.category_id !== null) {
|
|
3451
|
+
message.categoryId = BigInt(object.category_id);
|
|
3452
|
+
}
|
|
3453
|
+
return message;
|
|
3454
|
+
},
|
|
3455
|
+
toAmino(message) {
|
|
3456
|
+
const obj = {};
|
|
3457
|
+
obj.category_id = message.categoryId !== BigInt(0) ? message.categoryId?.toString() : undefined;
|
|
3458
|
+
return obj;
|
|
3459
|
+
},
|
|
3460
|
+
fromAminoMsg(object) {
|
|
3461
|
+
return MsgCreateCategoryResponse.fromAmino(object.value);
|
|
3462
|
+
},
|
|
3463
|
+
fromProtoMsg(message) {
|
|
3464
|
+
return MsgCreateCategoryResponse.decode(message.value);
|
|
3465
|
+
},
|
|
3466
|
+
toProto(message) {
|
|
3467
|
+
return MsgCreateCategoryResponse.encode(message).finish();
|
|
3468
|
+
},
|
|
3469
|
+
toProtoMsg(message) {
|
|
3470
|
+
return {
|
|
3471
|
+
typeUrl: "/sparkdream.commons.v1.MsgCreateCategoryResponse",
|
|
3472
|
+
value: MsgCreateCategoryResponse.encode(message).finish()
|
|
3473
|
+
};
|
|
3474
|
+
}
|
|
3475
|
+
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { MsgUpdateParams, MsgSpendFromCommons, MsgEmergencyCancelGovProposal, MsgCreatePolicyPermissions, MsgUpdatePolicyPermissions, MsgDeletePolicyPermissions, MsgRegisterGroup, MsgRenewGroup, MsgUpdateGroupMembers, MsgUpdateGroupConfig, MsgForceUpgrade, MsgDeleteGroup, MsgVetoGroupProposals, MsgSubmitProposal, MsgVoteProposal, MsgExecuteProposal, MsgSubmitAnonymousProposal, MsgAnonymousVoteProposal } from "./tx";
|
|
2
|
-
export const registry = [["/sparkdream.commons.v1.MsgUpdateParams", MsgUpdateParams], ["/sparkdream.commons.v1.MsgSpendFromCommons", MsgSpendFromCommons], ["/sparkdream.commons.v1.MsgEmergencyCancelGovProposal", MsgEmergencyCancelGovProposal], ["/sparkdream.commons.v1.MsgCreatePolicyPermissions", MsgCreatePolicyPermissions], ["/sparkdream.commons.v1.MsgUpdatePolicyPermissions", MsgUpdatePolicyPermissions], ["/sparkdream.commons.v1.MsgDeletePolicyPermissions", MsgDeletePolicyPermissions], ["/sparkdream.commons.v1.MsgRegisterGroup", MsgRegisterGroup], ["/sparkdream.commons.v1.MsgRenewGroup", MsgRenewGroup], ["/sparkdream.commons.v1.MsgUpdateGroupMembers", MsgUpdateGroupMembers], ["/sparkdream.commons.v1.MsgUpdateGroupConfig", MsgUpdateGroupConfig], ["/sparkdream.commons.v1.MsgForceUpgrade", MsgForceUpgrade], ["/sparkdream.commons.v1.MsgDeleteGroup", MsgDeleteGroup], ["/sparkdream.commons.v1.MsgVetoGroupProposals", MsgVetoGroupProposals], ["/sparkdream.commons.v1.MsgSubmitProposal", MsgSubmitProposal], ["/sparkdream.commons.v1.MsgVoteProposal", MsgVoteProposal], ["/sparkdream.commons.v1.MsgExecuteProposal", MsgExecuteProposal], ["/sparkdream.commons.v1.MsgSubmitAnonymousProposal", MsgSubmitAnonymousProposal], ["/sparkdream.commons.v1.MsgAnonymousVoteProposal", MsgAnonymousVoteProposal]];
|
|
1
|
+
import { MsgUpdateParams, MsgSpendFromCommons, MsgEmergencyCancelGovProposal, MsgCreatePolicyPermissions, MsgUpdatePolicyPermissions, MsgDeletePolicyPermissions, MsgRegisterGroup, MsgRenewGroup, MsgUpdateGroupMembers, MsgUpdateGroupConfig, MsgForceUpgrade, MsgDeleteGroup, MsgVetoGroupProposals, MsgSubmitProposal, MsgVoteProposal, MsgExecuteProposal, MsgSubmitAnonymousProposal, MsgAnonymousVoteProposal, MsgCreateCategory } from "./tx";
|
|
2
|
+
export const registry = [["/sparkdream.commons.v1.MsgUpdateParams", MsgUpdateParams], ["/sparkdream.commons.v1.MsgSpendFromCommons", MsgSpendFromCommons], ["/sparkdream.commons.v1.MsgEmergencyCancelGovProposal", MsgEmergencyCancelGovProposal], ["/sparkdream.commons.v1.MsgCreatePolicyPermissions", MsgCreatePolicyPermissions], ["/sparkdream.commons.v1.MsgUpdatePolicyPermissions", MsgUpdatePolicyPermissions], ["/sparkdream.commons.v1.MsgDeletePolicyPermissions", MsgDeletePolicyPermissions], ["/sparkdream.commons.v1.MsgRegisterGroup", MsgRegisterGroup], ["/sparkdream.commons.v1.MsgRenewGroup", MsgRenewGroup], ["/sparkdream.commons.v1.MsgUpdateGroupMembers", MsgUpdateGroupMembers], ["/sparkdream.commons.v1.MsgUpdateGroupConfig", MsgUpdateGroupConfig], ["/sparkdream.commons.v1.MsgForceUpgrade", MsgForceUpgrade], ["/sparkdream.commons.v1.MsgDeleteGroup", MsgDeleteGroup], ["/sparkdream.commons.v1.MsgVetoGroupProposals", MsgVetoGroupProposals], ["/sparkdream.commons.v1.MsgSubmitProposal", MsgSubmitProposal], ["/sparkdream.commons.v1.MsgVoteProposal", MsgVoteProposal], ["/sparkdream.commons.v1.MsgExecuteProposal", MsgExecuteProposal], ["/sparkdream.commons.v1.MsgSubmitAnonymousProposal", MsgSubmitAnonymousProposal], ["/sparkdream.commons.v1.MsgAnonymousVoteProposal", MsgAnonymousVoteProposal], ["/sparkdream.commons.v1.MsgCreateCategory", MsgCreateCategory]];
|
|
3
3
|
export const load = (protoRegistry) => {
|
|
4
4
|
registry.forEach(([typeUrl, mod]) => {
|
|
5
5
|
protoRegistry.register(typeUrl, mod);
|
|
@@ -114,6 +114,12 @@ export const MessageComposer = {
|
|
|
114
114
|
typeUrl: "/sparkdream.commons.v1.MsgAnonymousVoteProposal",
|
|
115
115
|
value: MsgAnonymousVoteProposal.encode(value).finish()
|
|
116
116
|
};
|
|
117
|
+
},
|
|
118
|
+
createCategory(value) {
|
|
119
|
+
return {
|
|
120
|
+
typeUrl: "/sparkdream.commons.v1.MsgCreateCategory",
|
|
121
|
+
value: MsgCreateCategory.encode(value).finish()
|
|
122
|
+
};
|
|
117
123
|
}
|
|
118
124
|
},
|
|
119
125
|
withTypeUrl: {
|
|
@@ -224,6 +230,12 @@ export const MessageComposer = {
|
|
|
224
230
|
typeUrl: "/sparkdream.commons.v1.MsgAnonymousVoteProposal",
|
|
225
231
|
value
|
|
226
232
|
};
|
|
233
|
+
},
|
|
234
|
+
createCategory(value) {
|
|
235
|
+
return {
|
|
236
|
+
typeUrl: "/sparkdream.commons.v1.MsgCreateCategory",
|
|
237
|
+
value
|
|
238
|
+
};
|
|
227
239
|
}
|
|
228
240
|
},
|
|
229
241
|
fromPartial: {
|
|
@@ -334,6 +346,12 @@ export const MessageComposer = {
|
|
|
334
346
|
typeUrl: "/sparkdream.commons.v1.MsgAnonymousVoteProposal",
|
|
335
347
|
value: MsgAnonymousVoteProposal.fromPartial(value)
|
|
336
348
|
};
|
|
349
|
+
},
|
|
350
|
+
createCategory(value) {
|
|
351
|
+
return {
|
|
352
|
+
typeUrl: "/sparkdream.commons.v1.MsgCreateCategory",
|
|
353
|
+
value: MsgCreateCategory.fromPartial(value)
|
|
354
|
+
};
|
|
337
355
|
}
|
|
338
356
|
}
|
|
339
357
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { BinaryReader } from "../../../binary";
|
|
2
|
-
import { MsgUpdateParams, MsgUpdateParamsResponse, MsgSpendFromCommons, MsgSpendFromCommonsResponse, MsgEmergencyCancelGovProposal, MsgEmergencyCancelGovProposalResponse, MsgCreatePolicyPermissions, MsgCreatePolicyPermissionsResponse, MsgUpdatePolicyPermissions, MsgUpdatePolicyPermissionsResponse, MsgDeletePolicyPermissions, MsgDeletePolicyPermissionsResponse, MsgRegisterGroup, MsgRegisterGroupResponse, MsgRenewGroup, MsgRenewGroupResponse, MsgUpdateGroupMembers, MsgUpdateGroupMembersResponse, MsgUpdateGroupConfig, MsgUpdateGroupConfigResponse, MsgForceUpgrade, MsgForceUpgradeResponse, MsgDeleteGroup, MsgDeleteGroupResponse, MsgVetoGroupProposals, MsgVetoGroupProposalsResponse, MsgSubmitProposal, MsgSubmitProposalResponse, MsgVoteProposal, MsgVoteProposalResponse, MsgExecuteProposal, MsgExecuteProposalResponse, MsgSubmitAnonymousProposal, MsgSubmitAnonymousProposalResponse, MsgAnonymousVoteProposal, MsgAnonymousVoteProposalResponse } from "./tx";
|
|
2
|
+
import { MsgUpdateParams, MsgUpdateParamsResponse, MsgSpendFromCommons, MsgSpendFromCommonsResponse, MsgEmergencyCancelGovProposal, MsgEmergencyCancelGovProposalResponse, MsgCreatePolicyPermissions, MsgCreatePolicyPermissionsResponse, MsgUpdatePolicyPermissions, MsgUpdatePolicyPermissionsResponse, MsgDeletePolicyPermissions, MsgDeletePolicyPermissionsResponse, MsgRegisterGroup, MsgRegisterGroupResponse, MsgRenewGroup, MsgRenewGroupResponse, MsgUpdateGroupMembers, MsgUpdateGroupMembersResponse, MsgUpdateGroupConfig, MsgUpdateGroupConfigResponse, MsgForceUpgrade, MsgForceUpgradeResponse, MsgDeleteGroup, MsgDeleteGroupResponse, MsgVetoGroupProposals, MsgVetoGroupProposalsResponse, MsgSubmitProposal, MsgSubmitProposalResponse, MsgVoteProposal, MsgVoteProposalResponse, MsgExecuteProposal, MsgExecuteProposalResponse, MsgSubmitAnonymousProposal, MsgSubmitAnonymousProposalResponse, MsgAnonymousVoteProposal, MsgAnonymousVoteProposalResponse, MsgCreateCategory, MsgCreateCategoryResponse } from "./tx";
|
|
3
3
|
export class MsgClientImpl {
|
|
4
4
|
rpc;
|
|
5
5
|
constructor(rpc) {
|
|
@@ -116,6 +116,13 @@ export class MsgClientImpl {
|
|
|
116
116
|
const promise = this.rpc.request("sparkdream.commons.v1.Msg", "AnonymousVoteProposal", data);
|
|
117
117
|
return promise.then(data => MsgAnonymousVoteProposalResponse.decode(new BinaryReader(data)));
|
|
118
118
|
};
|
|
119
|
+
/* CreateCategory registers a new shared content category. Restricted to
|
|
120
|
+
governance or the Commons Council Operations Committee. */
|
|
121
|
+
createCategory = async (request) => {
|
|
122
|
+
const data = MsgCreateCategory.encode(request).finish();
|
|
123
|
+
const promise = this.rpc.request("sparkdream.commons.v1.Msg", "CreateCategory", data);
|
|
124
|
+
return promise.then(data => MsgCreateCategoryResponse.decode(new BinaryReader(data)));
|
|
125
|
+
};
|
|
119
126
|
}
|
|
120
127
|
export const createClientImpl = (rpc) => {
|
|
121
128
|
return new MsgClientImpl(rpc);
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
//@ts-nocheck
|
|
2
|
+
import { BinaryReader, BinaryWriter } from "../../../../binary";
|
|
3
|
+
function createBaseModule() {
|
|
4
|
+
return {
|
|
5
|
+
authority: ""
|
|
6
|
+
};
|
|
7
|
+
}
|
|
8
|
+
/**
|
|
9
|
+
* Module is the config object for the module.
|
|
10
|
+
* @name Module
|
|
11
|
+
* @package sparkdream.federation.module.v1
|
|
12
|
+
* @see proto type: sparkdream.federation.module.v1.Module
|
|
13
|
+
*/
|
|
14
|
+
export const Module = {
|
|
15
|
+
typeUrl: "/sparkdream.federation.module.v1.Module",
|
|
16
|
+
encode(message, writer = BinaryWriter.create()) {
|
|
17
|
+
if (message.authority !== "") {
|
|
18
|
+
writer.uint32(10).string(message.authority);
|
|
19
|
+
}
|
|
20
|
+
return writer;
|
|
21
|
+
},
|
|
22
|
+
decode(input, length) {
|
|
23
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
24
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
25
|
+
const message = createBaseModule();
|
|
26
|
+
while (reader.pos < end) {
|
|
27
|
+
const tag = reader.uint32();
|
|
28
|
+
switch (tag >>> 3) {
|
|
29
|
+
case 1:
|
|
30
|
+
message.authority = reader.string();
|
|
31
|
+
break;
|
|
32
|
+
default:
|
|
33
|
+
reader.skipType(tag & 7);
|
|
34
|
+
break;
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
return message;
|
|
38
|
+
},
|
|
39
|
+
fromPartial(object) {
|
|
40
|
+
const message = createBaseModule();
|
|
41
|
+
message.authority = object.authority ?? "";
|
|
42
|
+
return message;
|
|
43
|
+
},
|
|
44
|
+
fromAmino(object) {
|
|
45
|
+
const message = createBaseModule();
|
|
46
|
+
if (object.authority !== undefined && object.authority !== null) {
|
|
47
|
+
message.authority = object.authority;
|
|
48
|
+
}
|
|
49
|
+
return message;
|
|
50
|
+
},
|
|
51
|
+
toAmino(message) {
|
|
52
|
+
const obj = {};
|
|
53
|
+
obj.authority = message.authority === "" ? undefined : message.authority;
|
|
54
|
+
return obj;
|
|
55
|
+
},
|
|
56
|
+
fromAminoMsg(object) {
|
|
57
|
+
return Module.fromAmino(object.value);
|
|
58
|
+
},
|
|
59
|
+
fromProtoMsg(message) {
|
|
60
|
+
return Module.decode(message.value);
|
|
61
|
+
},
|
|
62
|
+
toProto(message) {
|
|
63
|
+
return Module.encode(message).finish();
|
|
64
|
+
},
|
|
65
|
+
toProtoMsg(message) {
|
|
66
|
+
return {
|
|
67
|
+
typeUrl: "/sparkdream.federation.module.v1.Module",
|
|
68
|
+
value: Module.encode(message).finish()
|
|
69
|
+
};
|
|
70
|
+
}
|
|
71
|
+
};
|
|
@@ -0,0 +1,244 @@
|
|
|
1
|
+
//@ts-nocheck
|
|
2
|
+
import { Params } from "./params";
|
|
3
|
+
import { Peer, PeerPolicy, BridgeOperator, FederatedContent, IdentityLink, ReputationAttestation, OutboundAttestation, FederationVerifier, VerificationRecord } from "./types";
|
|
4
|
+
import { BinaryReader, BinaryWriter } from "../../../binary";
|
|
5
|
+
function createBaseGenesisState() {
|
|
6
|
+
return {
|
|
7
|
+
params: Params.fromPartial({}),
|
|
8
|
+
portId: "",
|
|
9
|
+
peers: [],
|
|
10
|
+
peerPolicies: [],
|
|
11
|
+
bridgeOperators: [],
|
|
12
|
+
federatedContent: [],
|
|
13
|
+
identityLinks: [],
|
|
14
|
+
reputationAttestations: [],
|
|
15
|
+
outboundAttestations: [],
|
|
16
|
+
verifiers: [],
|
|
17
|
+
verificationRecords: [],
|
|
18
|
+
nextContentId: BigInt(0),
|
|
19
|
+
nextOutboundAttestationId: BigInt(0)
|
|
20
|
+
};
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
* GenesisState defines the federation module's genesis state.
|
|
24
|
+
* @name GenesisState
|
|
25
|
+
* @package sparkdream.federation.v1
|
|
26
|
+
* @see proto type: sparkdream.federation.v1.GenesisState
|
|
27
|
+
*/
|
|
28
|
+
export const GenesisState = {
|
|
29
|
+
typeUrl: "/sparkdream.federation.v1.GenesisState",
|
|
30
|
+
encode(message, writer = BinaryWriter.create()) {
|
|
31
|
+
if (message.params !== undefined) {
|
|
32
|
+
Params.encode(message.params, writer.uint32(10).fork()).ldelim();
|
|
33
|
+
}
|
|
34
|
+
if (message.portId !== "") {
|
|
35
|
+
writer.uint32(18).string(message.portId);
|
|
36
|
+
}
|
|
37
|
+
for (const v of message.peers) {
|
|
38
|
+
Peer.encode(v, writer.uint32(26).fork()).ldelim();
|
|
39
|
+
}
|
|
40
|
+
for (const v of message.peerPolicies) {
|
|
41
|
+
PeerPolicy.encode(v, writer.uint32(34).fork()).ldelim();
|
|
42
|
+
}
|
|
43
|
+
for (const v of message.bridgeOperators) {
|
|
44
|
+
BridgeOperator.encode(v, writer.uint32(42).fork()).ldelim();
|
|
45
|
+
}
|
|
46
|
+
for (const v of message.federatedContent) {
|
|
47
|
+
FederatedContent.encode(v, writer.uint32(50).fork()).ldelim();
|
|
48
|
+
}
|
|
49
|
+
for (const v of message.identityLinks) {
|
|
50
|
+
IdentityLink.encode(v, writer.uint32(58).fork()).ldelim();
|
|
51
|
+
}
|
|
52
|
+
for (const v of message.reputationAttestations) {
|
|
53
|
+
ReputationAttestation.encode(v, writer.uint32(66).fork()).ldelim();
|
|
54
|
+
}
|
|
55
|
+
for (const v of message.outboundAttestations) {
|
|
56
|
+
OutboundAttestation.encode(v, writer.uint32(74).fork()).ldelim();
|
|
57
|
+
}
|
|
58
|
+
for (const v of message.verifiers) {
|
|
59
|
+
FederationVerifier.encode(v, writer.uint32(82).fork()).ldelim();
|
|
60
|
+
}
|
|
61
|
+
for (const v of message.verificationRecords) {
|
|
62
|
+
VerificationRecord.encode(v, writer.uint32(90).fork()).ldelim();
|
|
63
|
+
}
|
|
64
|
+
if (message.nextContentId !== BigInt(0)) {
|
|
65
|
+
writer.uint32(96).uint64(message.nextContentId);
|
|
66
|
+
}
|
|
67
|
+
if (message.nextOutboundAttestationId !== BigInt(0)) {
|
|
68
|
+
writer.uint32(104).uint64(message.nextOutboundAttestationId);
|
|
69
|
+
}
|
|
70
|
+
return writer;
|
|
71
|
+
},
|
|
72
|
+
decode(input, length) {
|
|
73
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
74
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
75
|
+
const message = createBaseGenesisState();
|
|
76
|
+
while (reader.pos < end) {
|
|
77
|
+
const tag = reader.uint32();
|
|
78
|
+
switch (tag >>> 3) {
|
|
79
|
+
case 1:
|
|
80
|
+
message.params = Params.decode(reader, reader.uint32());
|
|
81
|
+
break;
|
|
82
|
+
case 2:
|
|
83
|
+
message.portId = reader.string();
|
|
84
|
+
break;
|
|
85
|
+
case 3:
|
|
86
|
+
message.peers.push(Peer.decode(reader, reader.uint32()));
|
|
87
|
+
break;
|
|
88
|
+
case 4:
|
|
89
|
+
message.peerPolicies.push(PeerPolicy.decode(reader, reader.uint32()));
|
|
90
|
+
break;
|
|
91
|
+
case 5:
|
|
92
|
+
message.bridgeOperators.push(BridgeOperator.decode(reader, reader.uint32()));
|
|
93
|
+
break;
|
|
94
|
+
case 6:
|
|
95
|
+
message.federatedContent.push(FederatedContent.decode(reader, reader.uint32()));
|
|
96
|
+
break;
|
|
97
|
+
case 7:
|
|
98
|
+
message.identityLinks.push(IdentityLink.decode(reader, reader.uint32()));
|
|
99
|
+
break;
|
|
100
|
+
case 8:
|
|
101
|
+
message.reputationAttestations.push(ReputationAttestation.decode(reader, reader.uint32()));
|
|
102
|
+
break;
|
|
103
|
+
case 9:
|
|
104
|
+
message.outboundAttestations.push(OutboundAttestation.decode(reader, reader.uint32()));
|
|
105
|
+
break;
|
|
106
|
+
case 10:
|
|
107
|
+
message.verifiers.push(FederationVerifier.decode(reader, reader.uint32()));
|
|
108
|
+
break;
|
|
109
|
+
case 11:
|
|
110
|
+
message.verificationRecords.push(VerificationRecord.decode(reader, reader.uint32()));
|
|
111
|
+
break;
|
|
112
|
+
case 12:
|
|
113
|
+
message.nextContentId = reader.uint64();
|
|
114
|
+
break;
|
|
115
|
+
case 13:
|
|
116
|
+
message.nextOutboundAttestationId = reader.uint64();
|
|
117
|
+
break;
|
|
118
|
+
default:
|
|
119
|
+
reader.skipType(tag & 7);
|
|
120
|
+
break;
|
|
121
|
+
}
|
|
122
|
+
}
|
|
123
|
+
return message;
|
|
124
|
+
},
|
|
125
|
+
fromPartial(object) {
|
|
126
|
+
const message = createBaseGenesisState();
|
|
127
|
+
message.params = object.params !== undefined && object.params !== null ? Params.fromPartial(object.params) : undefined;
|
|
128
|
+
message.portId = object.portId ?? "";
|
|
129
|
+
message.peers = object.peers?.map(e => Peer.fromPartial(e)) || [];
|
|
130
|
+
message.peerPolicies = object.peerPolicies?.map(e => PeerPolicy.fromPartial(e)) || [];
|
|
131
|
+
message.bridgeOperators = object.bridgeOperators?.map(e => BridgeOperator.fromPartial(e)) || [];
|
|
132
|
+
message.federatedContent = object.federatedContent?.map(e => FederatedContent.fromPartial(e)) || [];
|
|
133
|
+
message.identityLinks = object.identityLinks?.map(e => IdentityLink.fromPartial(e)) || [];
|
|
134
|
+
message.reputationAttestations = object.reputationAttestations?.map(e => ReputationAttestation.fromPartial(e)) || [];
|
|
135
|
+
message.outboundAttestations = object.outboundAttestations?.map(e => OutboundAttestation.fromPartial(e)) || [];
|
|
136
|
+
message.verifiers = object.verifiers?.map(e => FederationVerifier.fromPartial(e)) || [];
|
|
137
|
+
message.verificationRecords = object.verificationRecords?.map(e => VerificationRecord.fromPartial(e)) || [];
|
|
138
|
+
message.nextContentId = object.nextContentId !== undefined && object.nextContentId !== null ? BigInt(object.nextContentId.toString()) : BigInt(0);
|
|
139
|
+
message.nextOutboundAttestationId = object.nextOutboundAttestationId !== undefined && object.nextOutboundAttestationId !== null ? BigInt(object.nextOutboundAttestationId.toString()) : BigInt(0);
|
|
140
|
+
return message;
|
|
141
|
+
},
|
|
142
|
+
fromAmino(object) {
|
|
143
|
+
const message = createBaseGenesisState();
|
|
144
|
+
if (object.params !== undefined && object.params !== null) {
|
|
145
|
+
message.params = Params.fromAmino(object.params);
|
|
146
|
+
}
|
|
147
|
+
if (object.port_id !== undefined && object.port_id !== null) {
|
|
148
|
+
message.portId = object.port_id;
|
|
149
|
+
}
|
|
150
|
+
message.peers = object.peers?.map(e => Peer.fromAmino(e)) || [];
|
|
151
|
+
message.peerPolicies = object.peer_policies?.map(e => PeerPolicy.fromAmino(e)) || [];
|
|
152
|
+
message.bridgeOperators = object.bridge_operators?.map(e => BridgeOperator.fromAmino(e)) || [];
|
|
153
|
+
message.federatedContent = object.federated_content?.map(e => FederatedContent.fromAmino(e)) || [];
|
|
154
|
+
message.identityLinks = object.identity_links?.map(e => IdentityLink.fromAmino(e)) || [];
|
|
155
|
+
message.reputationAttestations = object.reputation_attestations?.map(e => ReputationAttestation.fromAmino(e)) || [];
|
|
156
|
+
message.outboundAttestations = object.outbound_attestations?.map(e => OutboundAttestation.fromAmino(e)) || [];
|
|
157
|
+
message.verifiers = object.verifiers?.map(e => FederationVerifier.fromAmino(e)) || [];
|
|
158
|
+
message.verificationRecords = object.verification_records?.map(e => VerificationRecord.fromAmino(e)) || [];
|
|
159
|
+
if (object.next_content_id !== undefined && object.next_content_id !== null) {
|
|
160
|
+
message.nextContentId = BigInt(object.next_content_id);
|
|
161
|
+
}
|
|
162
|
+
if (object.next_outbound_attestation_id !== undefined && object.next_outbound_attestation_id !== null) {
|
|
163
|
+
message.nextOutboundAttestationId = BigInt(object.next_outbound_attestation_id);
|
|
164
|
+
}
|
|
165
|
+
return message;
|
|
166
|
+
},
|
|
167
|
+
toAmino(message) {
|
|
168
|
+
const obj = {};
|
|
169
|
+
obj.params = message.params ? Params.toAmino(message.params) : Params.toAmino(Params.fromPartial({}));
|
|
170
|
+
obj.port_id = message.portId === "" ? undefined : message.portId;
|
|
171
|
+
if (message.peers) {
|
|
172
|
+
obj.peers = message.peers.map(e => e ? Peer.toAmino(e) : undefined);
|
|
173
|
+
}
|
|
174
|
+
else {
|
|
175
|
+
obj.peers = message.peers;
|
|
176
|
+
}
|
|
177
|
+
if (message.peerPolicies) {
|
|
178
|
+
obj.peer_policies = message.peerPolicies.map(e => e ? PeerPolicy.toAmino(e) : undefined);
|
|
179
|
+
}
|
|
180
|
+
else {
|
|
181
|
+
obj.peer_policies = message.peerPolicies;
|
|
182
|
+
}
|
|
183
|
+
if (message.bridgeOperators) {
|
|
184
|
+
obj.bridge_operators = message.bridgeOperators.map(e => e ? BridgeOperator.toAmino(e) : undefined);
|
|
185
|
+
}
|
|
186
|
+
else {
|
|
187
|
+
obj.bridge_operators = message.bridgeOperators;
|
|
188
|
+
}
|
|
189
|
+
if (message.federatedContent) {
|
|
190
|
+
obj.federated_content = message.federatedContent.map(e => e ? FederatedContent.toAmino(e) : undefined);
|
|
191
|
+
}
|
|
192
|
+
else {
|
|
193
|
+
obj.federated_content = message.federatedContent;
|
|
194
|
+
}
|
|
195
|
+
if (message.identityLinks) {
|
|
196
|
+
obj.identity_links = message.identityLinks.map(e => e ? IdentityLink.toAmino(e) : undefined);
|
|
197
|
+
}
|
|
198
|
+
else {
|
|
199
|
+
obj.identity_links = message.identityLinks;
|
|
200
|
+
}
|
|
201
|
+
if (message.reputationAttestations) {
|
|
202
|
+
obj.reputation_attestations = message.reputationAttestations.map(e => e ? ReputationAttestation.toAmino(e) : undefined);
|
|
203
|
+
}
|
|
204
|
+
else {
|
|
205
|
+
obj.reputation_attestations = message.reputationAttestations;
|
|
206
|
+
}
|
|
207
|
+
if (message.outboundAttestations) {
|
|
208
|
+
obj.outbound_attestations = message.outboundAttestations.map(e => e ? OutboundAttestation.toAmino(e) : undefined);
|
|
209
|
+
}
|
|
210
|
+
else {
|
|
211
|
+
obj.outbound_attestations = message.outboundAttestations;
|
|
212
|
+
}
|
|
213
|
+
if (message.verifiers) {
|
|
214
|
+
obj.verifiers = message.verifiers.map(e => e ? FederationVerifier.toAmino(e) : undefined);
|
|
215
|
+
}
|
|
216
|
+
else {
|
|
217
|
+
obj.verifiers = message.verifiers;
|
|
218
|
+
}
|
|
219
|
+
if (message.verificationRecords) {
|
|
220
|
+
obj.verification_records = message.verificationRecords.map(e => e ? VerificationRecord.toAmino(e) : undefined);
|
|
221
|
+
}
|
|
222
|
+
else {
|
|
223
|
+
obj.verification_records = message.verificationRecords;
|
|
224
|
+
}
|
|
225
|
+
obj.next_content_id = message.nextContentId !== BigInt(0) ? message.nextContentId?.toString() : undefined;
|
|
226
|
+
obj.next_outbound_attestation_id = message.nextOutboundAttestationId !== BigInt(0) ? message.nextOutboundAttestationId?.toString() : undefined;
|
|
227
|
+
return obj;
|
|
228
|
+
},
|
|
229
|
+
fromAminoMsg(object) {
|
|
230
|
+
return GenesisState.fromAmino(object.value);
|
|
231
|
+
},
|
|
232
|
+
fromProtoMsg(message) {
|
|
233
|
+
return GenesisState.decode(message.value);
|
|
234
|
+
},
|
|
235
|
+
toProto(message) {
|
|
236
|
+
return GenesisState.encode(message).finish();
|
|
237
|
+
},
|
|
238
|
+
toProtoMsg(message) {
|
|
239
|
+
return {
|
|
240
|
+
typeUrl: "/sparkdream.federation.v1.GenesisState",
|
|
241
|
+
value: GenesisState.encode(message).finish()
|
|
242
|
+
};
|
|
243
|
+
}
|
|
244
|
+
};
|