@sparkdreamnft/sparkdreamjs 0.0.25 → 0.0.27
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 +181 -181
- package/esm/cosmos/bundle.js +181 -181
- package/esm/ibc/bundle.js +105 -105
- package/esm/sparkdream/bundle.js +275 -273
- package/esm/sparkdream/collect/v1/params.js +24 -0
- package/esm/sparkdream/collect/v1/tx.js +216 -1
- package/esm/sparkdream/collect/v1/tx.registry.js +20 -2
- package/esm/sparkdream/collect/v1/tx.rpc.msg.js +11 -1
- package/esm/sparkdream/collect/v1/types.js +92 -2
- package/esm/sparkdream/forum/v1/genesis.js +110 -1
- package/esm/sparkdream/forum/v1/params.js +26 -2
- package/esm/sparkdream/forum/v1/sentinel_activity.js +58 -1
- package/esm/sparkdream/forum/v1/thread_metadata.js +13 -1
- package/esm/sparkdream/forum/v1/tx.js +157 -1
- package/esm/sparkdream/forum/v1/tx.registry.js +20 -2
- package/esm/sparkdream/forum/v1/tx.rpc.msg.js +7 -1
- package/esm/sparkdream/rep/v1/bonded_role.js +17 -5
- package/esm/sparkdream/rep/v1/genesis.js +17 -1
- package/esm/sparkdream/rep/v1/role_activity.js +670 -0
- package/esm/sparkdream/rep/v1/tx.js +159 -0
- package/esm/sparkdream/rep/v1/tx.registry.js +20 -2
- package/esm/sparkdream/rep/v1/tx.rpc.msg.js +8 -1
- package/esm/tendermint/bundle.js +17 -17
- package/ibc/bundle.d.ts +90 -90
- package/ibc/bundle.js +105 -105
- package/package.json +1 -1
- package/sparkdream/bundle.d.ts +7232 -7037
- package/sparkdream/bundle.js +275 -273
- package/sparkdream/collect/v1/params.d.ts +28 -0
- package/sparkdream/collect/v1/params.js +24 -0
- package/sparkdream/collect/v1/tx.d.ts +130 -6
- package/sparkdream/collect/v1/tx.js +220 -3
- package/sparkdream/collect/v1/tx.registry.d.ts +13 -1
- package/sparkdream/collect/v1/tx.registry.js +19 -1
- package/sparkdream/collect/v1/tx.rpc.msg.d.ts +10 -1
- package/sparkdream/collect/v1/tx.rpc.msg.js +10 -0
- package/sparkdream/collect/v1/types.d.ts +72 -0
- package/sparkdream/collect/v1/types.js +92 -2
- package/sparkdream/forum/v1/genesis.d.ts +65 -0
- package/sparkdream/forum/v1/genesis.js +111 -2
- package/sparkdream/forum/v1/params.d.ts +30 -0
- package/sparkdream/forum/v1/params.js +26 -2
- package/sparkdream/forum/v1/sentinel_activity.d.ts +53 -0
- package/sparkdream/forum/v1/sentinel_activity.js +58 -1
- package/sparkdream/forum/v1/thread_metadata.d.ts +16 -0
- package/sparkdream/forum/v1/thread_metadata.js +13 -1
- package/sparkdream/forum/v1/tx.d.ts +93 -7
- package/sparkdream/forum/v1/tx.js +158 -2
- package/sparkdream/forum/v1/tx.registry.d.ts +13 -1
- package/sparkdream/forum/v1/tx.registry.js +19 -1
- package/sparkdream/forum/v1/tx.rpc.msg.d.ts +4 -1
- package/sparkdream/forum/v1/tx.rpc.msg.js +6 -0
- package/sparkdream/rep/v1/bonded_role.d.ts +13 -1
- package/sparkdream/rep/v1/bonded_role.js +17 -5
- package/sparkdream/rep/v1/genesis.d.ts +3 -0
- package/sparkdream/rep/v1/genesis.js +17 -1
- package/sparkdream/rep/v1/role_activity.d.ts +395 -0
- package/sparkdream/rep/v1/role_activity.js +673 -0
- package/sparkdream/rep/v1/tx.d.ts +101 -0
- package/sparkdream/rep/v1/tx.js +160 -1
- package/sparkdream/rep/v1/tx.registry.d.ts +13 -1
- package/sparkdream/rep/v1/tx.registry.js +19 -1
- package/sparkdream/rep/v1/tx.rpc.msg.d.ts +7 -1
- package/sparkdream/rep/v1/tx.rpc.msg.js +7 -0
- package/tendermint/bundle.d.ts +844 -844
- package/tendermint/bundle.js +17 -17
|
@@ -82,6 +82,20 @@ export interface Params {
|
|
|
82
82
|
appealFee: string;
|
|
83
83
|
appealCooldownBlocks: bigint;
|
|
84
84
|
appealDeadlineBlocks: bigint;
|
|
85
|
+
/**
|
|
86
|
+
* Blocks after HiddenAt during which the hiding sentinel may
|
|
87
|
+
* self-correct via MsgUnhideContent. Must be < hide_expiry_blocks.
|
|
88
|
+
* Default 14400 (~24h at 6s blocks).
|
|
89
|
+
*/
|
|
90
|
+
sentinelUnhideWindowBlocks: bigint;
|
|
91
|
+
/**
|
|
92
|
+
* Max MsgHideContent actions per sentinel per day (block-height day,
|
|
93
|
+
* BlocksPerDay = 14400). Collect's other hide throttle is the per-hide
|
|
94
|
+
* bond reservation; this caps outright hide spam by a well-funded
|
|
95
|
+
* sentinel. Default 50 (parity with forum's max_hides_per_epoch).
|
|
96
|
+
* A self-correct unhide does NOT refund the day's slot.
|
|
97
|
+
*/
|
|
98
|
+
maxHidesPerSentinelPerDay: number;
|
|
85
99
|
/**
|
|
86
100
|
* --- Endorsement parameters — OPERATIONAL ---
|
|
87
101
|
*/
|
|
@@ -277,6 +291,20 @@ export interface ParamsAmino {
|
|
|
277
291
|
appeal_fee?: string;
|
|
278
292
|
appeal_cooldown_blocks?: string;
|
|
279
293
|
appeal_deadline_blocks?: string;
|
|
294
|
+
/**
|
|
295
|
+
* Blocks after HiddenAt during which the hiding sentinel may
|
|
296
|
+
* self-correct via MsgUnhideContent. Must be < hide_expiry_blocks.
|
|
297
|
+
* Default 14400 (~24h at 6s blocks).
|
|
298
|
+
*/
|
|
299
|
+
sentinel_unhide_window_blocks?: string;
|
|
300
|
+
/**
|
|
301
|
+
* Max MsgHideContent actions per sentinel per day (block-height day,
|
|
302
|
+
* BlocksPerDay = 14400). Collect's other hide throttle is the per-hide
|
|
303
|
+
* bond reservation; this caps outright hide spam by a well-funded
|
|
304
|
+
* sentinel. Default 50 (parity with forum's max_hides_per_epoch).
|
|
305
|
+
* A self-correct unhide does NOT refund the day's slot.
|
|
306
|
+
*/
|
|
307
|
+
max_hides_per_sentinel_per_day?: number;
|
|
280
308
|
/**
|
|
281
309
|
* --- Endorsement parameters — OPERATIONAL ---
|
|
282
310
|
*/
|
|
@@ -54,6 +54,8 @@ function createBaseParams() {
|
|
|
54
54
|
appealFee: "",
|
|
55
55
|
appealCooldownBlocks: BigInt(0),
|
|
56
56
|
appealDeadlineBlocks: BigInt(0),
|
|
57
|
+
sentinelUnhideWindowBlocks: BigInt(0),
|
|
58
|
+
maxHidesPerSentinelPerDay: 0,
|
|
57
59
|
endorsementCreationFee: "",
|
|
58
60
|
endorsementDreamStake: "",
|
|
59
61
|
endorsementStakeDuration: BigInt(0),
|
|
@@ -233,6 +235,12 @@ exports.Params = {
|
|
|
233
235
|
if (message.appealDeadlineBlocks !== BigInt(0)) {
|
|
234
236
|
writer.uint32(392).int64(message.appealDeadlineBlocks);
|
|
235
237
|
}
|
|
238
|
+
if (message.sentinelUnhideWindowBlocks !== BigInt(0)) {
|
|
239
|
+
writer.uint32(608).int64(message.sentinelUnhideWindowBlocks);
|
|
240
|
+
}
|
|
241
|
+
if (message.maxHidesPerSentinelPerDay !== 0) {
|
|
242
|
+
writer.uint32(616).uint32(message.maxHidesPerSentinelPerDay);
|
|
243
|
+
}
|
|
236
244
|
if (message.endorsementCreationFee !== "") {
|
|
237
245
|
writer.uint32(402).string(message.endorsementCreationFee);
|
|
238
246
|
}
|
|
@@ -455,6 +463,12 @@ exports.Params = {
|
|
|
455
463
|
case 49:
|
|
456
464
|
message.appealDeadlineBlocks = reader.int64();
|
|
457
465
|
break;
|
|
466
|
+
case 76:
|
|
467
|
+
message.sentinelUnhideWindowBlocks = reader.int64();
|
|
468
|
+
break;
|
|
469
|
+
case 77:
|
|
470
|
+
message.maxHidesPerSentinelPerDay = reader.uint32();
|
|
471
|
+
break;
|
|
458
472
|
case 50:
|
|
459
473
|
message.endorsementCreationFee = reader.string();
|
|
460
474
|
break;
|
|
@@ -581,6 +595,8 @@ exports.Params = {
|
|
|
581
595
|
message.appealFee = object.appealFee ?? "";
|
|
582
596
|
message.appealCooldownBlocks = object.appealCooldownBlocks !== undefined && object.appealCooldownBlocks !== null ? BigInt(object.appealCooldownBlocks.toString()) : BigInt(0);
|
|
583
597
|
message.appealDeadlineBlocks = object.appealDeadlineBlocks !== undefined && object.appealDeadlineBlocks !== null ? BigInt(object.appealDeadlineBlocks.toString()) : BigInt(0);
|
|
598
|
+
message.sentinelUnhideWindowBlocks = object.sentinelUnhideWindowBlocks !== undefined && object.sentinelUnhideWindowBlocks !== null ? BigInt(object.sentinelUnhideWindowBlocks.toString()) : BigInt(0);
|
|
599
|
+
message.maxHidesPerSentinelPerDay = object.maxHidesPerSentinelPerDay ?? 0;
|
|
584
600
|
message.endorsementCreationFee = object.endorsementCreationFee ?? "";
|
|
585
601
|
message.endorsementDreamStake = object.endorsementDreamStake ?? "";
|
|
586
602
|
message.endorsementStakeDuration = object.endorsementStakeDuration !== undefined && object.endorsementStakeDuration !== null ? BigInt(object.endorsementStakeDuration.toString()) : BigInt(0);
|
|
@@ -752,6 +768,12 @@ exports.Params = {
|
|
|
752
768
|
if (object.appeal_deadline_blocks !== undefined && object.appeal_deadline_blocks !== null) {
|
|
753
769
|
message.appealDeadlineBlocks = BigInt(object.appeal_deadline_blocks);
|
|
754
770
|
}
|
|
771
|
+
if (object.sentinel_unhide_window_blocks !== undefined && object.sentinel_unhide_window_blocks !== null) {
|
|
772
|
+
message.sentinelUnhideWindowBlocks = BigInt(object.sentinel_unhide_window_blocks);
|
|
773
|
+
}
|
|
774
|
+
if (object.max_hides_per_sentinel_per_day !== undefined && object.max_hides_per_sentinel_per_day !== null) {
|
|
775
|
+
message.maxHidesPerSentinelPerDay = object.max_hides_per_sentinel_per_day;
|
|
776
|
+
}
|
|
755
777
|
if (object.endorsement_creation_fee !== undefined && object.endorsement_creation_fee !== null) {
|
|
756
778
|
message.endorsementCreationFee = object.endorsement_creation_fee;
|
|
757
779
|
}
|
|
@@ -873,6 +895,8 @@ exports.Params = {
|
|
|
873
895
|
obj.appeal_fee = message.appealFee === "" ? undefined : message.appealFee;
|
|
874
896
|
obj.appeal_cooldown_blocks = message.appealCooldownBlocks !== BigInt(0) ? message.appealCooldownBlocks?.toString() : undefined;
|
|
875
897
|
obj.appeal_deadline_blocks = message.appealDeadlineBlocks !== BigInt(0) ? message.appealDeadlineBlocks?.toString() : undefined;
|
|
898
|
+
obj.sentinel_unhide_window_blocks = message.sentinelUnhideWindowBlocks !== BigInt(0) ? message.sentinelUnhideWindowBlocks?.toString() : undefined;
|
|
899
|
+
obj.max_hides_per_sentinel_per_day = message.maxHidesPerSentinelPerDay === 0 ? undefined : message.maxHidesPerSentinelPerDay;
|
|
876
900
|
obj.endorsement_creation_fee = message.endorsementCreationFee === "" ? undefined : message.endorsementCreationFee;
|
|
877
901
|
obj.endorsement_dream_stake = message.endorsementDreamStake === "" ? undefined : message.endorsementDreamStake;
|
|
878
902
|
obj.endorsement_stake_duration = message.endorsementStakeDuration !== BigInt(0) ? message.endorsementStakeDuration?.toString() : undefined;
|
|
@@ -3,6 +3,36 @@ import { CollectionType, Visibility, ReferenceType, NftReference, NftReferenceAm
|
|
|
3
3
|
import { ModerationReason } from "../../common/v1/moderation_reason";
|
|
4
4
|
import { BinaryReader, BinaryWriter } from "../../../binary";
|
|
5
5
|
import { DeepPartial } from "../../../helpers";
|
|
6
|
+
/**
|
|
7
|
+
* ModerationAuthority selects which authority the caller of MsgHideContent
|
|
8
|
+
* is invoking. Mirrors x/forum's enum: it disambiguates the case where an
|
|
9
|
+
* account is BOTH a bonded content sentinel and a Commons Operations
|
|
10
|
+
* Committee member — without it the handler would have to silently pick one
|
|
11
|
+
* path. See the authority-selection notes in docs/x-collect-spec.md
|
|
12
|
+
* (MsgHideContent).
|
|
13
|
+
*/
|
|
14
|
+
export declare enum ModerationAuthority {
|
|
15
|
+
/**
|
|
16
|
+
* MODERATION_AUTHORITY_AUTO - AUTO (default, back-compat): sentinel path whenever the account is an
|
|
17
|
+
* eligible bonded sentinel, else the council path if council-authorized,
|
|
18
|
+
* else error. Prefers the accountable (bonded) sentinel path.
|
|
19
|
+
*/
|
|
20
|
+
MODERATION_AUTHORITY_AUTO = 0,
|
|
21
|
+
/**
|
|
22
|
+
* MODERATION_AUTHORITY_SENTINEL - SENTINEL: force the sentinel path; error if not an eligible sentinel
|
|
23
|
+
* (no silent fallback to council).
|
|
24
|
+
*/
|
|
25
|
+
MODERATION_AUTHORITY_SENTINEL = 1,
|
|
26
|
+
/**
|
|
27
|
+
* MODERATION_AUTHORITY_COUNCIL - COUNCIL: force the council (gov-authority) path; error if not
|
|
28
|
+
* council-authorized. The deliberate "act as committee" choice.
|
|
29
|
+
*/
|
|
30
|
+
MODERATION_AUTHORITY_COUNCIL = 2,
|
|
31
|
+
UNRECOGNIZED = -1
|
|
32
|
+
}
|
|
33
|
+
export declare const ModerationAuthorityAmino: typeof ModerationAuthority;
|
|
34
|
+
export declare function moderationAuthorityFromJSON(object: any): ModerationAuthority;
|
|
35
|
+
export declare function moderationAuthorityToJSON(object: ModerationAuthority): string;
|
|
6
36
|
/**
|
|
7
37
|
* MsgUpdateParams is the Msg/UpdateParams request type.
|
|
8
38
|
* @name MsgUpdateParams
|
|
@@ -69,9 +99,6 @@ export interface MsgCreateCollection {
|
|
|
69
99
|
coverUri: string;
|
|
70
100
|
tags: string[];
|
|
71
101
|
encryptedData: Uint8Array;
|
|
72
|
-
/**
|
|
73
|
-
* Optional DREAM amount to lock as author bond
|
|
74
|
-
*/
|
|
75
102
|
authorBond?: string;
|
|
76
103
|
/**
|
|
77
104
|
* Optional x/rep initiative to link for conviction propagation
|
|
@@ -98,9 +125,6 @@ export interface MsgCreateCollectionAmino {
|
|
|
98
125
|
cover_uri?: string;
|
|
99
126
|
tags?: string[];
|
|
100
127
|
encrypted_data?: string;
|
|
101
|
-
/**
|
|
102
|
-
* Optional DREAM amount to lock as author bond
|
|
103
|
-
*/
|
|
104
128
|
author_bond?: string;
|
|
105
129
|
/**
|
|
106
130
|
* Optional x/rep initiative to link for conviction propagation
|
|
@@ -1223,6 +1247,11 @@ export interface MsgHideContent {
|
|
|
1223
1247
|
targetType: FlagTargetType;
|
|
1224
1248
|
reasonCode: ModerationReason;
|
|
1225
1249
|
reasonText: string;
|
|
1250
|
+
/**
|
|
1251
|
+
* Which authority the caller is invoking — see the enum docs. AUTO
|
|
1252
|
+
* (zero value) preserves pre-council wire behavior for sentinels.
|
|
1253
|
+
*/
|
|
1254
|
+
authority: ModerationAuthority;
|
|
1226
1255
|
}
|
|
1227
1256
|
export interface MsgHideContentProtoMsg {
|
|
1228
1257
|
typeUrl: "/sparkdream.collect.v1.MsgHideContent";
|
|
@@ -1240,6 +1269,11 @@ export interface MsgHideContentAmino {
|
|
|
1240
1269
|
target_type?: FlagTargetType;
|
|
1241
1270
|
reason_code?: ModerationReason;
|
|
1242
1271
|
reason_text?: string;
|
|
1272
|
+
/**
|
|
1273
|
+
* Which authority the caller is invoking — see the enum docs. AUTO
|
|
1274
|
+
* (zero value) preserves pre-council wire behavior for sentinels.
|
|
1275
|
+
*/
|
|
1276
|
+
authority?: ModerationAuthority;
|
|
1243
1277
|
}
|
|
1244
1278
|
export interface MsgHideContentAminoMsg {
|
|
1245
1279
|
type: "sparkdream/x/collect/MsgHideContent";
|
|
@@ -1591,6 +1625,58 @@ export interface MsgMakeCollectionPermanentResponseAminoMsg {
|
|
|
1591
1625
|
type: "/sparkdream.collect.v1.MsgMakeCollectionPermanentResponse";
|
|
1592
1626
|
value: MsgMakeCollectionPermanentResponseAmino;
|
|
1593
1627
|
}
|
|
1628
|
+
/**
|
|
1629
|
+
* MsgUnhideContent defines the MsgUnhideContent message.
|
|
1630
|
+
* @name MsgUnhideContent
|
|
1631
|
+
* @package sparkdream.collect.v1
|
|
1632
|
+
* @see proto type: sparkdream.collect.v1.MsgUnhideContent
|
|
1633
|
+
*/
|
|
1634
|
+
export interface MsgUnhideContent {
|
|
1635
|
+
creator: string;
|
|
1636
|
+
hideRecordId: bigint;
|
|
1637
|
+
}
|
|
1638
|
+
export interface MsgUnhideContentProtoMsg {
|
|
1639
|
+
typeUrl: "/sparkdream.collect.v1.MsgUnhideContent";
|
|
1640
|
+
value: Uint8Array;
|
|
1641
|
+
}
|
|
1642
|
+
/**
|
|
1643
|
+
* MsgUnhideContent defines the MsgUnhideContent message.
|
|
1644
|
+
* @name MsgUnhideContentAmino
|
|
1645
|
+
* @package sparkdream.collect.v1
|
|
1646
|
+
* @see proto type: sparkdream.collect.v1.MsgUnhideContent
|
|
1647
|
+
*/
|
|
1648
|
+
export interface MsgUnhideContentAmino {
|
|
1649
|
+
creator?: string;
|
|
1650
|
+
hide_record_id?: string;
|
|
1651
|
+
}
|
|
1652
|
+
export interface MsgUnhideContentAminoMsg {
|
|
1653
|
+
type: "sparkdream/x/collect/MsgUnhideContent";
|
|
1654
|
+
value: MsgUnhideContentAmino;
|
|
1655
|
+
}
|
|
1656
|
+
/**
|
|
1657
|
+
* MsgUnhideContentResponse defines the MsgUnhideContentResponse message.
|
|
1658
|
+
* @name MsgUnhideContentResponse
|
|
1659
|
+
* @package sparkdream.collect.v1
|
|
1660
|
+
* @see proto type: sparkdream.collect.v1.MsgUnhideContentResponse
|
|
1661
|
+
*/
|
|
1662
|
+
export interface MsgUnhideContentResponse {
|
|
1663
|
+
}
|
|
1664
|
+
export interface MsgUnhideContentResponseProtoMsg {
|
|
1665
|
+
typeUrl: "/sparkdream.collect.v1.MsgUnhideContentResponse";
|
|
1666
|
+
value: Uint8Array;
|
|
1667
|
+
}
|
|
1668
|
+
/**
|
|
1669
|
+
* MsgUnhideContentResponse defines the MsgUnhideContentResponse message.
|
|
1670
|
+
* @name MsgUnhideContentResponseAmino
|
|
1671
|
+
* @package sparkdream.collect.v1
|
|
1672
|
+
* @see proto type: sparkdream.collect.v1.MsgUnhideContentResponse
|
|
1673
|
+
*/
|
|
1674
|
+
export interface MsgUnhideContentResponseAmino {
|
|
1675
|
+
}
|
|
1676
|
+
export interface MsgUnhideContentResponseAminoMsg {
|
|
1677
|
+
type: "/sparkdream.collect.v1.MsgUnhideContentResponse";
|
|
1678
|
+
value: MsgUnhideContentResponseAmino;
|
|
1679
|
+
}
|
|
1594
1680
|
/**
|
|
1595
1681
|
* MsgUpdateParams is the Msg/UpdateParams request type.
|
|
1596
1682
|
* @name MsgUpdateParams
|
|
@@ -2659,3 +2745,41 @@ export declare const MsgMakeCollectionPermanentResponse: {
|
|
|
2659
2745
|
toProto(message: MsgMakeCollectionPermanentResponse): Uint8Array;
|
|
2660
2746
|
toProtoMsg(message: MsgMakeCollectionPermanentResponse): MsgMakeCollectionPermanentResponseProtoMsg;
|
|
2661
2747
|
};
|
|
2748
|
+
/**
|
|
2749
|
+
* MsgUnhideContent defines the MsgUnhideContent message.
|
|
2750
|
+
* @name MsgUnhideContent
|
|
2751
|
+
* @package sparkdream.collect.v1
|
|
2752
|
+
* @see proto type: sparkdream.collect.v1.MsgUnhideContent
|
|
2753
|
+
*/
|
|
2754
|
+
export declare const MsgUnhideContent: {
|
|
2755
|
+
typeUrl: string;
|
|
2756
|
+
aminoType: string;
|
|
2757
|
+
encode(message: MsgUnhideContent, writer?: BinaryWriter): BinaryWriter;
|
|
2758
|
+
decode(input: BinaryReader | Uint8Array, length?: number): MsgUnhideContent;
|
|
2759
|
+
fromPartial(object: DeepPartial<MsgUnhideContent>): MsgUnhideContent;
|
|
2760
|
+
fromAmino(object: MsgUnhideContentAmino): MsgUnhideContent;
|
|
2761
|
+
toAmino(message: MsgUnhideContent): MsgUnhideContentAmino;
|
|
2762
|
+
fromAminoMsg(object: MsgUnhideContentAminoMsg): MsgUnhideContent;
|
|
2763
|
+
toAminoMsg(message: MsgUnhideContent): MsgUnhideContentAminoMsg;
|
|
2764
|
+
fromProtoMsg(message: MsgUnhideContentProtoMsg): MsgUnhideContent;
|
|
2765
|
+
toProto(message: MsgUnhideContent): Uint8Array;
|
|
2766
|
+
toProtoMsg(message: MsgUnhideContent): MsgUnhideContentProtoMsg;
|
|
2767
|
+
};
|
|
2768
|
+
/**
|
|
2769
|
+
* MsgUnhideContentResponse defines the MsgUnhideContentResponse message.
|
|
2770
|
+
* @name MsgUnhideContentResponse
|
|
2771
|
+
* @package sparkdream.collect.v1
|
|
2772
|
+
* @see proto type: sparkdream.collect.v1.MsgUnhideContentResponse
|
|
2773
|
+
*/
|
|
2774
|
+
export declare const MsgUnhideContentResponse: {
|
|
2775
|
+
typeUrl: string;
|
|
2776
|
+
encode(_: MsgUnhideContentResponse, writer?: BinaryWriter): BinaryWriter;
|
|
2777
|
+
decode(input: BinaryReader | Uint8Array, length?: number): MsgUnhideContentResponse;
|
|
2778
|
+
fromPartial(_: DeepPartial<MsgUnhideContentResponse>): MsgUnhideContentResponse;
|
|
2779
|
+
fromAmino(_: MsgUnhideContentResponseAmino): MsgUnhideContentResponse;
|
|
2780
|
+
toAmino(_: MsgUnhideContentResponse): MsgUnhideContentResponseAmino;
|
|
2781
|
+
fromAminoMsg(object: MsgUnhideContentResponseAminoMsg): MsgUnhideContentResponse;
|
|
2782
|
+
fromProtoMsg(message: MsgUnhideContentResponseProtoMsg): MsgUnhideContentResponse;
|
|
2783
|
+
toProto(message: MsgUnhideContentResponse): Uint8Array;
|
|
2784
|
+
toProtoMsg(message: MsgUnhideContentResponse): MsgUnhideContentResponseProtoMsg;
|
|
2785
|
+
};
|
|
@@ -1,12 +1,73 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
4
|
-
exports.MsgMakeCollectionPermanentResponse = exports.MsgMakeCollectionPermanent = exports.MsgUnpinCollectionResponse = exports.MsgUnpinCollection = exports.MsgPinCollectionResponse = exports.MsgPinCollection = exports.MsgSetSeekingEndorsementResponse = exports.MsgSetSeekingEndorsement = void 0;
|
|
3
|
+
exports.MsgAppealHideResponse = exports.MsgAppealHide = exports.MsgHideContentResponse = exports.MsgHideContent = exports.MsgFlagContentResponse = exports.MsgFlagContent = exports.MsgDownvoteContentResponse = exports.MsgDownvoteContent = exports.MsgUpvoteContentResponse = exports.MsgUpvoteContent = exports.MsgUpdateOperationalParamsResponse = exports.MsgUpdateOperationalParams = exports.MsgSponsorCollectionResponse = exports.MsgSponsorCollection = exports.MsgCancelSponsorshipRequestResponse = exports.MsgCancelSponsorshipRequest = exports.MsgRequestSponsorshipResponse = exports.MsgRequestSponsorship = exports.MsgChallengeReviewResponse = exports.MsgChallengeReview = exports.MsgRateCollectionResponse = exports.MsgRateCollection = exports.MsgUpdateCollaboratorRoleResponse = exports.MsgUpdateCollaboratorRole = exports.MsgRemoveCollaboratorResponse = exports.MsgRemoveCollaborator = exports.MsgAddCollaboratorResponse = exports.MsgAddCollaborator = exports.MsgReorderItemResponse = exports.MsgReorderItem = exports.MsgRemoveItemsResponse = exports.MsgRemoveItems = exports.MsgRemoveItemResponse = exports.MsgRemoveItem = exports.MsgUpdateItemResponse = exports.MsgUpdateItem = exports.MsgAddItemsResponse = exports.MsgAddItems = exports.MsgAddItemResponse = exports.MsgAddItem = exports.MsgDeleteCollectionResponse = exports.MsgDeleteCollection = exports.MsgUpdateCollectionResponse = exports.MsgUpdateCollection = exports.MsgCreateCollectionResponse = exports.MsgCreateCollection = exports.MsgUpdateParamsResponse = exports.MsgUpdateParams = exports.ModerationAuthorityAmino = exports.ModerationAuthority = void 0;
|
|
4
|
+
exports.MsgUnhideContentResponse = exports.MsgUnhideContent = exports.MsgMakeCollectionPermanentResponse = exports.MsgMakeCollectionPermanent = exports.MsgUnpinCollectionResponse = exports.MsgUnpinCollection = exports.MsgPinCollectionResponse = exports.MsgPinCollection = exports.MsgSetSeekingEndorsementResponse = exports.MsgSetSeekingEndorsement = exports.MsgEndorseCollectionResponse = exports.MsgEndorseCollection = void 0;
|
|
5
|
+
exports.moderationAuthorityFromJSON = moderationAuthorityFromJSON;
|
|
6
|
+
exports.moderationAuthorityToJSON = moderationAuthorityToJSON;
|
|
5
7
|
//@ts-nocheck
|
|
6
8
|
const params_1 = require("./params");
|
|
7
9
|
const types_1 = require("./types");
|
|
8
10
|
const binary_1 = require("../../../binary");
|
|
9
11
|
const helpers_1 = require("../../../helpers");
|
|
12
|
+
/**
|
|
13
|
+
* ModerationAuthority selects which authority the caller of MsgHideContent
|
|
14
|
+
* is invoking. Mirrors x/forum's enum: it disambiguates the case where an
|
|
15
|
+
* account is BOTH a bonded content sentinel and a Commons Operations
|
|
16
|
+
* Committee member — without it the handler would have to silently pick one
|
|
17
|
+
* path. See the authority-selection notes in docs/x-collect-spec.md
|
|
18
|
+
* (MsgHideContent).
|
|
19
|
+
*/
|
|
20
|
+
var ModerationAuthority;
|
|
21
|
+
(function (ModerationAuthority) {
|
|
22
|
+
/**
|
|
23
|
+
* MODERATION_AUTHORITY_AUTO - AUTO (default, back-compat): sentinel path whenever the account is an
|
|
24
|
+
* eligible bonded sentinel, else the council path if council-authorized,
|
|
25
|
+
* else error. Prefers the accountable (bonded) sentinel path.
|
|
26
|
+
*/
|
|
27
|
+
ModerationAuthority[ModerationAuthority["MODERATION_AUTHORITY_AUTO"] = 0] = "MODERATION_AUTHORITY_AUTO";
|
|
28
|
+
/**
|
|
29
|
+
* MODERATION_AUTHORITY_SENTINEL - SENTINEL: force the sentinel path; error if not an eligible sentinel
|
|
30
|
+
* (no silent fallback to council).
|
|
31
|
+
*/
|
|
32
|
+
ModerationAuthority[ModerationAuthority["MODERATION_AUTHORITY_SENTINEL"] = 1] = "MODERATION_AUTHORITY_SENTINEL";
|
|
33
|
+
/**
|
|
34
|
+
* MODERATION_AUTHORITY_COUNCIL - COUNCIL: force the council (gov-authority) path; error if not
|
|
35
|
+
* council-authorized. The deliberate "act as committee" choice.
|
|
36
|
+
*/
|
|
37
|
+
ModerationAuthority[ModerationAuthority["MODERATION_AUTHORITY_COUNCIL"] = 2] = "MODERATION_AUTHORITY_COUNCIL";
|
|
38
|
+
ModerationAuthority[ModerationAuthority["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
|
|
39
|
+
})(ModerationAuthority || (exports.ModerationAuthority = ModerationAuthority = {}));
|
|
40
|
+
exports.ModerationAuthorityAmino = ModerationAuthority;
|
|
41
|
+
function moderationAuthorityFromJSON(object) {
|
|
42
|
+
switch (object) {
|
|
43
|
+
case 0:
|
|
44
|
+
case "MODERATION_AUTHORITY_AUTO":
|
|
45
|
+
return ModerationAuthority.MODERATION_AUTHORITY_AUTO;
|
|
46
|
+
case 1:
|
|
47
|
+
case "MODERATION_AUTHORITY_SENTINEL":
|
|
48
|
+
return ModerationAuthority.MODERATION_AUTHORITY_SENTINEL;
|
|
49
|
+
case 2:
|
|
50
|
+
case "MODERATION_AUTHORITY_COUNCIL":
|
|
51
|
+
return ModerationAuthority.MODERATION_AUTHORITY_COUNCIL;
|
|
52
|
+
case -1:
|
|
53
|
+
case "UNRECOGNIZED":
|
|
54
|
+
default:
|
|
55
|
+
return ModerationAuthority.UNRECOGNIZED;
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
function moderationAuthorityToJSON(object) {
|
|
59
|
+
switch (object) {
|
|
60
|
+
case ModerationAuthority.MODERATION_AUTHORITY_AUTO:
|
|
61
|
+
return "MODERATION_AUTHORITY_AUTO";
|
|
62
|
+
case ModerationAuthority.MODERATION_AUTHORITY_SENTINEL:
|
|
63
|
+
return "MODERATION_AUTHORITY_SENTINEL";
|
|
64
|
+
case ModerationAuthority.MODERATION_AUTHORITY_COUNCIL:
|
|
65
|
+
return "MODERATION_AUTHORITY_COUNCIL";
|
|
66
|
+
case ModerationAuthority.UNRECOGNIZED:
|
|
67
|
+
default:
|
|
68
|
+
return "UNRECOGNIZED";
|
|
69
|
+
}
|
|
70
|
+
}
|
|
10
71
|
function createBaseMsgUpdateParams() {
|
|
11
72
|
return {
|
|
12
73
|
authority: "",
|
|
@@ -3912,7 +3973,8 @@ function createBaseMsgHideContent() {
|
|
|
3912
3973
|
targetId: BigInt(0),
|
|
3913
3974
|
targetType: 0,
|
|
3914
3975
|
reasonCode: 0,
|
|
3915
|
-
reasonText: ""
|
|
3976
|
+
reasonText: "",
|
|
3977
|
+
authority: 0
|
|
3916
3978
|
};
|
|
3917
3979
|
}
|
|
3918
3980
|
/**
|
|
@@ -3940,6 +4002,9 @@ exports.MsgHideContent = {
|
|
|
3940
4002
|
if (message.reasonText !== "") {
|
|
3941
4003
|
writer.uint32(42).string(message.reasonText);
|
|
3942
4004
|
}
|
|
4005
|
+
if (message.authority !== 0) {
|
|
4006
|
+
writer.uint32(48).int32(message.authority);
|
|
4007
|
+
}
|
|
3943
4008
|
return writer;
|
|
3944
4009
|
},
|
|
3945
4010
|
decode(input, length) {
|
|
@@ -3964,6 +4029,9 @@ exports.MsgHideContent = {
|
|
|
3964
4029
|
case 5:
|
|
3965
4030
|
message.reasonText = reader.string();
|
|
3966
4031
|
break;
|
|
4032
|
+
case 6:
|
|
4033
|
+
message.authority = reader.int32();
|
|
4034
|
+
break;
|
|
3967
4035
|
default:
|
|
3968
4036
|
reader.skipType(tag & 7);
|
|
3969
4037
|
break;
|
|
@@ -3978,6 +4046,7 @@ exports.MsgHideContent = {
|
|
|
3978
4046
|
message.targetType = object.targetType ?? 0;
|
|
3979
4047
|
message.reasonCode = object.reasonCode ?? 0;
|
|
3980
4048
|
message.reasonText = object.reasonText ?? "";
|
|
4049
|
+
message.authority = object.authority ?? 0;
|
|
3981
4050
|
return message;
|
|
3982
4051
|
},
|
|
3983
4052
|
fromAmino(object) {
|
|
@@ -3997,6 +4066,9 @@ exports.MsgHideContent = {
|
|
|
3997
4066
|
if (object.reason_text !== undefined && object.reason_text !== null) {
|
|
3998
4067
|
message.reasonText = object.reason_text;
|
|
3999
4068
|
}
|
|
4069
|
+
if (object.authority !== undefined && object.authority !== null) {
|
|
4070
|
+
message.authority = object.authority;
|
|
4071
|
+
}
|
|
4000
4072
|
return message;
|
|
4001
4073
|
},
|
|
4002
4074
|
toAmino(message) {
|
|
@@ -4006,6 +4078,7 @@ exports.MsgHideContent = {
|
|
|
4006
4078
|
obj.target_type = message.targetType === 0 ? undefined : message.targetType;
|
|
4007
4079
|
obj.reason_code = message.reasonCode === 0 ? undefined : message.reasonCode;
|
|
4008
4080
|
obj.reason_text = message.reasonText === "" ? undefined : message.reasonText;
|
|
4081
|
+
obj.authority = message.authority === 0 ? undefined : message.authority;
|
|
4009
4082
|
return obj;
|
|
4010
4083
|
},
|
|
4011
4084
|
fromAminoMsg(object) {
|
|
@@ -4978,3 +5051,147 @@ exports.MsgMakeCollectionPermanentResponse = {
|
|
|
4978
5051
|
};
|
|
4979
5052
|
}
|
|
4980
5053
|
};
|
|
5054
|
+
function createBaseMsgUnhideContent() {
|
|
5055
|
+
return {
|
|
5056
|
+
creator: "",
|
|
5057
|
+
hideRecordId: BigInt(0)
|
|
5058
|
+
};
|
|
5059
|
+
}
|
|
5060
|
+
/**
|
|
5061
|
+
* MsgUnhideContent defines the MsgUnhideContent message.
|
|
5062
|
+
* @name MsgUnhideContent
|
|
5063
|
+
* @package sparkdream.collect.v1
|
|
5064
|
+
* @see proto type: sparkdream.collect.v1.MsgUnhideContent
|
|
5065
|
+
*/
|
|
5066
|
+
exports.MsgUnhideContent = {
|
|
5067
|
+
typeUrl: "/sparkdream.collect.v1.MsgUnhideContent",
|
|
5068
|
+
aminoType: "sparkdream/x/collect/MsgUnhideContent",
|
|
5069
|
+
encode(message, writer = binary_1.BinaryWriter.create()) {
|
|
5070
|
+
if (message.creator !== "") {
|
|
5071
|
+
writer.uint32(10).string(message.creator);
|
|
5072
|
+
}
|
|
5073
|
+
if (message.hideRecordId !== BigInt(0)) {
|
|
5074
|
+
writer.uint32(16).uint64(message.hideRecordId);
|
|
5075
|
+
}
|
|
5076
|
+
return writer;
|
|
5077
|
+
},
|
|
5078
|
+
decode(input, length) {
|
|
5079
|
+
const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input);
|
|
5080
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
5081
|
+
const message = createBaseMsgUnhideContent();
|
|
5082
|
+
while (reader.pos < end) {
|
|
5083
|
+
const tag = reader.uint32();
|
|
5084
|
+
switch (tag >>> 3) {
|
|
5085
|
+
case 1:
|
|
5086
|
+
message.creator = reader.string();
|
|
5087
|
+
break;
|
|
5088
|
+
case 2:
|
|
5089
|
+
message.hideRecordId = reader.uint64();
|
|
5090
|
+
break;
|
|
5091
|
+
default:
|
|
5092
|
+
reader.skipType(tag & 7);
|
|
5093
|
+
break;
|
|
5094
|
+
}
|
|
5095
|
+
}
|
|
5096
|
+
return message;
|
|
5097
|
+
},
|
|
5098
|
+
fromPartial(object) {
|
|
5099
|
+
const message = createBaseMsgUnhideContent();
|
|
5100
|
+
message.creator = object.creator ?? "";
|
|
5101
|
+
message.hideRecordId = object.hideRecordId !== undefined && object.hideRecordId !== null ? BigInt(object.hideRecordId.toString()) : BigInt(0);
|
|
5102
|
+
return message;
|
|
5103
|
+
},
|
|
5104
|
+
fromAmino(object) {
|
|
5105
|
+
const message = createBaseMsgUnhideContent();
|
|
5106
|
+
if (object.creator !== undefined && object.creator !== null) {
|
|
5107
|
+
message.creator = object.creator;
|
|
5108
|
+
}
|
|
5109
|
+
if (object.hide_record_id !== undefined && object.hide_record_id !== null) {
|
|
5110
|
+
message.hideRecordId = BigInt(object.hide_record_id);
|
|
5111
|
+
}
|
|
5112
|
+
return message;
|
|
5113
|
+
},
|
|
5114
|
+
toAmino(message) {
|
|
5115
|
+
const obj = {};
|
|
5116
|
+
obj.creator = message.creator === "" ? undefined : message.creator;
|
|
5117
|
+
obj.hide_record_id = message.hideRecordId !== BigInt(0) ? message.hideRecordId?.toString() : undefined;
|
|
5118
|
+
return obj;
|
|
5119
|
+
},
|
|
5120
|
+
fromAminoMsg(object) {
|
|
5121
|
+
return exports.MsgUnhideContent.fromAmino(object.value);
|
|
5122
|
+
},
|
|
5123
|
+
toAminoMsg(message) {
|
|
5124
|
+
return {
|
|
5125
|
+
type: "sparkdream/x/collect/MsgUnhideContent",
|
|
5126
|
+
value: exports.MsgUnhideContent.toAmino(message)
|
|
5127
|
+
};
|
|
5128
|
+
},
|
|
5129
|
+
fromProtoMsg(message) {
|
|
5130
|
+
return exports.MsgUnhideContent.decode(message.value);
|
|
5131
|
+
},
|
|
5132
|
+
toProto(message) {
|
|
5133
|
+
return exports.MsgUnhideContent.encode(message).finish();
|
|
5134
|
+
},
|
|
5135
|
+
toProtoMsg(message) {
|
|
5136
|
+
return {
|
|
5137
|
+
typeUrl: "/sparkdream.collect.v1.MsgUnhideContent",
|
|
5138
|
+
value: exports.MsgUnhideContent.encode(message).finish()
|
|
5139
|
+
};
|
|
5140
|
+
}
|
|
5141
|
+
};
|
|
5142
|
+
function createBaseMsgUnhideContentResponse() {
|
|
5143
|
+
return {};
|
|
5144
|
+
}
|
|
5145
|
+
/**
|
|
5146
|
+
* MsgUnhideContentResponse defines the MsgUnhideContentResponse message.
|
|
5147
|
+
* @name MsgUnhideContentResponse
|
|
5148
|
+
* @package sparkdream.collect.v1
|
|
5149
|
+
* @see proto type: sparkdream.collect.v1.MsgUnhideContentResponse
|
|
5150
|
+
*/
|
|
5151
|
+
exports.MsgUnhideContentResponse = {
|
|
5152
|
+
typeUrl: "/sparkdream.collect.v1.MsgUnhideContentResponse",
|
|
5153
|
+
encode(_, writer = binary_1.BinaryWriter.create()) {
|
|
5154
|
+
return writer;
|
|
5155
|
+
},
|
|
5156
|
+
decode(input, length) {
|
|
5157
|
+
const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input);
|
|
5158
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
5159
|
+
const message = createBaseMsgUnhideContentResponse();
|
|
5160
|
+
while (reader.pos < end) {
|
|
5161
|
+
const tag = reader.uint32();
|
|
5162
|
+
switch (tag >>> 3) {
|
|
5163
|
+
default:
|
|
5164
|
+
reader.skipType(tag & 7);
|
|
5165
|
+
break;
|
|
5166
|
+
}
|
|
5167
|
+
}
|
|
5168
|
+
return message;
|
|
5169
|
+
},
|
|
5170
|
+
fromPartial(_) {
|
|
5171
|
+
const message = createBaseMsgUnhideContentResponse();
|
|
5172
|
+
return message;
|
|
5173
|
+
},
|
|
5174
|
+
fromAmino(_) {
|
|
5175
|
+
const message = createBaseMsgUnhideContentResponse();
|
|
5176
|
+
return message;
|
|
5177
|
+
},
|
|
5178
|
+
toAmino(_) {
|
|
5179
|
+
const obj = {};
|
|
5180
|
+
return obj;
|
|
5181
|
+
},
|
|
5182
|
+
fromAminoMsg(object) {
|
|
5183
|
+
return exports.MsgUnhideContentResponse.fromAmino(object.value);
|
|
5184
|
+
},
|
|
5185
|
+
fromProtoMsg(message) {
|
|
5186
|
+
return exports.MsgUnhideContentResponse.decode(message.value);
|
|
5187
|
+
},
|
|
5188
|
+
toProto(message) {
|
|
5189
|
+
return exports.MsgUnhideContentResponse.encode(message).finish();
|
|
5190
|
+
},
|
|
5191
|
+
toProtoMsg(message) {
|
|
5192
|
+
return {
|
|
5193
|
+
typeUrl: "/sparkdream.collect.v1.MsgUnhideContentResponse",
|
|
5194
|
+
value: exports.MsgUnhideContentResponse.encode(message).finish()
|
|
5195
|
+
};
|
|
5196
|
+
}
|
|
5197
|
+
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { TelescopeGeneratedType } from "../../../types";
|
|
2
2
|
import { Registry } from "@cosmjs/proto-signing";
|
|
3
|
-
import { MsgUpdateParams, MsgCreateCollection, MsgUpdateCollection, MsgDeleteCollection, MsgAddItem, MsgAddItems, MsgUpdateItem, MsgRemoveItem, MsgRemoveItems, MsgReorderItem, MsgAddCollaborator, MsgRemoveCollaborator, MsgUpdateCollaboratorRole, MsgRateCollection, MsgChallengeReview, MsgRequestSponsorship, MsgCancelSponsorshipRequest, MsgSponsorCollection, MsgUpdateOperationalParams, MsgUpvoteContent, MsgDownvoteContent, MsgFlagContent, MsgHideContent, MsgAppealHide, MsgEndorseCollection, MsgSetSeekingEndorsement, MsgPinCollection, MsgUnpinCollection, MsgMakeCollectionPermanent } from "./tx";
|
|
3
|
+
import { MsgUpdateParams, MsgCreateCollection, MsgUpdateCollection, MsgDeleteCollection, MsgAddItem, MsgAddItems, MsgUpdateItem, MsgRemoveItem, MsgRemoveItems, MsgReorderItem, MsgAddCollaborator, MsgRemoveCollaborator, MsgUpdateCollaboratorRole, MsgRateCollection, MsgChallengeReview, MsgRequestSponsorship, MsgCancelSponsorshipRequest, MsgSponsorCollection, MsgUpdateOperationalParams, MsgUpvoteContent, MsgDownvoteContent, MsgFlagContent, MsgHideContent, MsgAppealHide, MsgEndorseCollection, MsgSetSeekingEndorsement, MsgPinCollection, MsgUnpinCollection, MsgMakeCollectionPermanent, MsgUnhideContent } from "./tx";
|
|
4
4
|
export declare const registry: ReadonlyArray<[string, TelescopeGeneratedType<any, any, any>]>;
|
|
5
5
|
export declare const load: (protoRegistry: Registry) => void;
|
|
6
6
|
export declare const MessageComposer: {
|
|
@@ -121,6 +121,10 @@ export declare const MessageComposer: {
|
|
|
121
121
|
typeUrl: string;
|
|
122
122
|
value: Uint8Array<ArrayBufferLike>;
|
|
123
123
|
};
|
|
124
|
+
unhideContent(value: MsgUnhideContent): {
|
|
125
|
+
typeUrl: string;
|
|
126
|
+
value: Uint8Array<ArrayBufferLike>;
|
|
127
|
+
};
|
|
124
128
|
};
|
|
125
129
|
withTypeUrl: {
|
|
126
130
|
updateParams(value: MsgUpdateParams): {
|
|
@@ -239,6 +243,10 @@ export declare const MessageComposer: {
|
|
|
239
243
|
typeUrl: string;
|
|
240
244
|
value: MsgMakeCollectionPermanent;
|
|
241
245
|
};
|
|
246
|
+
unhideContent(value: MsgUnhideContent): {
|
|
247
|
+
typeUrl: string;
|
|
248
|
+
value: MsgUnhideContent;
|
|
249
|
+
};
|
|
242
250
|
};
|
|
243
251
|
fromPartial: {
|
|
244
252
|
updateParams(value: MsgUpdateParams): {
|
|
@@ -357,5 +365,9 @@ export declare const MessageComposer: {
|
|
|
357
365
|
typeUrl: string;
|
|
358
366
|
value: MsgMakeCollectionPermanent;
|
|
359
367
|
};
|
|
368
|
+
unhideContent(value: MsgUnhideContent): {
|
|
369
|
+
typeUrl: string;
|
|
370
|
+
value: MsgUnhideContent;
|
|
371
|
+
};
|
|
360
372
|
};
|
|
361
373
|
};
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.MessageComposer = exports.load = exports.registry = void 0;
|
|
4
4
|
const tx_1 = require("./tx");
|
|
5
|
-
exports.registry = [["/sparkdream.collect.v1.MsgUpdateParams", tx_1.MsgUpdateParams], ["/sparkdream.collect.v1.MsgCreateCollection", tx_1.MsgCreateCollection], ["/sparkdream.collect.v1.MsgUpdateCollection", tx_1.MsgUpdateCollection], ["/sparkdream.collect.v1.MsgDeleteCollection", tx_1.MsgDeleteCollection], ["/sparkdream.collect.v1.MsgAddItem", tx_1.MsgAddItem], ["/sparkdream.collect.v1.MsgAddItems", tx_1.MsgAddItems], ["/sparkdream.collect.v1.MsgUpdateItem", tx_1.MsgUpdateItem], ["/sparkdream.collect.v1.MsgRemoveItem", tx_1.MsgRemoveItem], ["/sparkdream.collect.v1.MsgRemoveItems", tx_1.MsgRemoveItems], ["/sparkdream.collect.v1.MsgReorderItem", tx_1.MsgReorderItem], ["/sparkdream.collect.v1.MsgAddCollaborator", tx_1.MsgAddCollaborator], ["/sparkdream.collect.v1.MsgRemoveCollaborator", tx_1.MsgRemoveCollaborator], ["/sparkdream.collect.v1.MsgUpdateCollaboratorRole", tx_1.MsgUpdateCollaboratorRole], ["/sparkdream.collect.v1.MsgRateCollection", tx_1.MsgRateCollection], ["/sparkdream.collect.v1.MsgChallengeReview", tx_1.MsgChallengeReview], ["/sparkdream.collect.v1.MsgRequestSponsorship", tx_1.MsgRequestSponsorship], ["/sparkdream.collect.v1.MsgCancelSponsorshipRequest", tx_1.MsgCancelSponsorshipRequest], ["/sparkdream.collect.v1.MsgSponsorCollection", tx_1.MsgSponsorCollection], ["/sparkdream.collect.v1.MsgUpdateOperationalParams", tx_1.MsgUpdateOperationalParams], ["/sparkdream.collect.v1.MsgUpvoteContent", tx_1.MsgUpvoteContent], ["/sparkdream.collect.v1.MsgDownvoteContent", tx_1.MsgDownvoteContent], ["/sparkdream.collect.v1.MsgFlagContent", tx_1.MsgFlagContent], ["/sparkdream.collect.v1.MsgHideContent", tx_1.MsgHideContent], ["/sparkdream.collect.v1.MsgAppealHide", tx_1.MsgAppealHide], ["/sparkdream.collect.v1.MsgEndorseCollection", tx_1.MsgEndorseCollection], ["/sparkdream.collect.v1.MsgSetSeekingEndorsement", tx_1.MsgSetSeekingEndorsement], ["/sparkdream.collect.v1.MsgPinCollection", tx_1.MsgPinCollection], ["/sparkdream.collect.v1.MsgUnpinCollection", tx_1.MsgUnpinCollection], ["/sparkdream.collect.v1.MsgMakeCollectionPermanent", tx_1.MsgMakeCollectionPermanent]];
|
|
5
|
+
exports.registry = [["/sparkdream.collect.v1.MsgUpdateParams", tx_1.MsgUpdateParams], ["/sparkdream.collect.v1.MsgCreateCollection", tx_1.MsgCreateCollection], ["/sparkdream.collect.v1.MsgUpdateCollection", tx_1.MsgUpdateCollection], ["/sparkdream.collect.v1.MsgDeleteCollection", tx_1.MsgDeleteCollection], ["/sparkdream.collect.v1.MsgAddItem", tx_1.MsgAddItem], ["/sparkdream.collect.v1.MsgAddItems", tx_1.MsgAddItems], ["/sparkdream.collect.v1.MsgUpdateItem", tx_1.MsgUpdateItem], ["/sparkdream.collect.v1.MsgRemoveItem", tx_1.MsgRemoveItem], ["/sparkdream.collect.v1.MsgRemoveItems", tx_1.MsgRemoveItems], ["/sparkdream.collect.v1.MsgReorderItem", tx_1.MsgReorderItem], ["/sparkdream.collect.v1.MsgAddCollaborator", tx_1.MsgAddCollaborator], ["/sparkdream.collect.v1.MsgRemoveCollaborator", tx_1.MsgRemoveCollaborator], ["/sparkdream.collect.v1.MsgUpdateCollaboratorRole", tx_1.MsgUpdateCollaboratorRole], ["/sparkdream.collect.v1.MsgRateCollection", tx_1.MsgRateCollection], ["/sparkdream.collect.v1.MsgChallengeReview", tx_1.MsgChallengeReview], ["/sparkdream.collect.v1.MsgRequestSponsorship", tx_1.MsgRequestSponsorship], ["/sparkdream.collect.v1.MsgCancelSponsorshipRequest", tx_1.MsgCancelSponsorshipRequest], ["/sparkdream.collect.v1.MsgSponsorCollection", tx_1.MsgSponsorCollection], ["/sparkdream.collect.v1.MsgUpdateOperationalParams", tx_1.MsgUpdateOperationalParams], ["/sparkdream.collect.v1.MsgUpvoteContent", tx_1.MsgUpvoteContent], ["/sparkdream.collect.v1.MsgDownvoteContent", tx_1.MsgDownvoteContent], ["/sparkdream.collect.v1.MsgFlagContent", tx_1.MsgFlagContent], ["/sparkdream.collect.v1.MsgHideContent", tx_1.MsgHideContent], ["/sparkdream.collect.v1.MsgAppealHide", tx_1.MsgAppealHide], ["/sparkdream.collect.v1.MsgEndorseCollection", tx_1.MsgEndorseCollection], ["/sparkdream.collect.v1.MsgSetSeekingEndorsement", tx_1.MsgSetSeekingEndorsement], ["/sparkdream.collect.v1.MsgPinCollection", tx_1.MsgPinCollection], ["/sparkdream.collect.v1.MsgUnpinCollection", tx_1.MsgUnpinCollection], ["/sparkdream.collect.v1.MsgMakeCollectionPermanent", tx_1.MsgMakeCollectionPermanent], ["/sparkdream.collect.v1.MsgUnhideContent", tx_1.MsgUnhideContent]];
|
|
6
6
|
const load = (protoRegistry) => {
|
|
7
7
|
exports.registry.forEach(([typeUrl, mod]) => {
|
|
8
8
|
protoRegistry.register(typeUrl, mod);
|
|
@@ -184,6 +184,12 @@ exports.MessageComposer = {
|
|
|
184
184
|
typeUrl: "/sparkdream.collect.v1.MsgMakeCollectionPermanent",
|
|
185
185
|
value: tx_1.MsgMakeCollectionPermanent.encode(value).finish()
|
|
186
186
|
};
|
|
187
|
+
},
|
|
188
|
+
unhideContent(value) {
|
|
189
|
+
return {
|
|
190
|
+
typeUrl: "/sparkdream.collect.v1.MsgUnhideContent",
|
|
191
|
+
value: tx_1.MsgUnhideContent.encode(value).finish()
|
|
192
|
+
};
|
|
187
193
|
}
|
|
188
194
|
},
|
|
189
195
|
withTypeUrl: {
|
|
@@ -360,6 +366,12 @@ exports.MessageComposer = {
|
|
|
360
366
|
typeUrl: "/sparkdream.collect.v1.MsgMakeCollectionPermanent",
|
|
361
367
|
value
|
|
362
368
|
};
|
|
369
|
+
},
|
|
370
|
+
unhideContent(value) {
|
|
371
|
+
return {
|
|
372
|
+
typeUrl: "/sparkdream.collect.v1.MsgUnhideContent",
|
|
373
|
+
value
|
|
374
|
+
};
|
|
363
375
|
}
|
|
364
376
|
},
|
|
365
377
|
fromPartial: {
|
|
@@ -536,6 +548,12 @@ exports.MessageComposer = {
|
|
|
536
548
|
typeUrl: "/sparkdream.collect.v1.MsgMakeCollectionPermanent",
|
|
537
549
|
value: tx_1.MsgMakeCollectionPermanent.fromPartial(value)
|
|
538
550
|
};
|
|
551
|
+
},
|
|
552
|
+
unhideContent(value) {
|
|
553
|
+
return {
|
|
554
|
+
typeUrl: "/sparkdream.collect.v1.MsgUnhideContent",
|
|
555
|
+
value: tx_1.MsgUnhideContent.fromPartial(value)
|
|
556
|
+
};
|
|
539
557
|
}
|
|
540
558
|
}
|
|
541
559
|
};
|