@sparkdreamnft/sparkdreamjs 0.0.24 → 0.0.26
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/esm/sparkdream/forum/v1/genesis.js +110 -1
- package/esm/sparkdream/forum/v1/params.js +74 -2
- package/esm/sparkdream/forum/v1/sentinel_activity.js +160 -1
- package/esm/sparkdream/forum/v1/thread_metadata.js +37 -1
- package/esm/sparkdream/forum/v1/tx.js +156 -0
- 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/params.js +24 -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/package.json +1 -1
- package/sparkdream/bundle.d.ts +100 -0
- package/sparkdream/forum/v1/genesis.d.ts +65 -0
- package/sparkdream/forum/v1/genesis.js +111 -2
- package/sparkdream/forum/v1/params.d.ts +78 -0
- package/sparkdream/forum/v1/params.js +74 -2
- package/sparkdream/forum/v1/sentinel_activity.d.ts +125 -0
- package/sparkdream/forum/v1/sentinel_activity.js +161 -2
- package/sparkdream/forum/v1/thread_metadata.d.ts +48 -0
- package/sparkdream/forum/v1/thread_metadata.js +37 -1
- package/sparkdream/forum/v1/tx.d.ts +92 -6
- package/sparkdream/forum/v1/tx.js +157 -1
- 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/params.d.ts +24 -0
- package/sparkdream/rep/v1/params.js +24 -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/sparkdream/bundle.d.ts
CHANGED
|
@@ -7707,6 +7707,10 @@ export declare namespace sparkdream {
|
|
|
7707
7707
|
typeUrl: string;
|
|
7708
7708
|
value: Uint8Array<ArrayBufferLike>;
|
|
7709
7709
|
};
|
|
7710
|
+
setThreadProposalsLock(value: _229.MsgSetThreadProposalsLock): {
|
|
7711
|
+
typeUrl: string;
|
|
7712
|
+
value: Uint8Array<ArrayBufferLike>;
|
|
7713
|
+
};
|
|
7710
7714
|
};
|
|
7711
7715
|
withTypeUrl: {
|
|
7712
7716
|
updateParams(value: _229.MsgUpdateParams): {
|
|
@@ -7865,6 +7869,10 @@ export declare namespace sparkdream {
|
|
|
7865
7869
|
typeUrl: string;
|
|
7866
7870
|
value: _229.MsgSetModerationPaused;
|
|
7867
7871
|
};
|
|
7872
|
+
setThreadProposalsLock(value: _229.MsgSetThreadProposalsLock): {
|
|
7873
|
+
typeUrl: string;
|
|
7874
|
+
value: _229.MsgSetThreadProposalsLock;
|
|
7875
|
+
};
|
|
7868
7876
|
};
|
|
7869
7877
|
fromPartial: {
|
|
7870
7878
|
updateParams(value: _229.MsgUpdateParams): {
|
|
@@ -8023,6 +8031,10 @@ export declare namespace sparkdream {
|
|
|
8023
8031
|
typeUrl: string;
|
|
8024
8032
|
value: _229.MsgSetModerationPaused;
|
|
8025
8033
|
};
|
|
8034
|
+
setThreadProposalsLock(value: _229.MsgSetThreadProposalsLock): {
|
|
8035
|
+
typeUrl: string;
|
|
8036
|
+
value: _229.MsgSetThreadProposalsLock;
|
|
8037
|
+
};
|
|
8026
8038
|
};
|
|
8027
8039
|
};
|
|
8028
8040
|
AminoConverter: {
|
|
@@ -9323,6 +9335,32 @@ export declare namespace sparkdream {
|
|
|
9323
9335
|
toProto(message: _229.MsgSetModerationPausedResponse): Uint8Array;
|
|
9324
9336
|
toProtoMsg(message: _229.MsgSetModerationPausedResponse): _229.MsgSetModerationPausedResponseProtoMsg;
|
|
9325
9337
|
};
|
|
9338
|
+
MsgSetThreadProposalsLock: {
|
|
9339
|
+
typeUrl: string;
|
|
9340
|
+
aminoType: string;
|
|
9341
|
+
encode(message: _229.MsgSetThreadProposalsLock, writer?: import("..").BinaryWriter): import("..").BinaryWriter;
|
|
9342
|
+
decode(input: import("..").BinaryReader | Uint8Array, length?: number): _229.MsgSetThreadProposalsLock;
|
|
9343
|
+
fromPartial(object: import("../helpers").DeepPartial<_229.MsgSetThreadProposalsLock>): _229.MsgSetThreadProposalsLock;
|
|
9344
|
+
fromAmino(object: _229.MsgSetThreadProposalsLockAmino): _229.MsgSetThreadProposalsLock;
|
|
9345
|
+
toAmino(message: _229.MsgSetThreadProposalsLock): _229.MsgSetThreadProposalsLockAmino;
|
|
9346
|
+
fromAminoMsg(object: _229.MsgSetThreadProposalsLockAminoMsg): _229.MsgSetThreadProposalsLock;
|
|
9347
|
+
toAminoMsg(message: _229.MsgSetThreadProposalsLock): _229.MsgSetThreadProposalsLockAminoMsg;
|
|
9348
|
+
fromProtoMsg(message: _229.MsgSetThreadProposalsLockProtoMsg): _229.MsgSetThreadProposalsLock;
|
|
9349
|
+
toProto(message: _229.MsgSetThreadProposalsLock): Uint8Array;
|
|
9350
|
+
toProtoMsg(message: _229.MsgSetThreadProposalsLock): _229.MsgSetThreadProposalsLockProtoMsg;
|
|
9351
|
+
};
|
|
9352
|
+
MsgSetThreadProposalsLockResponse: {
|
|
9353
|
+
typeUrl: string;
|
|
9354
|
+
encode(_: _229.MsgSetThreadProposalsLockResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter;
|
|
9355
|
+
decode(input: import("..").BinaryReader | Uint8Array, length?: number): _229.MsgSetThreadProposalsLockResponse;
|
|
9356
|
+
fromPartial(_: import("../helpers").DeepPartial<_229.MsgSetThreadProposalsLockResponse>): _229.MsgSetThreadProposalsLockResponse;
|
|
9357
|
+
fromAmino(_: _229.MsgSetThreadProposalsLockResponseAmino): _229.MsgSetThreadProposalsLockResponse;
|
|
9358
|
+
toAmino(_: _229.MsgSetThreadProposalsLockResponse): _229.MsgSetThreadProposalsLockResponseAmino;
|
|
9359
|
+
fromAminoMsg(object: _229.MsgSetThreadProposalsLockResponseAminoMsg): _229.MsgSetThreadProposalsLockResponse;
|
|
9360
|
+
fromProtoMsg(message: _229.MsgSetThreadProposalsLockResponseProtoMsg): _229.MsgSetThreadProposalsLockResponse;
|
|
9361
|
+
toProto(message: _229.MsgSetThreadProposalsLockResponse): Uint8Array;
|
|
9362
|
+
toProtoMsg(message: _229.MsgSetThreadProposalsLockResponse): _229.MsgSetThreadProposalsLockResponseProtoMsg;
|
|
9363
|
+
};
|
|
9326
9364
|
ThreadMoveRecord: {
|
|
9327
9365
|
typeUrl: string;
|
|
9328
9366
|
encode(message: _228.ThreadMoveRecord, writer?: import("..").BinaryWriter): import("..").BinaryWriter;
|
|
@@ -9383,6 +9421,18 @@ export declare namespace sparkdream {
|
|
|
9383
9421
|
toProto(message: _224.ThreadFollowCount): Uint8Array;
|
|
9384
9422
|
toProtoMsg(message: _224.ThreadFollowCount): _224.ThreadFollowCountProtoMsg;
|
|
9385
9423
|
};
|
|
9424
|
+
AccuracyEpochBucket: {
|
|
9425
|
+
typeUrl: string;
|
|
9426
|
+
encode(message: _223.AccuracyEpochBucket, writer?: import("..").BinaryWriter): import("..").BinaryWriter;
|
|
9427
|
+
decode(input: import("..").BinaryReader | Uint8Array, length?: number): _223.AccuracyEpochBucket;
|
|
9428
|
+
fromPartial(object: import("../helpers").DeepPartial<_223.AccuracyEpochBucket>): _223.AccuracyEpochBucket;
|
|
9429
|
+
fromAmino(object: _223.AccuracyEpochBucketAmino): _223.AccuracyEpochBucket;
|
|
9430
|
+
toAmino(message: _223.AccuracyEpochBucket): _223.AccuracyEpochBucketAmino;
|
|
9431
|
+
fromAminoMsg(object: _223.AccuracyEpochBucketAminoMsg): _223.AccuracyEpochBucket;
|
|
9432
|
+
fromProtoMsg(message: _223.AccuracyEpochBucketProtoMsg): _223.AccuracyEpochBucket;
|
|
9433
|
+
toProto(message: _223.AccuracyEpochBucket): Uint8Array;
|
|
9434
|
+
toProtoMsg(message: _223.AccuracyEpochBucket): _223.AccuracyEpochBucketProtoMsg;
|
|
9435
|
+
};
|
|
9386
9436
|
SentinelActivity: {
|
|
9387
9437
|
typeUrl: string;
|
|
9388
9438
|
encode(message: _223.SentinelActivity, writer?: import("..").BinaryWriter): import("..").BinaryWriter;
|
|
@@ -10657,6 +10707,18 @@ export declare namespace sparkdream {
|
|
|
10657
10707
|
toProto(message: _217.GenesisState): Uint8Array;
|
|
10658
10708
|
toProtoMsg(message: _217.GenesisState): _217.GenesisStateProtoMsg;
|
|
10659
10709
|
};
|
|
10710
|
+
ProposalCountEntry: {
|
|
10711
|
+
typeUrl: string;
|
|
10712
|
+
encode(message: _217.ProposalCountEntry, writer?: import("..").BinaryWriter): import("..").BinaryWriter;
|
|
10713
|
+
decode(input: import("..").BinaryReader | Uint8Array, length?: number): _217.ProposalCountEntry;
|
|
10714
|
+
fromPartial(object: import("../helpers").DeepPartial<_217.ProposalCountEntry>): _217.ProposalCountEntry;
|
|
10715
|
+
fromAmino(object: _217.ProposalCountEntryAmino): _217.ProposalCountEntry;
|
|
10716
|
+
toAmino(message: _217.ProposalCountEntry): _217.ProposalCountEntryAmino;
|
|
10717
|
+
fromAminoMsg(object: _217.ProposalCountEntryAminoMsg): _217.ProposalCountEntry;
|
|
10718
|
+
fromProtoMsg(message: _217.ProposalCountEntryProtoMsg): _217.ProposalCountEntry;
|
|
10719
|
+
toProto(message: _217.ProposalCountEntry): Uint8Array;
|
|
10720
|
+
toProtoMsg(message: _217.ProposalCountEntry): _217.ProposalCountEntryProtoMsg;
|
|
10721
|
+
};
|
|
10660
10722
|
Bounty: {
|
|
10661
10723
|
typeUrl: string;
|
|
10662
10724
|
encode(message: _216.Bounty, writer?: import("..").BinaryWriter): import("..").BinaryWriter;
|
|
@@ -12533,6 +12595,10 @@ export declare namespace sparkdream {
|
|
|
12533
12595
|
typeUrl: string;
|
|
12534
12596
|
value: Uint8Array<ArrayBufferLike>;
|
|
12535
12597
|
};
|
|
12598
|
+
cancelUnbondRole(value: _279.MsgCancelUnbondRole): {
|
|
12599
|
+
typeUrl: string;
|
|
12600
|
+
value: Uint8Array<ArrayBufferLike>;
|
|
12601
|
+
};
|
|
12536
12602
|
reportMember(value: _279.MsgReportMember): {
|
|
12537
12603
|
typeUrl: string;
|
|
12538
12604
|
value: Uint8Array<ArrayBufferLike>;
|
|
@@ -12723,6 +12789,10 @@ export declare namespace sparkdream {
|
|
|
12723
12789
|
typeUrl: string;
|
|
12724
12790
|
value: _279.MsgUnbondRole;
|
|
12725
12791
|
};
|
|
12792
|
+
cancelUnbondRole(value: _279.MsgCancelUnbondRole): {
|
|
12793
|
+
typeUrl: string;
|
|
12794
|
+
value: _279.MsgCancelUnbondRole;
|
|
12795
|
+
};
|
|
12726
12796
|
reportMember(value: _279.MsgReportMember): {
|
|
12727
12797
|
typeUrl: string;
|
|
12728
12798
|
value: _279.MsgReportMember;
|
|
@@ -12913,6 +12983,10 @@ export declare namespace sparkdream {
|
|
|
12913
12983
|
typeUrl: string;
|
|
12914
12984
|
value: _279.MsgUnbondRole;
|
|
12915
12985
|
};
|
|
12986
|
+
cancelUnbondRole(value: _279.MsgCancelUnbondRole): {
|
|
12987
|
+
typeUrl: string;
|
|
12988
|
+
value: _279.MsgCancelUnbondRole;
|
|
12989
|
+
};
|
|
12916
12990
|
reportMember(value: _279.MsgReportMember): {
|
|
12917
12991
|
typeUrl: string;
|
|
12918
12992
|
value: _279.MsgReportMember;
|
|
@@ -14246,6 +14320,32 @@ export declare namespace sparkdream {
|
|
|
14246
14320
|
toProto(message: _279.MsgUnbondRoleResponse): Uint8Array;
|
|
14247
14321
|
toProtoMsg(message: _279.MsgUnbondRoleResponse): _279.MsgUnbondRoleResponseProtoMsg;
|
|
14248
14322
|
};
|
|
14323
|
+
MsgCancelUnbondRole: {
|
|
14324
|
+
typeUrl: string;
|
|
14325
|
+
aminoType: string;
|
|
14326
|
+
encode(message: _279.MsgCancelUnbondRole, writer?: import("..").BinaryWriter): import("..").BinaryWriter;
|
|
14327
|
+
decode(input: import("..").BinaryReader | Uint8Array, length?: number): _279.MsgCancelUnbondRole;
|
|
14328
|
+
fromPartial(object: import("../helpers").DeepPartial<_279.MsgCancelUnbondRole>): _279.MsgCancelUnbondRole;
|
|
14329
|
+
fromAmino(object: _279.MsgCancelUnbondRoleAmino): _279.MsgCancelUnbondRole;
|
|
14330
|
+
toAmino(message: _279.MsgCancelUnbondRole): _279.MsgCancelUnbondRoleAmino;
|
|
14331
|
+
fromAminoMsg(object: _279.MsgCancelUnbondRoleAminoMsg): _279.MsgCancelUnbondRole;
|
|
14332
|
+
toAminoMsg(message: _279.MsgCancelUnbondRole): _279.MsgCancelUnbondRoleAminoMsg;
|
|
14333
|
+
fromProtoMsg(message: _279.MsgCancelUnbondRoleProtoMsg): _279.MsgCancelUnbondRole;
|
|
14334
|
+
toProto(message: _279.MsgCancelUnbondRole): Uint8Array;
|
|
14335
|
+
toProtoMsg(message: _279.MsgCancelUnbondRole): _279.MsgCancelUnbondRoleProtoMsg;
|
|
14336
|
+
};
|
|
14337
|
+
MsgCancelUnbondRoleResponse: {
|
|
14338
|
+
typeUrl: string;
|
|
14339
|
+
encode(_: _279.MsgCancelUnbondRoleResponse, writer?: import("..").BinaryWriter): import("..").BinaryWriter;
|
|
14340
|
+
decode(input: import("..").BinaryReader | Uint8Array, length?: number): _279.MsgCancelUnbondRoleResponse;
|
|
14341
|
+
fromPartial(_: import("../helpers").DeepPartial<_279.MsgCancelUnbondRoleResponse>): _279.MsgCancelUnbondRoleResponse;
|
|
14342
|
+
fromAmino(_: _279.MsgCancelUnbondRoleResponseAmino): _279.MsgCancelUnbondRoleResponse;
|
|
14343
|
+
toAmino(_: _279.MsgCancelUnbondRoleResponse): _279.MsgCancelUnbondRoleResponseAmino;
|
|
14344
|
+
fromAminoMsg(object: _279.MsgCancelUnbondRoleResponseAminoMsg): _279.MsgCancelUnbondRoleResponse;
|
|
14345
|
+
fromProtoMsg(message: _279.MsgCancelUnbondRoleResponseProtoMsg): _279.MsgCancelUnbondRoleResponse;
|
|
14346
|
+
toProto(message: _279.MsgCancelUnbondRoleResponse): Uint8Array;
|
|
14347
|
+
toProtoMsg(message: _279.MsgCancelUnbondRoleResponse): _279.MsgCancelUnbondRoleResponseProtoMsg;
|
|
14348
|
+
};
|
|
14249
14349
|
MsgReportMember: {
|
|
14250
14350
|
typeUrl: string;
|
|
14251
14351
|
aminoType: string;
|
|
@@ -46,6 +46,13 @@ export interface GenesisState {
|
|
|
46
46
|
* imported post ID, so legacy exports without this field stay safe.
|
|
47
47
|
*/
|
|
48
48
|
postCount: bigint;
|
|
49
|
+
/**
|
|
50
|
+
* proposal_count_map persists the per-(thread, sentinel) accepted-reply
|
|
51
|
+
* proposal counter that backs the per-sentinel-per-thread proposal cap. Not
|
|
52
|
+
* derivable from other state (it is a historical tally), so it must round-trip
|
|
53
|
+
* through genesis like sentinel_activity_map.
|
|
54
|
+
*/
|
|
55
|
+
proposalCountMap: ProposalCountEntry[];
|
|
49
56
|
}
|
|
50
57
|
export interface GenesisStateProtoMsg {
|
|
51
58
|
typeUrl: "/sparkdream.forum.v1.GenesisState";
|
|
@@ -83,11 +90,50 @@ export interface GenesisStateAmino {
|
|
|
83
90
|
* imported post ID, so legacy exports without this field stay safe.
|
|
84
91
|
*/
|
|
85
92
|
post_count?: string;
|
|
93
|
+
/**
|
|
94
|
+
* proposal_count_map persists the per-(thread, sentinel) accepted-reply
|
|
95
|
+
* proposal counter that backs the per-sentinel-per-thread proposal cap. Not
|
|
96
|
+
* derivable from other state (it is a historical tally), so it must round-trip
|
|
97
|
+
* through genesis like sentinel_activity_map.
|
|
98
|
+
*/
|
|
99
|
+
proposal_count_map?: ProposalCountEntryAmino[];
|
|
86
100
|
}
|
|
87
101
|
export interface GenesisStateAminoMsg {
|
|
88
102
|
type: "/sparkdream.forum.v1.GenesisState";
|
|
89
103
|
value: GenesisStateAmino;
|
|
90
104
|
}
|
|
105
|
+
/**
|
|
106
|
+
* ProposalCountEntry is one (thread_id, sentinel) -> count tuple of the
|
|
107
|
+
* accepted-reply proposal cap counter, flattened for genesis import/export.
|
|
108
|
+
* @name ProposalCountEntry
|
|
109
|
+
* @package sparkdream.forum.v1
|
|
110
|
+
* @see proto type: sparkdream.forum.v1.ProposalCountEntry
|
|
111
|
+
*/
|
|
112
|
+
export interface ProposalCountEntry {
|
|
113
|
+
threadId: bigint;
|
|
114
|
+
sentinel: string;
|
|
115
|
+
count: bigint;
|
|
116
|
+
}
|
|
117
|
+
export interface ProposalCountEntryProtoMsg {
|
|
118
|
+
typeUrl: "/sparkdream.forum.v1.ProposalCountEntry";
|
|
119
|
+
value: Uint8Array;
|
|
120
|
+
}
|
|
121
|
+
/**
|
|
122
|
+
* ProposalCountEntry is one (thread_id, sentinel) -> count tuple of the
|
|
123
|
+
* accepted-reply proposal cap counter, flattened for genesis import/export.
|
|
124
|
+
* @name ProposalCountEntryAmino
|
|
125
|
+
* @package sparkdream.forum.v1
|
|
126
|
+
* @see proto type: sparkdream.forum.v1.ProposalCountEntry
|
|
127
|
+
*/
|
|
128
|
+
export interface ProposalCountEntryAmino {
|
|
129
|
+
thread_id?: string;
|
|
130
|
+
sentinel?: string;
|
|
131
|
+
count?: string;
|
|
132
|
+
}
|
|
133
|
+
export interface ProposalCountEntryAminoMsg {
|
|
134
|
+
type: "/sparkdream.forum.v1.ProposalCountEntry";
|
|
135
|
+
value: ProposalCountEntryAmino;
|
|
136
|
+
}
|
|
91
137
|
/**
|
|
92
138
|
* GenesisState defines the forum module's genesis state.
|
|
93
139
|
* @name GenesisState
|
|
@@ -106,3 +152,22 @@ export declare const GenesisState: {
|
|
|
106
152
|
toProto(message: GenesisState): Uint8Array;
|
|
107
153
|
toProtoMsg(message: GenesisState): GenesisStateProtoMsg;
|
|
108
154
|
};
|
|
155
|
+
/**
|
|
156
|
+
* ProposalCountEntry is one (thread_id, sentinel) -> count tuple of the
|
|
157
|
+
* accepted-reply proposal cap counter, flattened for genesis import/export.
|
|
158
|
+
* @name ProposalCountEntry
|
|
159
|
+
* @package sparkdream.forum.v1
|
|
160
|
+
* @see proto type: sparkdream.forum.v1.ProposalCountEntry
|
|
161
|
+
*/
|
|
162
|
+
export declare const ProposalCountEntry: {
|
|
163
|
+
typeUrl: string;
|
|
164
|
+
encode(message: ProposalCountEntry, writer?: BinaryWriter): BinaryWriter;
|
|
165
|
+
decode(input: BinaryReader | Uint8Array, length?: number): ProposalCountEntry;
|
|
166
|
+
fromPartial(object: DeepPartial<ProposalCountEntry>): ProposalCountEntry;
|
|
167
|
+
fromAmino(object: ProposalCountEntryAmino): ProposalCountEntry;
|
|
168
|
+
toAmino(message: ProposalCountEntry): ProposalCountEntryAmino;
|
|
169
|
+
fromAminoMsg(object: ProposalCountEntryAminoMsg): ProposalCountEntry;
|
|
170
|
+
fromProtoMsg(message: ProposalCountEntryProtoMsg): ProposalCountEntry;
|
|
171
|
+
toProto(message: ProposalCountEntry): Uint8Array;
|
|
172
|
+
toProtoMsg(message: ProposalCountEntry): ProposalCountEntryProtoMsg;
|
|
173
|
+
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.GenesisState = void 0;
|
|
3
|
+
exports.ProposalCountEntry = exports.GenesisState = void 0;
|
|
4
4
|
//@ts-nocheck
|
|
5
5
|
const params_1 = require("./params");
|
|
6
6
|
const post_1 = require("./post");
|
|
@@ -34,7 +34,8 @@ function createBaseGenesisState() {
|
|
|
34
34
|
threadFollowMap: [],
|
|
35
35
|
threadFollowCountMap: [],
|
|
36
36
|
archiveMetadataMap: [],
|
|
37
|
-
postCount: BigInt(0)
|
|
37
|
+
postCount: BigInt(0),
|
|
38
|
+
proposalCountMap: []
|
|
38
39
|
};
|
|
39
40
|
}
|
|
40
41
|
/**
|
|
@@ -94,6 +95,9 @@ exports.GenesisState = {
|
|
|
94
95
|
if (message.postCount !== BigInt(0)) {
|
|
95
96
|
writer.uint32(128).uint64(message.postCount);
|
|
96
97
|
}
|
|
98
|
+
for (const v of message.proposalCountMap) {
|
|
99
|
+
exports.ProposalCountEntry.encode(v, writer.uint32(138).fork()).ldelim();
|
|
100
|
+
}
|
|
97
101
|
return writer;
|
|
98
102
|
},
|
|
99
103
|
decode(input, length) {
|
|
@@ -151,6 +155,9 @@ exports.GenesisState = {
|
|
|
151
155
|
case 16:
|
|
152
156
|
message.postCount = reader.uint64();
|
|
153
157
|
break;
|
|
158
|
+
case 17:
|
|
159
|
+
message.proposalCountMap.push(exports.ProposalCountEntry.decode(reader, reader.uint32()));
|
|
160
|
+
break;
|
|
154
161
|
default:
|
|
155
162
|
reader.skipType(tag & 7);
|
|
156
163
|
break;
|
|
@@ -176,6 +183,7 @@ exports.GenesisState = {
|
|
|
176
183
|
message.threadFollowCountMap = object.threadFollowCountMap?.map(e => thread_follow_count_1.ThreadFollowCount.fromPartial(e)) || [];
|
|
177
184
|
message.archiveMetadataMap = object.archiveMetadataMap?.map(e => archive_metadata_1.ArchiveMetadata.fromPartial(e)) || [];
|
|
178
185
|
message.postCount = object.postCount !== undefined && object.postCount !== null ? BigInt(object.postCount.toString()) : BigInt(0);
|
|
186
|
+
message.proposalCountMap = object.proposalCountMap?.map(e => exports.ProposalCountEntry.fromPartial(e)) || [];
|
|
179
187
|
return message;
|
|
180
188
|
},
|
|
181
189
|
fromAmino(object) {
|
|
@@ -202,6 +210,7 @@ exports.GenesisState = {
|
|
|
202
210
|
if (object.post_count !== undefined && object.post_count !== null) {
|
|
203
211
|
message.postCount = BigInt(object.post_count);
|
|
204
212
|
}
|
|
213
|
+
message.proposalCountMap = object.proposal_count_map?.map(e => exports.ProposalCountEntry.fromAmino(e)) || [];
|
|
205
214
|
return message;
|
|
206
215
|
},
|
|
207
216
|
toAmino(message) {
|
|
@@ -287,6 +296,12 @@ exports.GenesisState = {
|
|
|
287
296
|
obj.archive_metadata_map = message.archiveMetadataMap;
|
|
288
297
|
}
|
|
289
298
|
obj.post_count = message.postCount !== BigInt(0) ? message.postCount?.toString() : undefined;
|
|
299
|
+
if (message.proposalCountMap) {
|
|
300
|
+
obj.proposal_count_map = message.proposalCountMap.map(e => e ? exports.ProposalCountEntry.toAmino(e) : undefined);
|
|
301
|
+
}
|
|
302
|
+
else {
|
|
303
|
+
obj.proposal_count_map = message.proposalCountMap;
|
|
304
|
+
}
|
|
290
305
|
return obj;
|
|
291
306
|
},
|
|
292
307
|
fromAminoMsg(object) {
|
|
@@ -305,3 +320,97 @@ exports.GenesisState = {
|
|
|
305
320
|
};
|
|
306
321
|
}
|
|
307
322
|
};
|
|
323
|
+
function createBaseProposalCountEntry() {
|
|
324
|
+
return {
|
|
325
|
+
threadId: BigInt(0),
|
|
326
|
+
sentinel: "",
|
|
327
|
+
count: BigInt(0)
|
|
328
|
+
};
|
|
329
|
+
}
|
|
330
|
+
/**
|
|
331
|
+
* ProposalCountEntry is one (thread_id, sentinel) -> count tuple of the
|
|
332
|
+
* accepted-reply proposal cap counter, flattened for genesis import/export.
|
|
333
|
+
* @name ProposalCountEntry
|
|
334
|
+
* @package sparkdream.forum.v1
|
|
335
|
+
* @see proto type: sparkdream.forum.v1.ProposalCountEntry
|
|
336
|
+
*/
|
|
337
|
+
exports.ProposalCountEntry = {
|
|
338
|
+
typeUrl: "/sparkdream.forum.v1.ProposalCountEntry",
|
|
339
|
+
encode(message, writer = binary_1.BinaryWriter.create()) {
|
|
340
|
+
if (message.threadId !== BigInt(0)) {
|
|
341
|
+
writer.uint32(8).uint64(message.threadId);
|
|
342
|
+
}
|
|
343
|
+
if (message.sentinel !== "") {
|
|
344
|
+
writer.uint32(18).string(message.sentinel);
|
|
345
|
+
}
|
|
346
|
+
if (message.count !== BigInt(0)) {
|
|
347
|
+
writer.uint32(24).uint64(message.count);
|
|
348
|
+
}
|
|
349
|
+
return writer;
|
|
350
|
+
},
|
|
351
|
+
decode(input, length) {
|
|
352
|
+
const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input);
|
|
353
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
354
|
+
const message = createBaseProposalCountEntry();
|
|
355
|
+
while (reader.pos < end) {
|
|
356
|
+
const tag = reader.uint32();
|
|
357
|
+
switch (tag >>> 3) {
|
|
358
|
+
case 1:
|
|
359
|
+
message.threadId = reader.uint64();
|
|
360
|
+
break;
|
|
361
|
+
case 2:
|
|
362
|
+
message.sentinel = reader.string();
|
|
363
|
+
break;
|
|
364
|
+
case 3:
|
|
365
|
+
message.count = reader.uint64();
|
|
366
|
+
break;
|
|
367
|
+
default:
|
|
368
|
+
reader.skipType(tag & 7);
|
|
369
|
+
break;
|
|
370
|
+
}
|
|
371
|
+
}
|
|
372
|
+
return message;
|
|
373
|
+
},
|
|
374
|
+
fromPartial(object) {
|
|
375
|
+
const message = createBaseProposalCountEntry();
|
|
376
|
+
message.threadId = object.threadId !== undefined && object.threadId !== null ? BigInt(object.threadId.toString()) : BigInt(0);
|
|
377
|
+
message.sentinel = object.sentinel ?? "";
|
|
378
|
+
message.count = object.count !== undefined && object.count !== null ? BigInt(object.count.toString()) : BigInt(0);
|
|
379
|
+
return message;
|
|
380
|
+
},
|
|
381
|
+
fromAmino(object) {
|
|
382
|
+
const message = createBaseProposalCountEntry();
|
|
383
|
+
if (object.thread_id !== undefined && object.thread_id !== null) {
|
|
384
|
+
message.threadId = BigInt(object.thread_id);
|
|
385
|
+
}
|
|
386
|
+
if (object.sentinel !== undefined && object.sentinel !== null) {
|
|
387
|
+
message.sentinel = object.sentinel;
|
|
388
|
+
}
|
|
389
|
+
if (object.count !== undefined && object.count !== null) {
|
|
390
|
+
message.count = BigInt(object.count);
|
|
391
|
+
}
|
|
392
|
+
return message;
|
|
393
|
+
},
|
|
394
|
+
toAmino(message) {
|
|
395
|
+
const obj = {};
|
|
396
|
+
obj.thread_id = message.threadId !== BigInt(0) ? message.threadId?.toString() : undefined;
|
|
397
|
+
obj.sentinel = message.sentinel === "" ? undefined : message.sentinel;
|
|
398
|
+
obj.count = message.count !== BigInt(0) ? message.count?.toString() : undefined;
|
|
399
|
+
return obj;
|
|
400
|
+
},
|
|
401
|
+
fromAminoMsg(object) {
|
|
402
|
+
return exports.ProposalCountEntry.fromAmino(object.value);
|
|
403
|
+
},
|
|
404
|
+
fromProtoMsg(message) {
|
|
405
|
+
return exports.ProposalCountEntry.decode(message.value);
|
|
406
|
+
},
|
|
407
|
+
toProto(message) {
|
|
408
|
+
return exports.ProposalCountEntry.encode(message).finish();
|
|
409
|
+
},
|
|
410
|
+
toProtoMsg(message) {
|
|
411
|
+
return {
|
|
412
|
+
typeUrl: "/sparkdream.forum.v1.ProposalCountEntry",
|
|
413
|
+
value: exports.ProposalCountEntry.encode(message).finish()
|
|
414
|
+
};
|
|
415
|
+
}
|
|
416
|
+
};
|
|
@@ -284,6 +284,32 @@ export interface Params {
|
|
|
284
284
|
* and the stake is closed.
|
|
285
285
|
*/
|
|
286
286
|
postConvictionStakerSlashBps: bigint;
|
|
287
|
+
/**
|
|
288
|
+
* curation_dream_reward is the DREAM minted to a sentinel when their accepted-
|
|
289
|
+
* reply proposal is confirmed (by the author or via auto-confirm), in
|
|
290
|
+
* micro-DREAM (math.Int string). Read directly (no unset/default fallback):
|
|
291
|
+
* a non-positive value disables the reward, matching the IsPositive fee guards
|
|
292
|
+
* in x/rep / x/blog. Seeded by the genesis defaults.
|
|
293
|
+
*/
|
|
294
|
+
curationDreamReward: string;
|
|
295
|
+
/**
|
|
296
|
+
* accept_proposal_timeout is the number of seconds after which a pending
|
|
297
|
+
* sentinel accepted-reply proposal auto-confirms if the author has not acted.
|
|
298
|
+
* Must be positive (Validate rejects 0/negative — a 0 timeout would
|
|
299
|
+
* auto-confirm on the next block, never an intended config). Seeded by the
|
|
300
|
+
* genesis defaults (48h).
|
|
301
|
+
*/
|
|
302
|
+
acceptProposalTimeout: bigint;
|
|
303
|
+
/**
|
|
304
|
+
* max_accept_proposals_per_sentinel_per_thread caps how many accepted-reply
|
|
305
|
+
* proposals a single sentinel may make on a given thread (counting all
|
|
306
|
+
* proposals, confirmed or rejected). Once a sentinel hits the cap on a thread,
|
|
307
|
+
* proposeAcceptedReply rejects with ErrMaxProposalsReached — that sentinel is
|
|
308
|
+
* done proposing there, permanently. Per-sentinel (not a thread-global cap) so
|
|
309
|
+
* one bad actor cannot exhaust a thread's quota and lock out honest curators.
|
|
310
|
+
* 0 disables the cap. Seeded by the genesis defaults (2).
|
|
311
|
+
*/
|
|
312
|
+
maxAcceptProposalsPerSentinelPerThread: number;
|
|
287
313
|
}
|
|
288
314
|
export interface ParamsProtoMsg {
|
|
289
315
|
typeUrl: "/sparkdream.forum.v1.Params";
|
|
@@ -573,6 +599,32 @@ export interface ParamsAmino {
|
|
|
573
599
|
* and the stake is closed.
|
|
574
600
|
*/
|
|
575
601
|
post_conviction_staker_slash_bps?: string;
|
|
602
|
+
/**
|
|
603
|
+
* curation_dream_reward is the DREAM minted to a sentinel when their accepted-
|
|
604
|
+
* reply proposal is confirmed (by the author or via auto-confirm), in
|
|
605
|
+
* micro-DREAM (math.Int string). Read directly (no unset/default fallback):
|
|
606
|
+
* a non-positive value disables the reward, matching the IsPositive fee guards
|
|
607
|
+
* in x/rep / x/blog. Seeded by the genesis defaults.
|
|
608
|
+
*/
|
|
609
|
+
curation_dream_reward?: string;
|
|
610
|
+
/**
|
|
611
|
+
* accept_proposal_timeout is the number of seconds after which a pending
|
|
612
|
+
* sentinel accepted-reply proposal auto-confirms if the author has not acted.
|
|
613
|
+
* Must be positive (Validate rejects 0/negative — a 0 timeout would
|
|
614
|
+
* auto-confirm on the next block, never an intended config). Seeded by the
|
|
615
|
+
* genesis defaults (48h).
|
|
616
|
+
*/
|
|
617
|
+
accept_proposal_timeout?: string;
|
|
618
|
+
/**
|
|
619
|
+
* max_accept_proposals_per_sentinel_per_thread caps how many accepted-reply
|
|
620
|
+
* proposals a single sentinel may make on a given thread (counting all
|
|
621
|
+
* proposals, confirmed or rejected). Once a sentinel hits the cap on a thread,
|
|
622
|
+
* proposeAcceptedReply rejects with ErrMaxProposalsReached — that sentinel is
|
|
623
|
+
* done proposing there, permanently. Per-sentinel (not a thread-global cap) so
|
|
624
|
+
* one bad actor cannot exhaust a thread's quota and lock out honest curators.
|
|
625
|
+
* 0 disables the cap. Seeded by the genesis defaults (2).
|
|
626
|
+
*/
|
|
627
|
+
max_accept_proposals_per_sentinel_per_thread?: number;
|
|
576
628
|
}
|
|
577
629
|
export interface ParamsAminoMsg {
|
|
578
630
|
type: "sparkdream/x/forum/Params";
|
|
@@ -733,6 +785,19 @@ export interface ForumOperationalParams {
|
|
|
733
785
|
* post_conviction_staker_slash_bps — see Params.post_conviction_staker_slash_bps.
|
|
734
786
|
*/
|
|
735
787
|
postConvictionStakerSlashBps: bigint;
|
|
788
|
+
/**
|
|
789
|
+
* curation_dream_reward — see Params.curation_dream_reward.
|
|
790
|
+
*/
|
|
791
|
+
curationDreamReward: string;
|
|
792
|
+
/**
|
|
793
|
+
* accept_proposal_timeout — see Params.accept_proposal_timeout.
|
|
794
|
+
*/
|
|
795
|
+
acceptProposalTimeout: bigint;
|
|
796
|
+
/**
|
|
797
|
+
* max_accept_proposals_per_sentinel_per_thread —
|
|
798
|
+
* see Params.max_accept_proposals_per_sentinel_per_thread.
|
|
799
|
+
*/
|
|
800
|
+
maxAcceptProposalsPerSentinelPerThread: number;
|
|
736
801
|
}
|
|
737
802
|
export interface ForumOperationalParamsProtoMsg {
|
|
738
803
|
typeUrl: "/sparkdream.forum.v1.ForumOperationalParams";
|
|
@@ -893,6 +958,19 @@ export interface ForumOperationalParamsAmino {
|
|
|
893
958
|
* post_conviction_staker_slash_bps — see Params.post_conviction_staker_slash_bps.
|
|
894
959
|
*/
|
|
895
960
|
post_conviction_staker_slash_bps?: string;
|
|
961
|
+
/**
|
|
962
|
+
* curation_dream_reward — see Params.curation_dream_reward.
|
|
963
|
+
*/
|
|
964
|
+
curation_dream_reward?: string;
|
|
965
|
+
/**
|
|
966
|
+
* accept_proposal_timeout — see Params.accept_proposal_timeout.
|
|
967
|
+
*/
|
|
968
|
+
accept_proposal_timeout?: string;
|
|
969
|
+
/**
|
|
970
|
+
* max_accept_proposals_per_sentinel_per_thread —
|
|
971
|
+
* see Params.max_accept_proposals_per_sentinel_per_thread.
|
|
972
|
+
*/
|
|
973
|
+
max_accept_proposals_per_sentinel_per_thread?: number;
|
|
896
974
|
}
|
|
897
975
|
export interface ForumOperationalParamsAminoMsg {
|
|
898
976
|
type: "sparkdream/x/forum/ForumOperationalParams";
|