@sparkdreamnft/sparkdreamjs 0.0.42 → 0.0.44
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/akash/bundle.d.ts +134 -134
- package/akash/bundle.js +150 -150
- package/cosmos/bundle.d.ts +160 -160
- package/cosmos/bundle.js +182 -182
- package/esm/akash/bundle.js +150 -150
- package/esm/cosmos/bundle.js +182 -182
- package/esm/ibc/bundle.js +116 -116
- package/esm/sparkdream/artifact/module/v1/module.js +71 -0
- package/esm/sparkdream/artifact/v1/genesis.js +279 -0
- package/esm/sparkdream/artifact/v1/params.js +645 -0
- package/esm/sparkdream/artifact/v1/query.js +3415 -0
- package/esm/sparkdream/artifact/v1/query.lcd.js +159 -0
- package/esm/sparkdream/artifact/v1/query.rpc.Query.js +188 -0
- package/esm/sparkdream/artifact/v1/tx.amino.js +159 -0
- package/esm/sparkdream/artifact/v1/tx.js +5751 -0
- package/esm/sparkdream/artifact/v1/tx.registry.js +573 -0
- package/esm/sparkdream/artifact/v1/tx.rpc.msg.js +199 -0
- package/esm/sparkdream/artifact/v1/types.js +2603 -0
- package/esm/sparkdream/blog/v1/params.js +37 -1
- package/esm/sparkdream/blog/v1/post.js +38 -1
- package/esm/sparkdream/blog/v1/query.js +351 -0
- package/esm/sparkdream/blog/v1/query.lcd.js +12 -0
- package/esm/sparkdream/blog/v1/query.rpc.Query.js +21 -1
- package/esm/sparkdream/blog/v1/types.js +38 -1
- package/esm/sparkdream/bundle.js +521 -483
- package/esm/sparkdream/client.js +4 -1
- package/esm/sparkdream/collect/v1/params.js +102 -126
- package/esm/sparkdream/collect/v1/types.js +207 -123
- package/esm/sparkdream/common/v1/media_flag.js +63 -0
- package/esm/sparkdream/common/v1/moderation_reason.js +1 -1
- package/esm/sparkdream/commons/v1/query.js +27 -3
- package/esm/sparkdream/federation/v1/packet.js +13 -1
- package/esm/sparkdream/federation/v1/query.js +163 -0
- package/esm/sparkdream/federation/v1/query.lcd.js +7 -0
- package/esm/sparkdream/federation/v1/query.rpc.Query.js +12 -1
- package/esm/sparkdream/federation/v1/tx.js +13 -1
- package/esm/sparkdream/federation/v1/types.js +134 -2
- package/esm/sparkdream/forum/v1/params.js +37 -1
- package/esm/sparkdream/forum/v1/post.js +38 -1
- package/esm/sparkdream/forum/v1/query.js +176 -0
- package/esm/sparkdream/forum/v1/query.lcd.js +7 -0
- package/esm/sparkdream/forum/v1/query.rpc.Query.js +12 -1
- package/esm/sparkdream/lcd.js +5 -0
- package/esm/sparkdream/rep/v1/accountability.js +22 -0
- package/esm/sparkdream/rep/v1/genesis.js +18 -2
- package/esm/sparkdream/rep/v1/initiative_bounty.js +200 -0
- package/esm/sparkdream/rep/v1/member.js +97 -35
- package/esm/sparkdream/rep/v1/params.js +186 -66
- package/esm/sparkdream/rep/v1/query.js +530 -0
- package/esm/sparkdream/rep/v1/query.lcd.js +23 -0
- package/esm/sparkdream/rep/v1/query.rpc.Query.js +26 -1
- package/esm/sparkdream/rep/v1/tx.js +354 -7
- package/esm/sparkdream/rep/v1/tx.registry.js +38 -2
- package/esm/sparkdream/rep/v1/tx.rpc.msg.js +13 -1
- package/esm/sparkdream/rpc.query.js +3 -0
- package/esm/sparkdream/rpc.tx.js +3 -0
- package/esm/sparkdream/service/v1/checkpoint.js +125 -0
- package/esm/sparkdream/service/v1/genesis.js +17 -1
- package/esm/sparkdream/service/v1/query.js +317 -0
- package/esm/sparkdream/service/v1/query.lcd.js +18 -0
- package/esm/sparkdream/service/v1/query.rpc.Query.js +21 -1
- package/esm/sparkdream/service/v1/service_type_config.js +37 -1
- package/esm/sparkdream/service/v1/tx.amino.js +6 -1
- package/esm/sparkdream/service/v1/tx.js +169 -0
- package/esm/sparkdream/service/v1/tx.registry.js +20 -2
- package/esm/sparkdream/service/v1/tx.rpc.msg.js +10 -1
- package/esm/sparkdream/shield/v1/params.js +13 -1
- package/esm/sparkdream/shield/v1/types.js +66 -1
- package/esm/sparkdream/sparkdream/v1/query.js +176 -0
- package/esm/sparkdream/sparkdream/v1/query.lcd.js +9 -0
- package/esm/sparkdream/sparkdream/v1/query.rpc.Query.js +14 -1
- package/esm/tendermint/bundle.js +20 -20
- package/ibc/bundle.d.ts +99 -99
- package/ibc/bundle.js +116 -116
- package/package.json +1 -1
- package/sparkdream/artifact/module/v1/module.d.ts +54 -0
- package/sparkdream/artifact/module/v1/module.js +74 -0
- package/sparkdream/artifact/v1/genesis.d.ts +88 -0
- package/sparkdream/artifact/v1/genesis.js +282 -0
- package/sparkdream/artifact/v1/params.d.ts +251 -0
- package/sparkdream/artifact/v1/params.js +648 -0
- package/sparkdream/artifact/v1/query.d.ts +1986 -0
- package/sparkdream/artifact/v1/query.js +3418 -0
- package/sparkdream/artifact/v1/query.lcd.d.ts +27 -0
- package/sparkdream/artifact/v1/query.lcd.js +163 -0
- package/sparkdream/artifact/v1/query.rpc.Query.d.ts +88 -0
- package/sparkdream/artifact/v1/query.rpc.Query.js +193 -0
- package/sparkdream/artifact/v1/tx.amino.d.ts +158 -0
- package/sparkdream/artifact/v1/tx.amino.js +162 -0
- package/sparkdream/artifact/v1/tx.d.ts +3268 -0
- package/sparkdream/artifact/v1/tx.js +5755 -0
- package/sparkdream/artifact/v1/tx.registry.d.ts +385 -0
- package/sparkdream/artifact/v1/tx.registry.js +577 -0
- package/sparkdream/artifact/v1/tx.rpc.msg.d.ts +109 -0
- package/sparkdream/artifact/v1/tx.rpc.msg.js +204 -0
- package/sparkdream/artifact/v1/types.d.ts +1157 -0
- package/sparkdream/artifact/v1/types.js +2620 -0
- package/sparkdream/blog/v1/params.d.ts +46 -0
- package/sparkdream/blog/v1/params.js +37 -1
- package/sparkdream/blog/v1/post.d.ts +24 -0
- package/sparkdream/blog/v1/post.js +38 -1
- package/sparkdream/blog/v1/query.d.ts +195 -0
- package/sparkdream/blog/v1/query.js +352 -1
- package/sparkdream/blog/v1/query.lcd.d.ts +3 -1
- package/sparkdream/blog/v1/query.lcd.js +12 -0
- package/sparkdream/blog/v1/query.rpc.Query.d.ts +13 -1
- package/sparkdream/blog/v1/query.rpc.Query.js +20 -0
- package/sparkdream/blog/v1/types.d.ts +24 -0
- package/sparkdream/blog/v1/types.js +38 -1
- package/sparkdream/bundle.d.ts +20540 -17854
- package/sparkdream/bundle.js +521 -483
- package/sparkdream/client.d.ts +160 -0
- package/sparkdream/client.js +4 -1
- package/sparkdream/collect/v1/params.d.ts +0 -4
- package/sparkdream/collect/v1/params.js +102 -126
- package/sparkdream/collect/v1/types.d.ts +80 -4
- package/sparkdream/collect/v1/types.js +207 -123
- package/sparkdream/common/v1/media_flag.d.ts +23 -0
- package/sparkdream/common/v1/media_flag.js +68 -0
- package/sparkdream/common/v1/moderation_reason.d.ts +1 -1
- package/sparkdream/common/v1/moderation_reason.js +1 -1
- package/sparkdream/commons/v1/query.d.ts +19 -1
- package/sparkdream/commons/v1/query.js +26 -2
- package/sparkdream/federation/v1/packet.d.ts +14 -0
- package/sparkdream/federation/v1/packet.js +13 -1
- package/sparkdream/federation/v1/query.d.ts +92 -0
- package/sparkdream/federation/v1/query.js +164 -1
- package/sparkdream/federation/v1/query.lcd.d.ts +2 -1
- package/sparkdream/federation/v1/query.lcd.js +7 -0
- package/sparkdream/federation/v1/query.rpc.Query.d.ts +9 -1
- package/sparkdream/federation/v1/query.rpc.Query.js +11 -0
- package/sparkdream/federation/v1/tx.d.ts +18 -0
- package/sparkdream/federation/v1/tx.js +13 -1
- package/sparkdream/federation/v1/types.d.ts +128 -0
- package/sparkdream/federation/v1/types.js +135 -3
- package/sparkdream/forum/v1/params.d.ts +46 -0
- package/sparkdream/forum/v1/params.js +37 -1
- package/sparkdream/forum/v1/post.d.ts +30 -0
- package/sparkdream/forum/v1/post.js +38 -1
- package/sparkdream/forum/v1/query.d.ts +98 -0
- package/sparkdream/forum/v1/query.js +177 -1
- package/sparkdream/forum/v1/query.lcd.d.ts +2 -1
- package/sparkdream/forum/v1/query.lcd.js +7 -0
- package/sparkdream/forum/v1/query.rpc.Query.d.ts +9 -1
- package/sparkdream/forum/v1/query.rpc.Query.js +11 -0
- package/sparkdream/lcd.d.ts +3 -0
- package/sparkdream/lcd.js +5 -0
- package/sparkdream/rep/v1/accountability.d.ts +12 -0
- package/sparkdream/rep/v1/accountability.js +22 -0
- package/sparkdream/rep/v1/genesis.d.ts +18 -7
- package/sparkdream/rep/v1/genesis.js +18 -2
- package/sparkdream/rep/v1/initiative_bounty.d.ts +143 -0
- package/sparkdream/rep/v1/initiative_bounty.js +203 -0
- package/sparkdream/rep/v1/member.d.ts +82 -28
- package/sparkdream/rep/v1/member.js +97 -35
- package/sparkdream/rep/v1/params.d.ts +128 -28
- package/sparkdream/rep/v1/params.js +186 -66
- package/sparkdream/rep/v1/query.d.ts +315 -10
- package/sparkdream/rep/v1/query.js +531 -1
- package/sparkdream/rep/v1/query.lcd.d.ts +3 -1
- package/sparkdream/rep/v1/query.lcd.js +23 -0
- package/sparkdream/rep/v1/query.rpc.Query.d.ts +18 -1
- package/sparkdream/rep/v1/query.rpc.Query.js +25 -0
- package/sparkdream/rep/v1/tx.d.ts +245 -1
- package/sparkdream/rep/v1/tx.js +355 -8
- package/sparkdream/rep/v1/tx.registry.d.ts +25 -1
- package/sparkdream/rep/v1/tx.registry.js +37 -1
- package/sparkdream/rep/v1/tx.rpc.msg.d.ts +7 -1
- package/sparkdream/rep/v1/tx.rpc.msg.js +12 -0
- package/sparkdream/rpc.query.d.ts +32 -0
- package/sparkdream/rpc.query.js +3 -0
- package/sparkdream/rpc.tx.d.ts +3 -0
- package/sparkdream/rpc.tx.js +3 -0
- package/sparkdream/service/v1/checkpoint.d.ts +93 -0
- package/sparkdream/service/v1/checkpoint.js +128 -0
- package/sparkdream/service/v1/genesis.d.ts +15 -0
- package/sparkdream/service/v1/genesis.js +17 -1
- package/sparkdream/service/v1/query.d.ts +186 -0
- package/sparkdream/service/v1/query.js +318 -1
- package/sparkdream/service/v1/query.lcd.d.ts +3 -1
- package/sparkdream/service/v1/query.lcd.js +18 -0
- package/sparkdream/service/v1/query.rpc.Query.d.ts +13 -1
- package/sparkdream/service/v1/query.rpc.Query.js +20 -0
- package/sparkdream/service/v1/service_type_config.d.ts +48 -0
- package/sparkdream/service/v1/service_type_config.js +37 -1
- package/sparkdream/service/v1/tx.amino.d.ts +6 -1
- package/sparkdream/service/v1/tx.amino.js +5 -0
- package/sparkdream/service/v1/tx.d.ts +97 -0
- package/sparkdream/service/v1/tx.js +170 -1
- package/sparkdream/service/v1/tx.registry.d.ts +13 -1
- package/sparkdream/service/v1/tx.registry.js +19 -1
- package/sparkdream/service/v1/tx.rpc.msg.d.ts +9 -1
- package/sparkdream/service/v1/tx.rpc.msg.js +9 -0
- package/sparkdream/shield/v1/params.d.ts +16 -0
- package/sparkdream/shield/v1/params.js +13 -1
- package/sparkdream/shield/v1/tx.d.ts +2 -2
- package/sparkdream/shield/v1/types.d.ts +45 -2
- package/sparkdream/shield/v1/types.js +69 -2
- package/sparkdream/sparkdream/v1/query.d.ts +132 -0
- package/sparkdream/sparkdream/v1/query.js +177 -1
- package/sparkdream/sparkdream/v1/query.lcd.d.ts +2 -1
- package/sparkdream/sparkdream/v1/query.lcd.js +9 -0
- package/sparkdream/sparkdream/v1/query.rpc.Query.d.ts +11 -1
- package/sparkdream/sparkdream/v1/query.rpc.Query.js +13 -0
- package/tendermint/bundle.d.ts +844 -844
- package/tendermint/bundle.js +20 -20
|
@@ -376,7 +376,13 @@ function createBaseCollection() {
|
|
|
376
376
|
convictionSustained: false,
|
|
377
377
|
initiativeId: BigInt(0),
|
|
378
378
|
pinned: false,
|
|
379
|
-
nonMemberCollaboratorCount: 0
|
|
379
|
+
nonMemberCollaboratorCount: 0,
|
|
380
|
+
anonOwnerDomain: 0,
|
|
381
|
+
anonOwnerScope: BigInt(0),
|
|
382
|
+
anonOwnerTag: new Uint8Array(),
|
|
383
|
+
anonOwnerSequence: BigInt(0),
|
|
384
|
+
mediaFlags: 0,
|
|
385
|
+
mediaRulesVersion: 0
|
|
380
386
|
};
|
|
381
387
|
}
|
|
382
388
|
/**
|
|
@@ -478,6 +484,24 @@ export const Collection = {
|
|
|
478
484
|
if (message.nonMemberCollaboratorCount !== 0) {
|
|
479
485
|
writer.uint32(240).uint32(message.nonMemberCollaboratorCount);
|
|
480
486
|
}
|
|
487
|
+
if (message.anonOwnerDomain !== 0) {
|
|
488
|
+
writer.uint32(248).uint32(message.anonOwnerDomain);
|
|
489
|
+
}
|
|
490
|
+
if (message.anonOwnerScope !== BigInt(0)) {
|
|
491
|
+
writer.uint32(256).uint64(message.anonOwnerScope);
|
|
492
|
+
}
|
|
493
|
+
if (message.anonOwnerTag.length !== 0) {
|
|
494
|
+
writer.uint32(266).bytes(message.anonOwnerTag);
|
|
495
|
+
}
|
|
496
|
+
if (message.anonOwnerSequence !== BigInt(0)) {
|
|
497
|
+
writer.uint32(272).uint64(message.anonOwnerSequence);
|
|
498
|
+
}
|
|
499
|
+
if (message.mediaFlags !== 0) {
|
|
500
|
+
writer.uint32(280).uint32(message.mediaFlags);
|
|
501
|
+
}
|
|
502
|
+
if (message.mediaRulesVersion !== 0) {
|
|
503
|
+
writer.uint32(288).uint32(message.mediaRulesVersion);
|
|
504
|
+
}
|
|
481
505
|
return writer;
|
|
482
506
|
},
|
|
483
507
|
decode(input, length) {
|
|
@@ -577,6 +601,24 @@ export const Collection = {
|
|
|
577
601
|
case 30:
|
|
578
602
|
message.nonMemberCollaboratorCount = reader.uint32();
|
|
579
603
|
break;
|
|
604
|
+
case 31:
|
|
605
|
+
message.anonOwnerDomain = reader.uint32();
|
|
606
|
+
break;
|
|
607
|
+
case 32:
|
|
608
|
+
message.anonOwnerScope = reader.uint64();
|
|
609
|
+
break;
|
|
610
|
+
case 33:
|
|
611
|
+
message.anonOwnerTag = reader.bytes();
|
|
612
|
+
break;
|
|
613
|
+
case 34:
|
|
614
|
+
message.anonOwnerSequence = reader.uint64();
|
|
615
|
+
break;
|
|
616
|
+
case 35:
|
|
617
|
+
message.mediaFlags = reader.uint32();
|
|
618
|
+
break;
|
|
619
|
+
case 36:
|
|
620
|
+
message.mediaRulesVersion = reader.uint32();
|
|
621
|
+
break;
|
|
580
622
|
default:
|
|
581
623
|
reader.skipType(tag & 7);
|
|
582
624
|
break;
|
|
@@ -616,6 +658,12 @@ export const Collection = {
|
|
|
616
658
|
message.initiativeId = object.initiativeId !== undefined && object.initiativeId !== null ? BigInt(object.initiativeId.toString()) : BigInt(0);
|
|
617
659
|
message.pinned = object.pinned ?? false;
|
|
618
660
|
message.nonMemberCollaboratorCount = object.nonMemberCollaboratorCount ?? 0;
|
|
661
|
+
message.anonOwnerDomain = object.anonOwnerDomain ?? 0;
|
|
662
|
+
message.anonOwnerScope = object.anonOwnerScope !== undefined && object.anonOwnerScope !== null ? BigInt(object.anonOwnerScope.toString()) : BigInt(0);
|
|
663
|
+
message.anonOwnerTag = object.anonOwnerTag ?? new Uint8Array();
|
|
664
|
+
message.anonOwnerSequence = object.anonOwnerSequence !== undefined && object.anonOwnerSequence !== null ? BigInt(object.anonOwnerSequence.toString()) : BigInt(0);
|
|
665
|
+
message.mediaFlags = object.mediaFlags ?? 0;
|
|
666
|
+
message.mediaRulesVersion = object.mediaRulesVersion ?? 0;
|
|
619
667
|
return message;
|
|
620
668
|
},
|
|
621
669
|
fromAmino(object) {
|
|
@@ -708,6 +756,24 @@ export const Collection = {
|
|
|
708
756
|
if (object.non_member_collaborator_count !== undefined && object.non_member_collaborator_count !== null) {
|
|
709
757
|
message.nonMemberCollaboratorCount = object.non_member_collaborator_count;
|
|
710
758
|
}
|
|
759
|
+
if (object.anon_owner_domain !== undefined && object.anon_owner_domain !== null) {
|
|
760
|
+
message.anonOwnerDomain = object.anon_owner_domain;
|
|
761
|
+
}
|
|
762
|
+
if (object.anon_owner_scope !== undefined && object.anon_owner_scope !== null) {
|
|
763
|
+
message.anonOwnerScope = BigInt(object.anon_owner_scope);
|
|
764
|
+
}
|
|
765
|
+
if (object.anon_owner_tag !== undefined && object.anon_owner_tag !== null) {
|
|
766
|
+
message.anonOwnerTag = bytesFromBase64(object.anon_owner_tag);
|
|
767
|
+
}
|
|
768
|
+
if (object.anon_owner_sequence !== undefined && object.anon_owner_sequence !== null) {
|
|
769
|
+
message.anonOwnerSequence = BigInt(object.anon_owner_sequence);
|
|
770
|
+
}
|
|
771
|
+
if (object.media_flags !== undefined && object.media_flags !== null) {
|
|
772
|
+
message.mediaFlags = object.media_flags;
|
|
773
|
+
}
|
|
774
|
+
if (object.media_rules_version !== undefined && object.media_rules_version !== null) {
|
|
775
|
+
message.mediaRulesVersion = object.media_rules_version;
|
|
776
|
+
}
|
|
711
777
|
return message;
|
|
712
778
|
},
|
|
713
779
|
toAmino(message) {
|
|
@@ -747,6 +813,12 @@ export const Collection = {
|
|
|
747
813
|
obj.initiative_id = message.initiativeId !== BigInt(0) ? message.initiativeId?.toString() : undefined;
|
|
748
814
|
obj.pinned = message.pinned === false ? undefined : message.pinned;
|
|
749
815
|
obj.non_member_collaborator_count = message.nonMemberCollaboratorCount === 0 ? undefined : message.nonMemberCollaboratorCount;
|
|
816
|
+
obj.anon_owner_domain = message.anonOwnerDomain === 0 ? undefined : message.anonOwnerDomain;
|
|
817
|
+
obj.anon_owner_scope = message.anonOwnerScope !== BigInt(0) ? message.anonOwnerScope?.toString() : undefined;
|
|
818
|
+
obj.anon_owner_tag = message.anonOwnerTag ? base64FromBytes(message.anonOwnerTag) : undefined;
|
|
819
|
+
obj.anon_owner_sequence = message.anonOwnerSequence !== BigInt(0) ? message.anonOwnerSequence?.toString() : undefined;
|
|
820
|
+
obj.media_flags = message.mediaFlags === 0 ? undefined : message.mediaFlags;
|
|
821
|
+
obj.media_rules_version = message.mediaRulesVersion === 0 ? undefined : message.mediaRulesVersion;
|
|
750
822
|
return obj;
|
|
751
823
|
},
|
|
752
824
|
fromAminoMsg(object) {
|
|
@@ -784,7 +856,9 @@ function createBaseItem() {
|
|
|
784
856
|
addedAt: BigInt(0),
|
|
785
857
|
status: 0,
|
|
786
858
|
upvoteCount: BigInt(0),
|
|
787
|
-
downvoteCount: BigInt(0)
|
|
859
|
+
downvoteCount: BigInt(0),
|
|
860
|
+
mediaFlags: 0,
|
|
861
|
+
mediaRulesVersion: 0
|
|
788
862
|
};
|
|
789
863
|
}
|
|
790
864
|
/**
|
|
@@ -850,6 +924,12 @@ export const Item = {
|
|
|
850
924
|
if (message.downvoteCount !== BigInt(0)) {
|
|
851
925
|
writer.uint32(144).uint64(message.downvoteCount);
|
|
852
926
|
}
|
|
927
|
+
if (message.mediaFlags !== 0) {
|
|
928
|
+
writer.uint32(152).uint32(message.mediaFlags);
|
|
929
|
+
}
|
|
930
|
+
if (message.mediaRulesVersion !== 0) {
|
|
931
|
+
writer.uint32(160).uint32(message.mediaRulesVersion);
|
|
932
|
+
}
|
|
853
933
|
return writer;
|
|
854
934
|
},
|
|
855
935
|
decode(input, length) {
|
|
@@ -913,6 +993,12 @@ export const Item = {
|
|
|
913
993
|
case 18:
|
|
914
994
|
message.downvoteCount = reader.uint64();
|
|
915
995
|
break;
|
|
996
|
+
case 19:
|
|
997
|
+
message.mediaFlags = reader.uint32();
|
|
998
|
+
break;
|
|
999
|
+
case 20:
|
|
1000
|
+
message.mediaRulesVersion = reader.uint32();
|
|
1001
|
+
break;
|
|
916
1002
|
default:
|
|
917
1003
|
reader.skipType(tag & 7);
|
|
918
1004
|
break;
|
|
@@ -940,6 +1026,8 @@ export const Item = {
|
|
|
940
1026
|
message.status = object.status ?? 0;
|
|
941
1027
|
message.upvoteCount = object.upvoteCount !== undefined && object.upvoteCount !== null ? BigInt(object.upvoteCount.toString()) : BigInt(0);
|
|
942
1028
|
message.downvoteCount = object.downvoteCount !== undefined && object.downvoteCount !== null ? BigInt(object.downvoteCount.toString()) : BigInt(0);
|
|
1029
|
+
message.mediaFlags = object.mediaFlags ?? 0;
|
|
1030
|
+
message.mediaRulesVersion = object.mediaRulesVersion ?? 0;
|
|
943
1031
|
return message;
|
|
944
1032
|
},
|
|
945
1033
|
fromAmino(object) {
|
|
@@ -996,6 +1084,12 @@ export const Item = {
|
|
|
996
1084
|
if (object.downvote_count !== undefined && object.downvote_count !== null) {
|
|
997
1085
|
message.downvoteCount = BigInt(object.downvote_count);
|
|
998
1086
|
}
|
|
1087
|
+
if (object.media_flags !== undefined && object.media_flags !== null) {
|
|
1088
|
+
message.mediaFlags = object.media_flags;
|
|
1089
|
+
}
|
|
1090
|
+
if (object.media_rules_version !== undefined && object.media_rules_version !== null) {
|
|
1091
|
+
message.mediaRulesVersion = object.media_rules_version;
|
|
1092
|
+
}
|
|
999
1093
|
return message;
|
|
1000
1094
|
},
|
|
1001
1095
|
toAmino(message) {
|
|
@@ -1023,6 +1117,8 @@ export const Item = {
|
|
|
1023
1117
|
obj.status = message.status === 0 ? undefined : message.status;
|
|
1024
1118
|
obj.upvote_count = message.upvoteCount !== BigInt(0) ? message.upvoteCount?.toString() : undefined;
|
|
1025
1119
|
obj.downvote_count = message.downvoteCount !== BigInt(0) ? message.downvoteCount?.toString() : undefined;
|
|
1120
|
+
obj.media_flags = message.mediaFlags === 0 ? undefined : message.mediaFlags;
|
|
1121
|
+
obj.media_rules_version = message.mediaRulesVersion === 0 ? undefined : message.mediaRulesVersion;
|
|
1026
1122
|
return obj;
|
|
1027
1123
|
},
|
|
1028
1124
|
fromAminoMsg(object) {
|
|
@@ -2381,9 +2477,7 @@ function createBaseCollectOperationalParams() {
|
|
|
2381
2477
|
maxFlagReasonLength: 0,
|
|
2382
2478
|
sentinelCommitAmount: "",
|
|
2383
2479
|
hideExpiryBlocks: BigInt(0),
|
|
2384
|
-
appealFee: "",
|
|
2385
2480
|
appealCooldownBlocks: BigInt(0),
|
|
2386
|
-
appealDeadlineBlocks: BigInt(0),
|
|
2387
2481
|
endorsementCreationFee: "",
|
|
2388
2482
|
endorsementDreamStake: "",
|
|
2389
2483
|
endorsementStakeDuration: BigInt(0),
|
|
@@ -2428,154 +2522,148 @@ export const CollectOperationalParams = {
|
|
|
2428
2522
|
writer.uint32(26).string(message.perItemSpamTax);
|
|
2429
2523
|
}
|
|
2430
2524
|
if (message.sponsorFee !== "") {
|
|
2431
|
-
writer.uint32(
|
|
2525
|
+
writer.uint32(34).string(message.sponsorFee);
|
|
2432
2526
|
}
|
|
2433
2527
|
if (message.minSponsorTrustLevel !== "") {
|
|
2434
|
-
writer.uint32(
|
|
2528
|
+
writer.uint32(42).string(message.minSponsorTrustLevel);
|
|
2435
2529
|
}
|
|
2436
2530
|
if (message.sponsorshipRequestTtlBlocks !== BigInt(0)) {
|
|
2437
|
-
writer.uint32(
|
|
2531
|
+
writer.uint32(48).int64(message.sponsorshipRequestTtlBlocks);
|
|
2438
2532
|
}
|
|
2439
2533
|
if (message.minCuratorBond !== "") {
|
|
2440
|
-
writer.uint32(
|
|
2534
|
+
writer.uint32(58).string(message.minCuratorBond);
|
|
2441
2535
|
}
|
|
2442
2536
|
if (message.minCuratorTrustLevel !== "") {
|
|
2443
|
-
writer.uint32(
|
|
2537
|
+
writer.uint32(66).string(message.minCuratorTrustLevel);
|
|
2444
2538
|
}
|
|
2445
2539
|
if (message.minCuratorAgeBlocks !== BigInt(0)) {
|
|
2446
|
-
writer.uint32(
|
|
2540
|
+
writer.uint32(72).int64(message.minCuratorAgeBlocks);
|
|
2447
2541
|
}
|
|
2448
2542
|
if (message.maxTagsPerReview !== 0) {
|
|
2449
|
-
writer.uint32(
|
|
2543
|
+
writer.uint32(80).uint32(message.maxTagsPerReview);
|
|
2450
2544
|
}
|
|
2451
2545
|
if (message.maxReviewCommentLength !== 0) {
|
|
2452
|
-
writer.uint32(
|
|
2546
|
+
writer.uint32(88).uint32(message.maxReviewCommentLength);
|
|
2453
2547
|
}
|
|
2454
2548
|
if (message.maxReviewsPerCollection !== 0) {
|
|
2455
|
-
writer.uint32(
|
|
2549
|
+
writer.uint32(96).uint32(message.maxReviewsPerCollection);
|
|
2456
2550
|
}
|
|
2457
2551
|
if (message.curatorSlashFraction !== "") {
|
|
2458
|
-
writer.uint32(
|
|
2552
|
+
writer.uint32(106).string(Decimal.fromUserInput(message.curatorSlashFraction, 18).atomics);
|
|
2459
2553
|
}
|
|
2460
2554
|
if (message.challengeWindowBlocks !== BigInt(0)) {
|
|
2461
|
-
writer.uint32(
|
|
2555
|
+
writer.uint32(112).int64(message.challengeWindowBlocks);
|
|
2462
2556
|
}
|
|
2463
2557
|
if (message.challengeDeposit !== "") {
|
|
2464
|
-
writer.uint32(
|
|
2558
|
+
writer.uint32(122).string(message.challengeDeposit);
|
|
2465
2559
|
}
|
|
2466
2560
|
if (message.maxChallengeReasonLength !== 0) {
|
|
2467
|
-
writer.uint32(
|
|
2561
|
+
writer.uint32(128).uint32(message.maxChallengeReasonLength);
|
|
2468
2562
|
}
|
|
2469
2563
|
if (message.challengeRewardFraction !== "") {
|
|
2470
|
-
writer.uint32(
|
|
2564
|
+
writer.uint32(138).string(Decimal.fromUserInput(message.challengeRewardFraction, 18).atomics);
|
|
2471
2565
|
}
|
|
2472
2566
|
if (message.downvoteCost !== "") {
|
|
2473
|
-
writer.uint32(
|
|
2567
|
+
writer.uint32(146).string(message.downvoteCost);
|
|
2474
2568
|
}
|
|
2475
2569
|
if (message.maxUpvotesPerDay !== 0) {
|
|
2476
|
-
writer.uint32(
|
|
2570
|
+
writer.uint32(152).uint32(message.maxUpvotesPerDay);
|
|
2477
2571
|
}
|
|
2478
2572
|
if (message.maxDownvotesPerDay !== 0) {
|
|
2479
|
-
writer.uint32(
|
|
2573
|
+
writer.uint32(160).uint32(message.maxDownvotesPerDay);
|
|
2480
2574
|
}
|
|
2481
2575
|
if (message.flagReviewThreshold !== 0) {
|
|
2482
|
-
writer.uint32(
|
|
2576
|
+
writer.uint32(168).uint32(message.flagReviewThreshold);
|
|
2483
2577
|
}
|
|
2484
2578
|
if (message.maxFlagsPerDay !== 0) {
|
|
2485
|
-
writer.uint32(
|
|
2579
|
+
writer.uint32(176).uint32(message.maxFlagsPerDay);
|
|
2486
2580
|
}
|
|
2487
2581
|
if (message.maxFlaggersPerTarget !== 0) {
|
|
2488
|
-
writer.uint32(
|
|
2582
|
+
writer.uint32(184).uint32(message.maxFlaggersPerTarget);
|
|
2489
2583
|
}
|
|
2490
2584
|
if (message.flagExpirationBlocks !== BigInt(0)) {
|
|
2491
|
-
writer.uint32(
|
|
2585
|
+
writer.uint32(192).int64(message.flagExpirationBlocks);
|
|
2492
2586
|
}
|
|
2493
2587
|
if (message.maxFlagReasonLength !== 0) {
|
|
2494
|
-
writer.uint32(
|
|
2588
|
+
writer.uint32(200).uint32(message.maxFlagReasonLength);
|
|
2495
2589
|
}
|
|
2496
2590
|
if (message.sentinelCommitAmount !== "") {
|
|
2497
|
-
writer.uint32(
|
|
2591
|
+
writer.uint32(210).string(message.sentinelCommitAmount);
|
|
2498
2592
|
}
|
|
2499
2593
|
if (message.hideExpiryBlocks !== BigInt(0)) {
|
|
2500
|
-
writer.uint32(
|
|
2501
|
-
}
|
|
2502
|
-
if (message.appealFee !== "") {
|
|
2503
|
-
writer.uint32(234).string(message.appealFee);
|
|
2594
|
+
writer.uint32(216).int64(message.hideExpiryBlocks);
|
|
2504
2595
|
}
|
|
2505
2596
|
if (message.appealCooldownBlocks !== BigInt(0)) {
|
|
2506
|
-
writer.uint32(
|
|
2507
|
-
}
|
|
2508
|
-
if (message.appealDeadlineBlocks !== BigInt(0)) {
|
|
2509
|
-
writer.uint32(248).int64(message.appealDeadlineBlocks);
|
|
2597
|
+
writer.uint32(224).int64(message.appealCooldownBlocks);
|
|
2510
2598
|
}
|
|
2511
2599
|
if (message.endorsementCreationFee !== "") {
|
|
2512
|
-
writer.uint32(
|
|
2600
|
+
writer.uint32(234).string(message.endorsementCreationFee);
|
|
2513
2601
|
}
|
|
2514
2602
|
if (message.endorsementDreamStake !== "") {
|
|
2515
|
-
writer.uint32(
|
|
2603
|
+
writer.uint32(242).string(message.endorsementDreamStake);
|
|
2516
2604
|
}
|
|
2517
2605
|
if (message.endorsementStakeDuration !== BigInt(0)) {
|
|
2518
|
-
writer.uint32(
|
|
2606
|
+
writer.uint32(248).int64(message.endorsementStakeDuration);
|
|
2519
2607
|
}
|
|
2520
2608
|
if (message.endorsementExpiryBlocks !== BigInt(0)) {
|
|
2521
|
-
writer.uint32(
|
|
2609
|
+
writer.uint32(256).int64(message.endorsementExpiryBlocks);
|
|
2522
2610
|
}
|
|
2523
2611
|
if (message.endorsementFeeEndorserShare !== "") {
|
|
2524
|
-
writer.uint32(
|
|
2612
|
+
writer.uint32(266).string(Decimal.fromUserInput(message.endorsementFeeEndorserShare, 18).atomics);
|
|
2525
2613
|
}
|
|
2526
2614
|
if (message.endorsementDeletionBurnFraction !== "") {
|
|
2527
|
-
writer.uint32(
|
|
2615
|
+
writer.uint32(274).string(Decimal.fromUserInput(message.endorsementDeletionBurnFraction, 18).atomics);
|
|
2528
2616
|
}
|
|
2529
2617
|
if (message.convictionRenewalThreshold !== "") {
|
|
2530
|
-
writer.uint32(
|
|
2618
|
+
writer.uint32(282).string(Decimal.fromUserInput(message.convictionRenewalThreshold, 18).atomics);
|
|
2531
2619
|
}
|
|
2532
2620
|
if (message.convictionRenewalPeriod !== BigInt(0)) {
|
|
2533
|
-
writer.uint32(
|
|
2621
|
+
writer.uint32(288).int64(message.convictionRenewalPeriod);
|
|
2534
2622
|
}
|
|
2535
2623
|
if (message.pinMinTrustLevel !== 0) {
|
|
2536
|
-
writer.uint32(
|
|
2624
|
+
writer.uint32(296).uint32(message.pinMinTrustLevel);
|
|
2537
2625
|
}
|
|
2538
2626
|
if (message.maxPinsPerDay !== 0) {
|
|
2539
|
-
writer.uint32(
|
|
2627
|
+
writer.uint32(304).uint32(message.maxPinsPerDay);
|
|
2540
2628
|
}
|
|
2541
2629
|
if (message.curatorDemotionCooldown !== BigInt(0)) {
|
|
2542
|
-
writer.uint32(
|
|
2630
|
+
writer.uint32(312).int64(message.curatorDemotionCooldown);
|
|
2543
2631
|
}
|
|
2544
2632
|
if (message.curatorDemotionThreshold !== "") {
|
|
2545
|
-
writer.uint32(
|
|
2633
|
+
writer.uint32(322).string(message.curatorDemotionThreshold);
|
|
2546
2634
|
}
|
|
2547
2635
|
if (message.curatorOverturnDemotionStreak !== BigInt(0)) {
|
|
2548
|
-
writer.uint32(
|
|
2636
|
+
writer.uint32(328).uint64(message.curatorOverturnDemotionStreak);
|
|
2549
2637
|
}
|
|
2550
2638
|
if (message.curatorUnbondCooldown !== BigInt(0)) {
|
|
2551
|
-
writer.uint32(
|
|
2639
|
+
writer.uint32(336).int64(message.curatorUnbondCooldown);
|
|
2552
2640
|
}
|
|
2553
2641
|
if (message.makePermanentMinTrustLevel !== 0) {
|
|
2554
|
-
writer.uint32(
|
|
2642
|
+
writer.uint32(344).uint32(message.makePermanentMinTrustLevel);
|
|
2555
2643
|
}
|
|
2556
2644
|
if (message.maxMakePermanentPerDay !== 0) {
|
|
2557
|
-
writer.uint32(
|
|
2645
|
+
writer.uint32(392).uint32(message.maxMakePermanentPerDay);
|
|
2558
2646
|
}
|
|
2559
2647
|
if (message.nonMemberCollabDreamStake !== "") {
|
|
2560
|
-
writer.uint32(
|
|
2648
|
+
writer.uint32(354).string(message.nonMemberCollabDreamStake);
|
|
2561
2649
|
}
|
|
2562
2650
|
if (message.nonMemberCollabBurnFraction !== "") {
|
|
2563
|
-
writer.uint32(
|
|
2651
|
+
writer.uint32(362).string(Decimal.fromUserInput(message.nonMemberCollabBurnFraction, 18).atomics);
|
|
2564
2652
|
}
|
|
2565
2653
|
if (message.endorserRepPenalty !== "") {
|
|
2566
|
-
writer.uint32(
|
|
2654
|
+
writer.uint32(370).string(Decimal.fromUserInput(message.endorserRepPenalty, 18).atomics);
|
|
2567
2655
|
}
|
|
2568
2656
|
if (message.collabInviterRepPenalty !== "") {
|
|
2569
|
-
writer.uint32(
|
|
2657
|
+
writer.uint32(378).string(Decimal.fromUserInput(message.collabInviterRepPenalty, 18).atomics);
|
|
2570
2658
|
}
|
|
2571
2659
|
if (message.authorRepPenalty !== "") {
|
|
2572
|
-
writer.uint32(
|
|
2660
|
+
writer.uint32(386).string(Decimal.fromUserInput(message.authorRepPenalty, 18).atomics);
|
|
2573
2661
|
}
|
|
2574
2662
|
if (message.sentinelUnhideWindowBlocks !== BigInt(0)) {
|
|
2575
|
-
writer.uint32(
|
|
2663
|
+
writer.uint32(400).int64(message.sentinelUnhideWindowBlocks);
|
|
2576
2664
|
}
|
|
2577
2665
|
if (message.maxHidesPerSentinelPerDay !== 0) {
|
|
2578
|
-
writer.uint32(
|
|
2666
|
+
writer.uint32(408).uint32(message.maxHidesPerSentinelPerDay);
|
|
2579
2667
|
}
|
|
2580
2668
|
return writer;
|
|
2581
2669
|
},
|
|
@@ -2595,154 +2683,148 @@ export const CollectOperationalParams = {
|
|
|
2595
2683
|
case 3:
|
|
2596
2684
|
message.perItemSpamTax = reader.string();
|
|
2597
2685
|
break;
|
|
2598
|
-
case
|
|
2686
|
+
case 4:
|
|
2599
2687
|
message.sponsorFee = reader.string();
|
|
2600
2688
|
break;
|
|
2601
|
-
case
|
|
2689
|
+
case 5:
|
|
2602
2690
|
message.minSponsorTrustLevel = reader.string();
|
|
2603
2691
|
break;
|
|
2604
|
-
case
|
|
2692
|
+
case 6:
|
|
2605
2693
|
message.sponsorshipRequestTtlBlocks = reader.int64();
|
|
2606
2694
|
break;
|
|
2607
|
-
case
|
|
2695
|
+
case 7:
|
|
2608
2696
|
message.minCuratorBond = reader.string();
|
|
2609
2697
|
break;
|
|
2610
|
-
case
|
|
2698
|
+
case 8:
|
|
2611
2699
|
message.minCuratorTrustLevel = reader.string();
|
|
2612
2700
|
break;
|
|
2613
|
-
case
|
|
2701
|
+
case 9:
|
|
2614
2702
|
message.minCuratorAgeBlocks = reader.int64();
|
|
2615
2703
|
break;
|
|
2616
|
-
case
|
|
2704
|
+
case 10:
|
|
2617
2705
|
message.maxTagsPerReview = reader.uint32();
|
|
2618
2706
|
break;
|
|
2619
|
-
case
|
|
2707
|
+
case 11:
|
|
2620
2708
|
message.maxReviewCommentLength = reader.uint32();
|
|
2621
2709
|
break;
|
|
2622
|
-
case
|
|
2710
|
+
case 12:
|
|
2623
2711
|
message.maxReviewsPerCollection = reader.uint32();
|
|
2624
2712
|
break;
|
|
2625
|
-
case
|
|
2713
|
+
case 13:
|
|
2626
2714
|
message.curatorSlashFraction = Decimal.fromAtomics(reader.string(), 18).toString();
|
|
2627
2715
|
break;
|
|
2628
|
-
case
|
|
2716
|
+
case 14:
|
|
2629
2717
|
message.challengeWindowBlocks = reader.int64();
|
|
2630
2718
|
break;
|
|
2631
|
-
case
|
|
2719
|
+
case 15:
|
|
2632
2720
|
message.challengeDeposit = reader.string();
|
|
2633
2721
|
break;
|
|
2634
|
-
case
|
|
2722
|
+
case 16:
|
|
2635
2723
|
message.maxChallengeReasonLength = reader.uint32();
|
|
2636
2724
|
break;
|
|
2637
|
-
case
|
|
2725
|
+
case 17:
|
|
2638
2726
|
message.challengeRewardFraction = Decimal.fromAtomics(reader.string(), 18).toString();
|
|
2639
2727
|
break;
|
|
2640
|
-
case
|
|
2728
|
+
case 18:
|
|
2641
2729
|
message.downvoteCost = reader.string();
|
|
2642
2730
|
break;
|
|
2643
|
-
case
|
|
2731
|
+
case 19:
|
|
2644
2732
|
message.maxUpvotesPerDay = reader.uint32();
|
|
2645
2733
|
break;
|
|
2646
|
-
case
|
|
2734
|
+
case 20:
|
|
2647
2735
|
message.maxDownvotesPerDay = reader.uint32();
|
|
2648
2736
|
break;
|
|
2649
|
-
case
|
|
2737
|
+
case 21:
|
|
2650
2738
|
message.flagReviewThreshold = reader.uint32();
|
|
2651
2739
|
break;
|
|
2652
|
-
case
|
|
2740
|
+
case 22:
|
|
2653
2741
|
message.maxFlagsPerDay = reader.uint32();
|
|
2654
2742
|
break;
|
|
2655
|
-
case
|
|
2743
|
+
case 23:
|
|
2656
2744
|
message.maxFlaggersPerTarget = reader.uint32();
|
|
2657
2745
|
break;
|
|
2658
|
-
case
|
|
2746
|
+
case 24:
|
|
2659
2747
|
message.flagExpirationBlocks = reader.int64();
|
|
2660
2748
|
break;
|
|
2661
|
-
case
|
|
2749
|
+
case 25:
|
|
2662
2750
|
message.maxFlagReasonLength = reader.uint32();
|
|
2663
2751
|
break;
|
|
2664
|
-
case
|
|
2752
|
+
case 26:
|
|
2665
2753
|
message.sentinelCommitAmount = reader.string();
|
|
2666
2754
|
break;
|
|
2667
|
-
case
|
|
2755
|
+
case 27:
|
|
2668
2756
|
message.hideExpiryBlocks = reader.int64();
|
|
2669
2757
|
break;
|
|
2670
|
-
case
|
|
2671
|
-
message.appealFee = reader.string();
|
|
2672
|
-
break;
|
|
2673
|
-
case 30:
|
|
2758
|
+
case 28:
|
|
2674
2759
|
message.appealCooldownBlocks = reader.int64();
|
|
2675
2760
|
break;
|
|
2676
|
-
case
|
|
2677
|
-
message.appealDeadlineBlocks = reader.int64();
|
|
2678
|
-
break;
|
|
2679
|
-
case 32:
|
|
2761
|
+
case 29:
|
|
2680
2762
|
message.endorsementCreationFee = reader.string();
|
|
2681
2763
|
break;
|
|
2682
|
-
case
|
|
2764
|
+
case 30:
|
|
2683
2765
|
message.endorsementDreamStake = reader.string();
|
|
2684
2766
|
break;
|
|
2685
|
-
case
|
|
2767
|
+
case 31:
|
|
2686
2768
|
message.endorsementStakeDuration = reader.int64();
|
|
2687
2769
|
break;
|
|
2688
|
-
case
|
|
2770
|
+
case 32:
|
|
2689
2771
|
message.endorsementExpiryBlocks = reader.int64();
|
|
2690
2772
|
break;
|
|
2691
|
-
case
|
|
2773
|
+
case 33:
|
|
2692
2774
|
message.endorsementFeeEndorserShare = Decimal.fromAtomics(reader.string(), 18).toString();
|
|
2693
2775
|
break;
|
|
2694
|
-
case
|
|
2776
|
+
case 34:
|
|
2695
2777
|
message.endorsementDeletionBurnFraction = Decimal.fromAtomics(reader.string(), 18).toString();
|
|
2696
2778
|
break;
|
|
2697
|
-
case
|
|
2779
|
+
case 35:
|
|
2698
2780
|
message.convictionRenewalThreshold = Decimal.fromAtomics(reader.string(), 18).toString();
|
|
2699
2781
|
break;
|
|
2700
|
-
case
|
|
2782
|
+
case 36:
|
|
2701
2783
|
message.convictionRenewalPeriod = reader.int64();
|
|
2702
2784
|
break;
|
|
2703
|
-
case
|
|
2785
|
+
case 37:
|
|
2704
2786
|
message.pinMinTrustLevel = reader.uint32();
|
|
2705
2787
|
break;
|
|
2706
|
-
case
|
|
2788
|
+
case 38:
|
|
2707
2789
|
message.maxPinsPerDay = reader.uint32();
|
|
2708
2790
|
break;
|
|
2709
|
-
case
|
|
2791
|
+
case 39:
|
|
2710
2792
|
message.curatorDemotionCooldown = reader.int64();
|
|
2711
2793
|
break;
|
|
2712
|
-
case
|
|
2794
|
+
case 40:
|
|
2713
2795
|
message.curatorDemotionThreshold = reader.string();
|
|
2714
2796
|
break;
|
|
2715
|
-
case
|
|
2797
|
+
case 41:
|
|
2716
2798
|
message.curatorOverturnDemotionStreak = reader.uint64();
|
|
2717
2799
|
break;
|
|
2718
|
-
case
|
|
2800
|
+
case 42:
|
|
2719
2801
|
message.curatorUnbondCooldown = reader.int64();
|
|
2720
2802
|
break;
|
|
2721
|
-
case
|
|
2803
|
+
case 43:
|
|
2722
2804
|
message.makePermanentMinTrustLevel = reader.uint32();
|
|
2723
2805
|
break;
|
|
2724
|
-
case
|
|
2806
|
+
case 49:
|
|
2725
2807
|
message.maxMakePermanentPerDay = reader.uint32();
|
|
2726
2808
|
break;
|
|
2727
|
-
case
|
|
2809
|
+
case 44:
|
|
2728
2810
|
message.nonMemberCollabDreamStake = reader.string();
|
|
2729
2811
|
break;
|
|
2730
|
-
case
|
|
2812
|
+
case 45:
|
|
2731
2813
|
message.nonMemberCollabBurnFraction = Decimal.fromAtomics(reader.string(), 18).toString();
|
|
2732
2814
|
break;
|
|
2733
|
-
case
|
|
2815
|
+
case 46:
|
|
2734
2816
|
message.endorserRepPenalty = Decimal.fromAtomics(reader.string(), 18).toString();
|
|
2735
2817
|
break;
|
|
2736
|
-
case
|
|
2818
|
+
case 47:
|
|
2737
2819
|
message.collabInviterRepPenalty = Decimal.fromAtomics(reader.string(), 18).toString();
|
|
2738
2820
|
break;
|
|
2739
|
-
case
|
|
2821
|
+
case 48:
|
|
2740
2822
|
message.authorRepPenalty = Decimal.fromAtomics(reader.string(), 18).toString();
|
|
2741
2823
|
break;
|
|
2742
|
-
case
|
|
2824
|
+
case 50:
|
|
2743
2825
|
message.sentinelUnhideWindowBlocks = reader.int64();
|
|
2744
2826
|
break;
|
|
2745
|
-
case
|
|
2827
|
+
case 51:
|
|
2746
2828
|
message.maxHidesPerSentinelPerDay = reader.uint32();
|
|
2747
2829
|
break;
|
|
2748
2830
|
default:
|
|
@@ -2781,9 +2863,7 @@ export const CollectOperationalParams = {
|
|
|
2781
2863
|
message.maxFlagReasonLength = object.maxFlagReasonLength ?? 0;
|
|
2782
2864
|
message.sentinelCommitAmount = object.sentinelCommitAmount ?? "";
|
|
2783
2865
|
message.hideExpiryBlocks = object.hideExpiryBlocks !== undefined && object.hideExpiryBlocks !== null ? BigInt(object.hideExpiryBlocks.toString()) : BigInt(0);
|
|
2784
|
-
message.appealFee = object.appealFee ?? "";
|
|
2785
2866
|
message.appealCooldownBlocks = object.appealCooldownBlocks !== undefined && object.appealCooldownBlocks !== null ? BigInt(object.appealCooldownBlocks.toString()) : BigInt(0);
|
|
2786
|
-
message.appealDeadlineBlocks = object.appealDeadlineBlocks !== undefined && object.appealDeadlineBlocks !== null ? BigInt(object.appealDeadlineBlocks.toString()) : BigInt(0);
|
|
2787
2867
|
message.endorsementCreationFee = object.endorsementCreationFee ?? "";
|
|
2788
2868
|
message.endorsementDreamStake = object.endorsementDreamStake ?? "";
|
|
2789
2869
|
message.endorsementStakeDuration = object.endorsementStakeDuration !== undefined && object.endorsementStakeDuration !== null ? BigInt(object.endorsementStakeDuration.toString()) : BigInt(0);
|
|
@@ -2892,15 +2972,9 @@ export const CollectOperationalParams = {
|
|
|
2892
2972
|
if (object.hide_expiry_blocks !== undefined && object.hide_expiry_blocks !== null) {
|
|
2893
2973
|
message.hideExpiryBlocks = BigInt(object.hide_expiry_blocks);
|
|
2894
2974
|
}
|
|
2895
|
-
if (object.appeal_fee !== undefined && object.appeal_fee !== null) {
|
|
2896
|
-
message.appealFee = object.appeal_fee;
|
|
2897
|
-
}
|
|
2898
2975
|
if (object.appeal_cooldown_blocks !== undefined && object.appeal_cooldown_blocks !== null) {
|
|
2899
2976
|
message.appealCooldownBlocks = BigInt(object.appeal_cooldown_blocks);
|
|
2900
2977
|
}
|
|
2901
|
-
if (object.appeal_deadline_blocks !== undefined && object.appeal_deadline_blocks !== null) {
|
|
2902
|
-
message.appealDeadlineBlocks = BigInt(object.appeal_deadline_blocks);
|
|
2903
|
-
}
|
|
2904
2978
|
if (object.endorsement_creation_fee !== undefined && object.endorsement_creation_fee !== null) {
|
|
2905
2979
|
message.endorsementCreationFee = object.endorsement_creation_fee;
|
|
2906
2980
|
}
|
|
@@ -3001,9 +3075,7 @@ export const CollectOperationalParams = {
|
|
|
3001
3075
|
obj.max_flag_reason_length = message.maxFlagReasonLength === 0 ? undefined : message.maxFlagReasonLength;
|
|
3002
3076
|
obj.sentinel_commit_amount = message.sentinelCommitAmount === "" ? undefined : message.sentinelCommitAmount;
|
|
3003
3077
|
obj.hide_expiry_blocks = message.hideExpiryBlocks !== BigInt(0) ? message.hideExpiryBlocks?.toString() : undefined;
|
|
3004
|
-
obj.appeal_fee = message.appealFee === "" ? undefined : message.appealFee;
|
|
3005
3078
|
obj.appeal_cooldown_blocks = message.appealCooldownBlocks !== BigInt(0) ? message.appealCooldownBlocks?.toString() : undefined;
|
|
3006
|
-
obj.appeal_deadline_blocks = message.appealDeadlineBlocks !== BigInt(0) ? message.appealDeadlineBlocks?.toString() : undefined;
|
|
3007
3079
|
obj.endorsement_creation_fee = message.endorsementCreationFee === "" ? undefined : message.endorsementCreationFee;
|
|
3008
3080
|
obj.endorsement_dream_stake = message.endorsementDreamStake === "" ? undefined : message.endorsementDreamStake;
|
|
3009
3081
|
obj.endorsement_stake_duration = message.endorsementStakeDuration !== BigInt(0) ? message.endorsementStakeDuration?.toString() : undefined;
|
|
@@ -3206,7 +3278,8 @@ function createBaseHideRecord() {
|
|
|
3206
3278
|
authorBondAmount: "",
|
|
3207
3279
|
authorRepPenalty: "",
|
|
3208
3280
|
repPenaltyTags: [],
|
|
3209
|
-
repPenaltyAmounts: []
|
|
3281
|
+
repPenaltyAmounts: [],
|
|
3282
|
+
appealId: BigInt(0)
|
|
3210
3283
|
};
|
|
3211
3284
|
}
|
|
3212
3285
|
/**
|
|
@@ -3266,6 +3339,9 @@ export const HideRecord = {
|
|
|
3266
3339
|
for (const v of message.repPenaltyAmounts) {
|
|
3267
3340
|
writer.uint32(130).string(v);
|
|
3268
3341
|
}
|
|
3342
|
+
if (message.appealId !== BigInt(0)) {
|
|
3343
|
+
writer.uint32(136).uint64(message.appealId);
|
|
3344
|
+
}
|
|
3269
3345
|
return writer;
|
|
3270
3346
|
},
|
|
3271
3347
|
decode(input, length) {
|
|
@@ -3323,6 +3399,9 @@ export const HideRecord = {
|
|
|
3323
3399
|
case 16:
|
|
3324
3400
|
message.repPenaltyAmounts.push(reader.string());
|
|
3325
3401
|
break;
|
|
3402
|
+
case 17:
|
|
3403
|
+
message.appealId = reader.uint64();
|
|
3404
|
+
break;
|
|
3326
3405
|
default:
|
|
3327
3406
|
reader.skipType(tag & 7);
|
|
3328
3407
|
break;
|
|
@@ -3348,6 +3427,7 @@ export const HideRecord = {
|
|
|
3348
3427
|
message.authorRepPenalty = object.authorRepPenalty ?? "";
|
|
3349
3428
|
message.repPenaltyTags = object.repPenaltyTags?.map(e => e) || [];
|
|
3350
3429
|
message.repPenaltyAmounts = object.repPenaltyAmounts?.map(e => e) || [];
|
|
3430
|
+
message.appealId = object.appealId !== undefined && object.appealId !== null ? BigInt(object.appealId.toString()) : BigInt(0);
|
|
3351
3431
|
return message;
|
|
3352
3432
|
},
|
|
3353
3433
|
fromAmino(object) {
|
|
@@ -3396,6 +3476,9 @@ export const HideRecord = {
|
|
|
3396
3476
|
}
|
|
3397
3477
|
message.repPenaltyTags = object.rep_penalty_tags?.map(e => e) || [];
|
|
3398
3478
|
message.repPenaltyAmounts = object.rep_penalty_amounts?.map(e => e) || [];
|
|
3479
|
+
if (object.appeal_id !== undefined && object.appeal_id !== null) {
|
|
3480
|
+
message.appealId = BigInt(object.appeal_id);
|
|
3481
|
+
}
|
|
3399
3482
|
return message;
|
|
3400
3483
|
},
|
|
3401
3484
|
toAmino(message) {
|
|
@@ -3426,6 +3509,7 @@ export const HideRecord = {
|
|
|
3426
3509
|
else {
|
|
3427
3510
|
obj.rep_penalty_amounts = message.repPenaltyAmounts;
|
|
3428
3511
|
}
|
|
3512
|
+
obj.appeal_id = message.appealId !== BigInt(0) ? message.appealId?.toString() : undefined;
|
|
3429
3513
|
return obj;
|
|
3430
3514
|
},
|
|
3431
3515
|
fromAminoMsg(object) {
|