@sparkdreamnft/sparkdreamjs 0.0.8 → 0.0.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/cosmos/bundle.d.ts +160 -160
- package/cosmos/bundle.js +182 -182
- package/esm/cosmos/bundle.js +182 -182
- package/esm/ibc/bundle.js +76 -76
- package/esm/sparkdream/blog/v1/params.js +25 -1
- package/esm/sparkdream/blog/v1/post.js +16 -1
- package/esm/sparkdream/blog/v1/query.js +165 -0
- package/esm/sparkdream/blog/v1/query.lcd.js +11 -0
- package/esm/sparkdream/blog/v1/query.rpc.Query.js +10 -1
- package/esm/sparkdream/blog/v1/tx.js +32 -2
- package/esm/sparkdream/bundle.js +367 -327
- package/esm/sparkdream/client.js +4 -1
- package/esm/sparkdream/collect/v1/curator_activity.js +158 -0
- package/esm/sparkdream/collect/v1/genesis.js +12 -11
- package/esm/sparkdream/collect/v1/params.js +37 -1
- package/esm/sparkdream/collect/v1/query.js +201 -186
- package/esm/sparkdream/collect/v1/query.lcd.js +16 -16
- package/esm/sparkdream/collect/v1/query.rpc.Query.js +19 -19
- package/esm/sparkdream/collect/v1/tx.amino.js +1 -11
- package/esm/sparkdream/collect/v1/tx.js +0 -258
- package/esm/sparkdream/collect/v1/tx.registry.js +2 -38
- package/esm/sparkdream/collect/v1/tx.rpc.msg.js +3 -14
- package/esm/sparkdream/collect/v1/types.js +50 -143
- package/esm/sparkdream/{forum → commons}/v1/category.js +7 -5
- package/esm/sparkdream/commons/v1/genesis.js +29 -1
- package/esm/sparkdream/commons/v1/query.js +292 -0
- package/esm/sparkdream/commons/v1/query.lcd.js +18 -0
- package/esm/sparkdream/commons/v1/query.rpc.Query.js +21 -1
- package/esm/sparkdream/commons/v1/tx.amino.js +6 -1
- package/esm/sparkdream/commons/v1/tx.js +193 -0
- package/esm/sparkdream/commons/v1/tx.registry.js +20 -2
- package/esm/sparkdream/commons/v1/tx.rpc.msg.js +8 -1
- package/esm/sparkdream/federation/module/v1/module.js +71 -0
- package/esm/sparkdream/federation/v1/genesis.js +245 -0
- package/esm/sparkdream/federation/v1/packet.js +810 -0
- package/esm/sparkdream/federation/v1/params.js +789 -0
- package/esm/sparkdream/federation/v1/query.js +2479 -0
- package/esm/sparkdream/federation/v1/query.lcd.js +142 -0
- package/esm/sparkdream/federation/v1/query.rpc.Query.js +181 -0
- package/esm/sparkdream/federation/v1/tx.amino.js +129 -0
- package/esm/sparkdream/federation/v1/tx.js +3929 -0
- package/esm/sparkdream/federation/v1/tx.registry.js +465 -0
- package/esm/sparkdream/federation/v1/tx.rpc.msg.js +163 -0
- package/esm/sparkdream/federation/v1/types.js +2266 -0
- package/esm/sparkdream/federation/v1/verifier_activity.js +194 -0
- package/esm/sparkdream/forum/v1/genesis.js +26 -250
- package/esm/sparkdream/forum/v1/params.js +146 -2
- package/esm/sparkdream/forum/v1/query.js +2084 -7387
- package/esm/sparkdream/forum/v1/query.lcd.js +0 -310
- package/esm/sparkdream/forum/v1/query.rpc.Query.js +1 -339
- package/esm/sparkdream/forum/v1/sentinel_activity.js +46 -139
- package/esm/sparkdream/forum/v1/tx.amino.js +1 -76
- package/esm/sparkdream/forum/v1/tx.js +333 -2628
- package/esm/sparkdream/forum/v1/tx.registry.js +2 -272
- package/esm/sparkdream/forum/v1/tx.rpc.msg.js +1 -91
- package/esm/sparkdream/forum/v1/types.js +0 -216
- package/esm/sparkdream/futarchy/v1/market.js +13 -1
- package/esm/sparkdream/lcd.js +5 -0
- package/esm/sparkdream/rep/v1/accountability.js +172 -0
- package/esm/sparkdream/rep/v1/bonded_role.js +446 -0
- package/esm/sparkdream/rep/v1/genesis.js +224 -1
- package/esm/sparkdream/{forum → rep}/v1/gov_action_appeal.js +4 -4
- package/esm/sparkdream/{forum → rep}/v1/jury_participation.js +4 -4
- package/esm/sparkdream/rep/v1/member.js +25 -1
- package/esm/sparkdream/{forum → rep}/v1/member_report.js +102 -5
- package/esm/sparkdream/{forum → rep}/v1/member_warning.js +4 -4
- package/esm/sparkdream/rep/v1/params.js +782 -254
- package/esm/sparkdream/rep/v1/project.js +13 -1
- package/esm/sparkdream/rep/v1/query.js +5251 -0
- package/esm/sparkdream/rep/v1/query.lcd.js +293 -0
- package/esm/sparkdream/rep/v1/query.rpc.Query.js +334 -1
- package/esm/sparkdream/{common → rep}/v1/reserved_tag.js +5 -5
- package/esm/sparkdream/{common → rep}/v1/tag.js +6 -6
- package/esm/sparkdream/{forum → rep}/v1/tag_budget.js +4 -4
- package/esm/sparkdream/{forum → rep}/v1/tag_budget_award.js +4 -4
- package/esm/sparkdream/{forum → rep}/v1/tag_report.js +4 -4
- package/esm/sparkdream/rep/v1/tx.amino.js +81 -1
- package/esm/sparkdream/rep/v1/tx.js +2467 -0
- package/esm/sparkdream/rep/v1/tx.registry.js +290 -2
- package/esm/sparkdream/rep/v1/tx.rpc.msg.js +104 -1
- package/esm/sparkdream/rpc.query.js +3 -0
- package/esm/sparkdream/rpc.tx.js +3 -0
- package/esm/sparkdream/season/v1/enums.js +10 -0
- package/esm/sparkdream/season/v1/params.js +94 -46
- package/esm/sparkdream/shield/v1/types.js +47 -5
- package/esm/tendermint/bundle.js +20 -20
- package/ibc/bundle.d.ts +90 -90
- package/ibc/bundle.js +76 -76
- package/package.json +1 -1
- package/sparkdream/blog/v1/params.d.ts +16 -0
- package/sparkdream/blog/v1/params.js +25 -1
- package/sparkdream/blog/v1/post.d.ts +8 -0
- package/sparkdream/blog/v1/post.js +16 -1
- package/sparkdream/blog/v1/query.d.ts +92 -0
- package/sparkdream/blog/v1/query.js +166 -1
- package/sparkdream/blog/v1/query.lcd.d.ts +2 -1
- package/sparkdream/blog/v1/query.lcd.js +11 -0
- package/sparkdream/blog/v1/query.rpc.Query.d.ts +5 -1
- package/sparkdream/blog/v1/query.rpc.Query.js +9 -0
- package/sparkdream/blog/v1/tx.d.ts +16 -0
- package/sparkdream/blog/v1/tx.js +32 -2
- package/sparkdream/bundle.d.ts +14529 -12577
- package/sparkdream/bundle.js +367 -327
- package/sparkdream/client.d.ts +192 -67
- package/sparkdream/client.js +4 -1
- package/sparkdream/collect/v1/curator_activity.d.ts +123 -0
- package/sparkdream/collect/v1/curator_activity.js +161 -0
- package/sparkdream/collect/v1/genesis.d.ts +4 -3
- package/sparkdream/collect/v1/genesis.js +11 -10
- package/sparkdream/collect/v1/params.d.ts +32 -0
- package/sparkdream/collect/v1/params.js +37 -1
- package/sparkdream/collect/v1/query.d.ts +142 -133
- package/sparkdream/collect/v1/query.js +201 -186
- package/sparkdream/collect/v1/query.lcd.d.ts +3 -3
- package/sparkdream/collect/v1/query.lcd.js +16 -16
- package/sparkdream/collect/v1/query.rpc.Query.d.ts +13 -7
- package/sparkdream/collect/v1/query.rpc.Query.js +18 -18
- package/sparkdream/collect/v1/tx.amino.d.ts +1 -11
- package/sparkdream/collect/v1/tx.amino.js +0 -10
- package/sparkdream/collect/v1/tx.d.ts +0 -162
- package/sparkdream/collect/v1/tx.js +2 -260
- package/sparkdream/collect/v1/tx.registry.d.ts +1 -25
- package/sparkdream/collect/v1/tx.registry.js +1 -37
- package/sparkdream/collect/v1/tx.rpc.msg.d.ts +5 -5
- package/sparkdream/collect/v1/tx.rpc.msg.js +2 -13
- package/sparkdream/collect/v1/types.d.ts +26 -56
- package/sparkdream/collect/v1/types.js +51 -144
- package/sparkdream/{forum → commons}/v1/category.d.ts +17 -11
- package/sparkdream/{forum → commons}/v1/category.js +7 -5
- package/sparkdream/commons/v1/genesis.d.ts +17 -0
- package/sparkdream/commons/v1/genesis.js +29 -1
- package/sparkdream/commons/v1/query.d.ts +179 -0
- package/sparkdream/commons/v1/query.js +293 -1
- package/sparkdream/commons/v1/query.lcd.d.ts +3 -1
- package/sparkdream/commons/v1/query.lcd.js +18 -0
- package/sparkdream/commons/v1/query.rpc.Query.d.ts +9 -1
- package/sparkdream/commons/v1/query.rpc.Query.js +20 -0
- package/sparkdream/commons/v1/tx.amino.d.ts +6 -1
- package/sparkdream/commons/v1/tx.amino.js +5 -0
- package/sparkdream/commons/v1/tx.d.ts +98 -0
- package/sparkdream/commons/v1/tx.js +194 -1
- package/sparkdream/commons/v1/tx.registry.d.ts +13 -1
- package/sparkdream/commons/v1/tx.registry.js +19 -1
- package/sparkdream/commons/v1/tx.rpc.msg.d.ts +7 -1
- package/sparkdream/commons/v1/tx.rpc.msg.js +7 -0
- package/sparkdream/federation/module/v1/module.d.ts +54 -0
- package/sparkdream/federation/module/v1/module.js +74 -0
- package/sparkdream/federation/v1/genesis.d.ts +79 -0
- package/sparkdream/federation/v1/genesis.js +248 -0
- package/sparkdream/federation/v1/packet.d.ts +397 -0
- package/sparkdream/federation/v1/packet.js +813 -0
- package/sparkdream/federation/v1/params.d.ts +272 -0
- package/sparkdream/federation/v1/params.js +792 -0
- package/sparkdream/federation/v1/query.d.ts +1458 -0
- package/sparkdream/federation/v1/query.js +2482 -0
- package/sparkdream/federation/v1/query.lcd.d.ts +25 -0
- package/sparkdream/federation/v1/query.lcd.js +146 -0
- package/sparkdream/federation/v1/query.rpc.Query.d.ts +69 -0
- package/sparkdream/federation/v1/query.rpc.Query.js +186 -0
- package/sparkdream/federation/v1/tx.amino.d.ts +128 -0
- package/sparkdream/federation/v1/tx.amino.js +132 -0
- package/sparkdream/federation/v1/tx.d.ts +2147 -0
- package/sparkdream/federation/v1/tx.js +3932 -0
- package/sparkdream/federation/v1/tx.registry.d.ts +313 -0
- package/sparkdream/federation/v1/tx.registry.js +469 -0
- package/sparkdream/federation/v1/tx.rpc.msg.d.ts +65 -0
- package/sparkdream/federation/v1/tx.rpc.msg.js +168 -0
- package/sparkdream/federation/v1/types.d.ts +810 -0
- package/sparkdream/federation/v1/types.js +2281 -0
- package/sparkdream/federation/v1/verifier_activity.d.ts +113 -0
- package/sparkdream/federation/v1/verifier_activity.js +197 -0
- package/sparkdream/forum/v1/genesis.d.ts +0 -41
- package/sparkdream/forum/v1/genesis.js +26 -250
- package/sparkdream/forum/v1/params.d.ts +112 -0
- package/sparkdream/forum/v1/params.js +146 -2
- package/sparkdream/forum/v1/query.d.ts +65 -3164
- package/sparkdream/forum/v1/query.js +2086 -7391
- package/sparkdream/forum/v1/query.lcd.d.ts +1 -35
- package/sparkdream/forum/v1/query.lcd.js +0 -310
- package/sparkdream/forum/v1/query.rpc.Query.d.ts +1 -137
- package/sparkdream/forum/v1/query.rpc.Query.js +0 -338
- package/sparkdream/forum/v1/sentinel_activity.d.ts +9 -20
- package/sparkdream/forum/v1/sentinel_activity.js +46 -139
- package/sparkdream/forum/v1/tx.amino.d.ts +1 -76
- package/sparkdream/forum/v1/tx.amino.js +0 -75
- package/sparkdream/forum/v1/tx.d.ts +85 -1445
- package/sparkdream/forum/v1/tx.js +335 -2630
- package/sparkdream/forum/v1/tx.registry.d.ts +1 -181
- package/sparkdream/forum/v1/tx.registry.js +1 -271
- package/sparkdream/forum/v1/tx.rpc.msg.d.ts +1 -46
- package/sparkdream/forum/v1/tx.rpc.msg.js +0 -90
- package/sparkdream/forum/v1/types.d.ts +0 -50
- package/sparkdream/forum/v1/types.js +1 -225
- package/sparkdream/futarchy/v1/market.d.ts +14 -0
- package/sparkdream/futarchy/v1/market.js +13 -1
- package/sparkdream/lcd.d.ts +3 -0
- package/sparkdream/lcd.js +5 -0
- package/sparkdream/rep/v1/accountability.d.ts +39 -0
- package/sparkdream/rep/v1/accountability.js +181 -0
- package/sparkdream/rep/v1/bonded_role.d.ts +330 -0
- package/sparkdream/rep/v1/bonded_role.js +453 -0
- package/sparkdream/rep/v1/genesis.d.ts +70 -0
- package/sparkdream/rep/v1/genesis.js +224 -1
- package/sparkdream/{forum → rep}/v1/gov_action_appeal.d.ts +9 -9
- package/sparkdream/{forum → rep}/v1/gov_action_appeal.js +4 -4
- package/sparkdream/{forum → rep}/v1/jury_participation.d.ts +8 -8
- package/sparkdream/{forum → rep}/v1/jury_participation.js +4 -4
- package/sparkdream/rep/v1/member.d.ts +16 -0
- package/sparkdream/rep/v1/member.js +25 -1
- package/sparkdream/rep/v1/member_report.d.ts +128 -0
- package/sparkdream/{forum → rep}/v1/member_report.js +103 -6
- package/sparkdream/{forum → rep}/v1/member_warning.d.ts +8 -8
- package/sparkdream/{forum → rep}/v1/member_warning.js +4 -4
- package/sparkdream/rep/v1/params.d.ts +352 -8
- package/sparkdream/rep/v1/params.js +782 -254
- package/sparkdream/rep/v1/project.d.ts +10 -0
- package/sparkdream/rep/v1/project.js +13 -1
- package/sparkdream/rep/v1/query.d.ts +4222 -1156
- package/sparkdream/rep/v1/query.js +5254 -1
- package/sparkdream/rep/v1/query.lcd.d.ts +35 -1
- package/sparkdream/rep/v1/query.lcd.js +293 -0
- package/sparkdream/rep/v1/query.rpc.Query.d.ts +140 -1
- package/sparkdream/rep/v1/query.rpc.Query.js +333 -0
- package/sparkdream/{common → rep}/v1/reserved_tag.d.ts +11 -11
- package/sparkdream/{common → rep}/v1/reserved_tag.js +5 -5
- package/sparkdream/{common → rep}/v1/tag.d.ts +14 -14
- package/sparkdream/{common → rep}/v1/tag.js +6 -6
- package/sparkdream/{forum → rep}/v1/tag_budget.d.ts +8 -8
- package/sparkdream/{forum → rep}/v1/tag_budget.js +4 -4
- package/sparkdream/{forum → rep}/v1/tag_budget_award.d.ts +8 -8
- package/sparkdream/{forum → rep}/v1/tag_budget_award.js +4 -4
- package/sparkdream/{forum → rep}/v1/tag_report.d.ts +8 -8
- package/sparkdream/{forum → rep}/v1/tag_report.js +4 -4
- package/sparkdream/rep/v1/tx.amino.d.ts +81 -1
- package/sparkdream/rep/v1/tx.amino.js +80 -0
- package/sparkdream/rep/v1/tx.d.ts +1484 -0
- package/sparkdream/rep/v1/tx.js +2468 -1
- package/sparkdream/rep/v1/tx.registry.d.ts +193 -1
- package/sparkdream/rep/v1/tx.registry.js +289 -1
- package/sparkdream/rep/v1/tx.rpc.msg.d.ts +64 -1
- package/sparkdream/rep/v1/tx.rpc.msg.js +103 -0
- package/sparkdream/rpc.query.d.ts +60 -36
- package/sparkdream/rpc.query.js +3 -0
- package/sparkdream/rpc.tx.d.ts +3 -0
- package/sparkdream/rpc.tx.js +3 -0
- package/sparkdream/season/v1/enums.d.ts +5 -0
- package/sparkdream/season/v1/enums.js +10 -0
- package/sparkdream/season/v1/params.d.ts +36 -4
- package/sparkdream/season/v1/params.js +94 -46
- package/sparkdream/shield/v1/types.d.ts +28 -0
- package/sparkdream/shield/v1/types.js +47 -5
- package/tendermint/bundle.d.ts +844 -844
- package/tendermint/bundle.js +20 -20
- package/esm/sparkdream/forum/v1/member_salvation_status.js +0 -119
- package/sparkdream/forum/v1/member_report.d.ts +0 -67
- package/sparkdream/forum/v1/member_salvation_status.d.ts +0 -54
- package/sparkdream/forum/v1/member_salvation_status.js +0 -122
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
/** GovActionType represents the type of governance action. */
|
|
2
|
+
export declare enum GovActionType {
|
|
3
|
+
GOV_ACTION_TYPE_UNSPECIFIED = 0,
|
|
4
|
+
GOV_ACTION_TYPE_WARNING = 1,
|
|
5
|
+
GOV_ACTION_TYPE_DEMOTION = 2,
|
|
6
|
+
GOV_ACTION_TYPE_ZEROING = 3,
|
|
7
|
+
GOV_ACTION_TYPE_TAG_REMOVAL = 4,
|
|
8
|
+
GOV_ACTION_TYPE_FORUM_PAUSE = 5,
|
|
9
|
+
GOV_ACTION_TYPE_THREAD_LOCK = 6,
|
|
10
|
+
GOV_ACTION_TYPE_THREAD_MOVE = 7,
|
|
11
|
+
UNRECOGNIZED = -1
|
|
12
|
+
}
|
|
13
|
+
export declare const GovActionTypeAmino: typeof GovActionType;
|
|
14
|
+
export declare function govActionTypeFromJSON(object: any): GovActionType;
|
|
15
|
+
export declare function govActionTypeToJSON(object: GovActionType): string;
|
|
16
|
+
/** MemberReportStatus represents the status of a member report. */
|
|
17
|
+
export declare enum MemberReportStatus {
|
|
18
|
+
MEMBER_REPORT_STATUS_UNSPECIFIED = 0,
|
|
19
|
+
MEMBER_REPORT_STATUS_PENDING = 1,
|
|
20
|
+
MEMBER_REPORT_STATUS_ESCALATED = 2,
|
|
21
|
+
MEMBER_REPORT_STATUS_RESOLVED = 3,
|
|
22
|
+
MEMBER_REPORT_STATUS_META_APPEALED = 4,
|
|
23
|
+
UNRECOGNIZED = -1
|
|
24
|
+
}
|
|
25
|
+
export declare const MemberReportStatusAmino: typeof MemberReportStatus;
|
|
26
|
+
export declare function memberReportStatusFromJSON(object: any): MemberReportStatus;
|
|
27
|
+
export declare function memberReportStatusToJSON(object: MemberReportStatus): string;
|
|
28
|
+
/** GovAppealStatus represents the status of a governance appeal. */
|
|
29
|
+
export declare enum GovAppealStatus {
|
|
30
|
+
GOV_APPEAL_STATUS_UNSPECIFIED = 0,
|
|
31
|
+
GOV_APPEAL_STATUS_PENDING = 1,
|
|
32
|
+
GOV_APPEAL_STATUS_UPHELD = 2,
|
|
33
|
+
GOV_APPEAL_STATUS_OVERTURNED = 3,
|
|
34
|
+
GOV_APPEAL_STATUS_TIMEOUT = 4,
|
|
35
|
+
UNRECOGNIZED = -1
|
|
36
|
+
}
|
|
37
|
+
export declare const GovAppealStatusAmino: typeof GovAppealStatus;
|
|
38
|
+
export declare function govAppealStatusFromJSON(object: any): GovAppealStatus;
|
|
39
|
+
export declare function govAppealStatusToJSON(object: GovAppealStatus): string;
|
|
@@ -0,0 +1,181 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.GovAppealStatusAmino = exports.GovAppealStatus = exports.MemberReportStatusAmino = exports.MemberReportStatus = exports.GovActionTypeAmino = exports.GovActionType = void 0;
|
|
4
|
+
exports.govActionTypeFromJSON = govActionTypeFromJSON;
|
|
5
|
+
exports.govActionTypeToJSON = govActionTypeToJSON;
|
|
6
|
+
exports.memberReportStatusFromJSON = memberReportStatusFromJSON;
|
|
7
|
+
exports.memberReportStatusToJSON = memberReportStatusToJSON;
|
|
8
|
+
exports.govAppealStatusFromJSON = govAppealStatusFromJSON;
|
|
9
|
+
exports.govAppealStatusToJSON = govAppealStatusToJSON;
|
|
10
|
+
//@ts-nocheck
|
|
11
|
+
/** GovActionType represents the type of governance action. */
|
|
12
|
+
var GovActionType;
|
|
13
|
+
(function (GovActionType) {
|
|
14
|
+
GovActionType[GovActionType["GOV_ACTION_TYPE_UNSPECIFIED"] = 0] = "GOV_ACTION_TYPE_UNSPECIFIED";
|
|
15
|
+
GovActionType[GovActionType["GOV_ACTION_TYPE_WARNING"] = 1] = "GOV_ACTION_TYPE_WARNING";
|
|
16
|
+
GovActionType[GovActionType["GOV_ACTION_TYPE_DEMOTION"] = 2] = "GOV_ACTION_TYPE_DEMOTION";
|
|
17
|
+
GovActionType[GovActionType["GOV_ACTION_TYPE_ZEROING"] = 3] = "GOV_ACTION_TYPE_ZEROING";
|
|
18
|
+
GovActionType[GovActionType["GOV_ACTION_TYPE_TAG_REMOVAL"] = 4] = "GOV_ACTION_TYPE_TAG_REMOVAL";
|
|
19
|
+
GovActionType[GovActionType["GOV_ACTION_TYPE_FORUM_PAUSE"] = 5] = "GOV_ACTION_TYPE_FORUM_PAUSE";
|
|
20
|
+
GovActionType[GovActionType["GOV_ACTION_TYPE_THREAD_LOCK"] = 6] = "GOV_ACTION_TYPE_THREAD_LOCK";
|
|
21
|
+
GovActionType[GovActionType["GOV_ACTION_TYPE_THREAD_MOVE"] = 7] = "GOV_ACTION_TYPE_THREAD_MOVE";
|
|
22
|
+
GovActionType[GovActionType["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
|
|
23
|
+
})(GovActionType || (exports.GovActionType = GovActionType = {}));
|
|
24
|
+
exports.GovActionTypeAmino = GovActionType;
|
|
25
|
+
function govActionTypeFromJSON(object) {
|
|
26
|
+
switch (object) {
|
|
27
|
+
case 0:
|
|
28
|
+
case "GOV_ACTION_TYPE_UNSPECIFIED":
|
|
29
|
+
return GovActionType.GOV_ACTION_TYPE_UNSPECIFIED;
|
|
30
|
+
case 1:
|
|
31
|
+
case "GOV_ACTION_TYPE_WARNING":
|
|
32
|
+
return GovActionType.GOV_ACTION_TYPE_WARNING;
|
|
33
|
+
case 2:
|
|
34
|
+
case "GOV_ACTION_TYPE_DEMOTION":
|
|
35
|
+
return GovActionType.GOV_ACTION_TYPE_DEMOTION;
|
|
36
|
+
case 3:
|
|
37
|
+
case "GOV_ACTION_TYPE_ZEROING":
|
|
38
|
+
return GovActionType.GOV_ACTION_TYPE_ZEROING;
|
|
39
|
+
case 4:
|
|
40
|
+
case "GOV_ACTION_TYPE_TAG_REMOVAL":
|
|
41
|
+
return GovActionType.GOV_ACTION_TYPE_TAG_REMOVAL;
|
|
42
|
+
case 5:
|
|
43
|
+
case "GOV_ACTION_TYPE_FORUM_PAUSE":
|
|
44
|
+
return GovActionType.GOV_ACTION_TYPE_FORUM_PAUSE;
|
|
45
|
+
case 6:
|
|
46
|
+
case "GOV_ACTION_TYPE_THREAD_LOCK":
|
|
47
|
+
return GovActionType.GOV_ACTION_TYPE_THREAD_LOCK;
|
|
48
|
+
case 7:
|
|
49
|
+
case "GOV_ACTION_TYPE_THREAD_MOVE":
|
|
50
|
+
return GovActionType.GOV_ACTION_TYPE_THREAD_MOVE;
|
|
51
|
+
case -1:
|
|
52
|
+
case "UNRECOGNIZED":
|
|
53
|
+
default:
|
|
54
|
+
return GovActionType.UNRECOGNIZED;
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
function govActionTypeToJSON(object) {
|
|
58
|
+
switch (object) {
|
|
59
|
+
case GovActionType.GOV_ACTION_TYPE_UNSPECIFIED:
|
|
60
|
+
return "GOV_ACTION_TYPE_UNSPECIFIED";
|
|
61
|
+
case GovActionType.GOV_ACTION_TYPE_WARNING:
|
|
62
|
+
return "GOV_ACTION_TYPE_WARNING";
|
|
63
|
+
case GovActionType.GOV_ACTION_TYPE_DEMOTION:
|
|
64
|
+
return "GOV_ACTION_TYPE_DEMOTION";
|
|
65
|
+
case GovActionType.GOV_ACTION_TYPE_ZEROING:
|
|
66
|
+
return "GOV_ACTION_TYPE_ZEROING";
|
|
67
|
+
case GovActionType.GOV_ACTION_TYPE_TAG_REMOVAL:
|
|
68
|
+
return "GOV_ACTION_TYPE_TAG_REMOVAL";
|
|
69
|
+
case GovActionType.GOV_ACTION_TYPE_FORUM_PAUSE:
|
|
70
|
+
return "GOV_ACTION_TYPE_FORUM_PAUSE";
|
|
71
|
+
case GovActionType.GOV_ACTION_TYPE_THREAD_LOCK:
|
|
72
|
+
return "GOV_ACTION_TYPE_THREAD_LOCK";
|
|
73
|
+
case GovActionType.GOV_ACTION_TYPE_THREAD_MOVE:
|
|
74
|
+
return "GOV_ACTION_TYPE_THREAD_MOVE";
|
|
75
|
+
case GovActionType.UNRECOGNIZED:
|
|
76
|
+
default:
|
|
77
|
+
return "UNRECOGNIZED";
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
/** MemberReportStatus represents the status of a member report. */
|
|
81
|
+
var MemberReportStatus;
|
|
82
|
+
(function (MemberReportStatus) {
|
|
83
|
+
MemberReportStatus[MemberReportStatus["MEMBER_REPORT_STATUS_UNSPECIFIED"] = 0] = "MEMBER_REPORT_STATUS_UNSPECIFIED";
|
|
84
|
+
MemberReportStatus[MemberReportStatus["MEMBER_REPORT_STATUS_PENDING"] = 1] = "MEMBER_REPORT_STATUS_PENDING";
|
|
85
|
+
MemberReportStatus[MemberReportStatus["MEMBER_REPORT_STATUS_ESCALATED"] = 2] = "MEMBER_REPORT_STATUS_ESCALATED";
|
|
86
|
+
MemberReportStatus[MemberReportStatus["MEMBER_REPORT_STATUS_RESOLVED"] = 3] = "MEMBER_REPORT_STATUS_RESOLVED";
|
|
87
|
+
MemberReportStatus[MemberReportStatus["MEMBER_REPORT_STATUS_META_APPEALED"] = 4] = "MEMBER_REPORT_STATUS_META_APPEALED";
|
|
88
|
+
MemberReportStatus[MemberReportStatus["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
|
|
89
|
+
})(MemberReportStatus || (exports.MemberReportStatus = MemberReportStatus = {}));
|
|
90
|
+
exports.MemberReportStatusAmino = MemberReportStatus;
|
|
91
|
+
function memberReportStatusFromJSON(object) {
|
|
92
|
+
switch (object) {
|
|
93
|
+
case 0:
|
|
94
|
+
case "MEMBER_REPORT_STATUS_UNSPECIFIED":
|
|
95
|
+
return MemberReportStatus.MEMBER_REPORT_STATUS_UNSPECIFIED;
|
|
96
|
+
case 1:
|
|
97
|
+
case "MEMBER_REPORT_STATUS_PENDING":
|
|
98
|
+
return MemberReportStatus.MEMBER_REPORT_STATUS_PENDING;
|
|
99
|
+
case 2:
|
|
100
|
+
case "MEMBER_REPORT_STATUS_ESCALATED":
|
|
101
|
+
return MemberReportStatus.MEMBER_REPORT_STATUS_ESCALATED;
|
|
102
|
+
case 3:
|
|
103
|
+
case "MEMBER_REPORT_STATUS_RESOLVED":
|
|
104
|
+
return MemberReportStatus.MEMBER_REPORT_STATUS_RESOLVED;
|
|
105
|
+
case 4:
|
|
106
|
+
case "MEMBER_REPORT_STATUS_META_APPEALED":
|
|
107
|
+
return MemberReportStatus.MEMBER_REPORT_STATUS_META_APPEALED;
|
|
108
|
+
case -1:
|
|
109
|
+
case "UNRECOGNIZED":
|
|
110
|
+
default:
|
|
111
|
+
return MemberReportStatus.UNRECOGNIZED;
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
function memberReportStatusToJSON(object) {
|
|
115
|
+
switch (object) {
|
|
116
|
+
case MemberReportStatus.MEMBER_REPORT_STATUS_UNSPECIFIED:
|
|
117
|
+
return "MEMBER_REPORT_STATUS_UNSPECIFIED";
|
|
118
|
+
case MemberReportStatus.MEMBER_REPORT_STATUS_PENDING:
|
|
119
|
+
return "MEMBER_REPORT_STATUS_PENDING";
|
|
120
|
+
case MemberReportStatus.MEMBER_REPORT_STATUS_ESCALATED:
|
|
121
|
+
return "MEMBER_REPORT_STATUS_ESCALATED";
|
|
122
|
+
case MemberReportStatus.MEMBER_REPORT_STATUS_RESOLVED:
|
|
123
|
+
return "MEMBER_REPORT_STATUS_RESOLVED";
|
|
124
|
+
case MemberReportStatus.MEMBER_REPORT_STATUS_META_APPEALED:
|
|
125
|
+
return "MEMBER_REPORT_STATUS_META_APPEALED";
|
|
126
|
+
case MemberReportStatus.UNRECOGNIZED:
|
|
127
|
+
default:
|
|
128
|
+
return "UNRECOGNIZED";
|
|
129
|
+
}
|
|
130
|
+
}
|
|
131
|
+
/** GovAppealStatus represents the status of a governance appeal. */
|
|
132
|
+
var GovAppealStatus;
|
|
133
|
+
(function (GovAppealStatus) {
|
|
134
|
+
GovAppealStatus[GovAppealStatus["GOV_APPEAL_STATUS_UNSPECIFIED"] = 0] = "GOV_APPEAL_STATUS_UNSPECIFIED";
|
|
135
|
+
GovAppealStatus[GovAppealStatus["GOV_APPEAL_STATUS_PENDING"] = 1] = "GOV_APPEAL_STATUS_PENDING";
|
|
136
|
+
GovAppealStatus[GovAppealStatus["GOV_APPEAL_STATUS_UPHELD"] = 2] = "GOV_APPEAL_STATUS_UPHELD";
|
|
137
|
+
GovAppealStatus[GovAppealStatus["GOV_APPEAL_STATUS_OVERTURNED"] = 3] = "GOV_APPEAL_STATUS_OVERTURNED";
|
|
138
|
+
GovAppealStatus[GovAppealStatus["GOV_APPEAL_STATUS_TIMEOUT"] = 4] = "GOV_APPEAL_STATUS_TIMEOUT";
|
|
139
|
+
GovAppealStatus[GovAppealStatus["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
|
|
140
|
+
})(GovAppealStatus || (exports.GovAppealStatus = GovAppealStatus = {}));
|
|
141
|
+
exports.GovAppealStatusAmino = GovAppealStatus;
|
|
142
|
+
function govAppealStatusFromJSON(object) {
|
|
143
|
+
switch (object) {
|
|
144
|
+
case 0:
|
|
145
|
+
case "GOV_APPEAL_STATUS_UNSPECIFIED":
|
|
146
|
+
return GovAppealStatus.GOV_APPEAL_STATUS_UNSPECIFIED;
|
|
147
|
+
case 1:
|
|
148
|
+
case "GOV_APPEAL_STATUS_PENDING":
|
|
149
|
+
return GovAppealStatus.GOV_APPEAL_STATUS_PENDING;
|
|
150
|
+
case 2:
|
|
151
|
+
case "GOV_APPEAL_STATUS_UPHELD":
|
|
152
|
+
return GovAppealStatus.GOV_APPEAL_STATUS_UPHELD;
|
|
153
|
+
case 3:
|
|
154
|
+
case "GOV_APPEAL_STATUS_OVERTURNED":
|
|
155
|
+
return GovAppealStatus.GOV_APPEAL_STATUS_OVERTURNED;
|
|
156
|
+
case 4:
|
|
157
|
+
case "GOV_APPEAL_STATUS_TIMEOUT":
|
|
158
|
+
return GovAppealStatus.GOV_APPEAL_STATUS_TIMEOUT;
|
|
159
|
+
case -1:
|
|
160
|
+
case "UNRECOGNIZED":
|
|
161
|
+
default:
|
|
162
|
+
return GovAppealStatus.UNRECOGNIZED;
|
|
163
|
+
}
|
|
164
|
+
}
|
|
165
|
+
function govAppealStatusToJSON(object) {
|
|
166
|
+
switch (object) {
|
|
167
|
+
case GovAppealStatus.GOV_APPEAL_STATUS_UNSPECIFIED:
|
|
168
|
+
return "GOV_APPEAL_STATUS_UNSPECIFIED";
|
|
169
|
+
case GovAppealStatus.GOV_APPEAL_STATUS_PENDING:
|
|
170
|
+
return "GOV_APPEAL_STATUS_PENDING";
|
|
171
|
+
case GovAppealStatus.GOV_APPEAL_STATUS_UPHELD:
|
|
172
|
+
return "GOV_APPEAL_STATUS_UPHELD";
|
|
173
|
+
case GovAppealStatus.GOV_APPEAL_STATUS_OVERTURNED:
|
|
174
|
+
return "GOV_APPEAL_STATUS_OVERTURNED";
|
|
175
|
+
case GovAppealStatus.GOV_APPEAL_STATUS_TIMEOUT:
|
|
176
|
+
return "GOV_APPEAL_STATUS_TIMEOUT";
|
|
177
|
+
case GovAppealStatus.UNRECOGNIZED:
|
|
178
|
+
default:
|
|
179
|
+
return "UNRECOGNIZED";
|
|
180
|
+
}
|
|
181
|
+
}
|
|
@@ -0,0 +1,330 @@
|
|
|
1
|
+
import { BinaryReader, BinaryWriter } from "../../../binary";
|
|
2
|
+
import { DeepPartial } from "../../../helpers";
|
|
3
|
+
/**
|
|
4
|
+
* RoleType identifies a kind of bonded role across the chain. Values are
|
|
5
|
+
* module-scoped: naming convention is ROLE_TYPE_<OWNING_MODULE>_<ROLE>. A role
|
|
6
|
+
* is owned by exactly one module, which is the sole writer of its
|
|
7
|
+
* BondedRoleConfig. Independent bond pools, configs, and slashing surfaces per
|
|
8
|
+
* role; cross-role coupling (if ever needed) belongs in the gaining module, not
|
|
9
|
+
* in this primitive.
|
|
10
|
+
*/
|
|
11
|
+
export declare enum RoleType {
|
|
12
|
+
ROLE_TYPE_UNSPECIFIED = 0,
|
|
13
|
+
ROLE_TYPE_FORUM_SENTINEL = 1,
|
|
14
|
+
ROLE_TYPE_COLLECT_CURATOR = 2,
|
|
15
|
+
ROLE_TYPE_FEDERATION_VERIFIER = 3,
|
|
16
|
+
UNRECOGNIZED = -1
|
|
17
|
+
}
|
|
18
|
+
export declare const RoleTypeAmino: typeof RoleType;
|
|
19
|
+
export declare function roleTypeFromJSON(object: any): RoleType;
|
|
20
|
+
export declare function roleTypeToJSON(object: RoleType): string;
|
|
21
|
+
/**
|
|
22
|
+
* BondedRoleStatus represents the lifecycle status of a bonded role record.
|
|
23
|
+
* NORMAL: full privileges; bond at or above min_bond.
|
|
24
|
+
* RECOVERY: bond dropped below min_bond but at or above demotion_threshold;
|
|
25
|
+
* reduced privileges depending on role, rewards may auto-bond.
|
|
26
|
+
* DEMOTED: bond below demotion_threshold; privileges revoked; cooldown
|
|
27
|
+
* enforced before re-bonding.
|
|
28
|
+
*/
|
|
29
|
+
export declare enum BondedRoleStatus {
|
|
30
|
+
BONDED_ROLE_STATUS_UNSPECIFIED = 0,
|
|
31
|
+
BONDED_ROLE_STATUS_NORMAL = 1,
|
|
32
|
+
BONDED_ROLE_STATUS_RECOVERY = 2,
|
|
33
|
+
BONDED_ROLE_STATUS_DEMOTED = 3,
|
|
34
|
+
UNRECOGNIZED = -1
|
|
35
|
+
}
|
|
36
|
+
export declare const BondedRoleStatusAmino: typeof BondedRoleStatus;
|
|
37
|
+
export declare function bondedRoleStatusFromJSON(object: any): BondedRoleStatus;
|
|
38
|
+
export declare function bondedRoleStatusToJSON(object: BondedRoleStatus): string;
|
|
39
|
+
/**
|
|
40
|
+
* BondedRole is the generic accountability record for a role-playing member:
|
|
41
|
+
* identity, bond, bond status, and activity stamps. Module-specific action
|
|
42
|
+
* counters (hides, reviews, verifications, etc.) live in per-module activity
|
|
43
|
+
* protos owned by the role's module.
|
|
44
|
+
* @name BondedRole
|
|
45
|
+
* @package sparkdream.rep.v1
|
|
46
|
+
* @see proto type: sparkdream.rep.v1.BondedRole
|
|
47
|
+
*/
|
|
48
|
+
export interface BondedRole {
|
|
49
|
+
/**
|
|
50
|
+
* address is the bech32 address of the member holding this role.
|
|
51
|
+
*/
|
|
52
|
+
address: string;
|
|
53
|
+
/**
|
|
54
|
+
* role_type identifies which role this record represents. The composite key
|
|
55
|
+
* (role_type, address) allows a single address to hold multiple roles.
|
|
56
|
+
*/
|
|
57
|
+
roleType: RoleType;
|
|
58
|
+
/**
|
|
59
|
+
* bond_status is the current lifecycle status (NORMAL / RECOVERY / DEMOTED).
|
|
60
|
+
*/
|
|
61
|
+
bondStatus: BondedRoleStatus;
|
|
62
|
+
/**
|
|
63
|
+
* current_bond is the total DREAM locked as this role's bond (math.Int string).
|
|
64
|
+
*/
|
|
65
|
+
currentBond: string;
|
|
66
|
+
/**
|
|
67
|
+
* total_committed_bond is the portion of current_bond reserved against
|
|
68
|
+
* pending actions (math.Int string). Available bond = current_bond -
|
|
69
|
+
* total_committed_bond.
|
|
70
|
+
*/
|
|
71
|
+
totalCommittedBond: string;
|
|
72
|
+
/**
|
|
73
|
+
* registered_at is the block height at which this role was first bonded.
|
|
74
|
+
*/
|
|
75
|
+
registeredAt: bigint;
|
|
76
|
+
/**
|
|
77
|
+
* last_active_epoch is the most recent epoch in which the role performed a
|
|
78
|
+
* tracked action. Used for inactivity cleanup.
|
|
79
|
+
*/
|
|
80
|
+
lastActiveEpoch: bigint;
|
|
81
|
+
/**
|
|
82
|
+
* consecutive_inactive_epochs counts epochs since last activity, reset to 0
|
|
83
|
+
* when RecordActivity fires.
|
|
84
|
+
*/
|
|
85
|
+
consecutiveInactiveEpochs: bigint;
|
|
86
|
+
/**
|
|
87
|
+
* demotion_cooldown_until is the unix timestamp until which a demoted role
|
|
88
|
+
* cannot re-bond.
|
|
89
|
+
*/
|
|
90
|
+
demotionCooldownUntil: bigint;
|
|
91
|
+
/**
|
|
92
|
+
* cumulative_rewards tracks DREAM rewards earned in this role (math.Int
|
|
93
|
+
* string). Module-specific reward distributors write here.
|
|
94
|
+
*/
|
|
95
|
+
cumulativeRewards: string;
|
|
96
|
+
/**
|
|
97
|
+
* last_reward_epoch is the most recent epoch in which rewards were paid for
|
|
98
|
+
* this role.
|
|
99
|
+
*/
|
|
100
|
+
lastRewardEpoch: bigint;
|
|
101
|
+
}
|
|
102
|
+
export interface BondedRoleProtoMsg {
|
|
103
|
+
typeUrl: "/sparkdream.rep.v1.BondedRole";
|
|
104
|
+
value: Uint8Array;
|
|
105
|
+
}
|
|
106
|
+
/**
|
|
107
|
+
* BondedRole is the generic accountability record for a role-playing member:
|
|
108
|
+
* identity, bond, bond status, and activity stamps. Module-specific action
|
|
109
|
+
* counters (hides, reviews, verifications, etc.) live in per-module activity
|
|
110
|
+
* protos owned by the role's module.
|
|
111
|
+
* @name BondedRoleAmino
|
|
112
|
+
* @package sparkdream.rep.v1
|
|
113
|
+
* @see proto type: sparkdream.rep.v1.BondedRole
|
|
114
|
+
*/
|
|
115
|
+
export interface BondedRoleAmino {
|
|
116
|
+
/**
|
|
117
|
+
* address is the bech32 address of the member holding this role.
|
|
118
|
+
*/
|
|
119
|
+
address?: string;
|
|
120
|
+
/**
|
|
121
|
+
* role_type identifies which role this record represents. The composite key
|
|
122
|
+
* (role_type, address) allows a single address to hold multiple roles.
|
|
123
|
+
*/
|
|
124
|
+
role_type?: RoleType;
|
|
125
|
+
/**
|
|
126
|
+
* bond_status is the current lifecycle status (NORMAL / RECOVERY / DEMOTED).
|
|
127
|
+
*/
|
|
128
|
+
bond_status?: BondedRoleStatus;
|
|
129
|
+
/**
|
|
130
|
+
* current_bond is the total DREAM locked as this role's bond (math.Int string).
|
|
131
|
+
*/
|
|
132
|
+
current_bond?: string;
|
|
133
|
+
/**
|
|
134
|
+
* total_committed_bond is the portion of current_bond reserved against
|
|
135
|
+
* pending actions (math.Int string). Available bond = current_bond -
|
|
136
|
+
* total_committed_bond.
|
|
137
|
+
*/
|
|
138
|
+
total_committed_bond?: string;
|
|
139
|
+
/**
|
|
140
|
+
* registered_at is the block height at which this role was first bonded.
|
|
141
|
+
*/
|
|
142
|
+
registered_at?: string;
|
|
143
|
+
/**
|
|
144
|
+
* last_active_epoch is the most recent epoch in which the role performed a
|
|
145
|
+
* tracked action. Used for inactivity cleanup.
|
|
146
|
+
*/
|
|
147
|
+
last_active_epoch?: string;
|
|
148
|
+
/**
|
|
149
|
+
* consecutive_inactive_epochs counts epochs since last activity, reset to 0
|
|
150
|
+
* when RecordActivity fires.
|
|
151
|
+
*/
|
|
152
|
+
consecutive_inactive_epochs?: string;
|
|
153
|
+
/**
|
|
154
|
+
* demotion_cooldown_until is the unix timestamp until which a demoted role
|
|
155
|
+
* cannot re-bond.
|
|
156
|
+
*/
|
|
157
|
+
demotion_cooldown_until?: string;
|
|
158
|
+
/**
|
|
159
|
+
* cumulative_rewards tracks DREAM rewards earned in this role (math.Int
|
|
160
|
+
* string). Module-specific reward distributors write here.
|
|
161
|
+
*/
|
|
162
|
+
cumulative_rewards?: string;
|
|
163
|
+
/**
|
|
164
|
+
* last_reward_epoch is the most recent epoch in which rewards were paid for
|
|
165
|
+
* this role.
|
|
166
|
+
*/
|
|
167
|
+
last_reward_epoch?: string;
|
|
168
|
+
}
|
|
169
|
+
export interface BondedRoleAminoMsg {
|
|
170
|
+
type: "/sparkdream.rep.v1.BondedRole";
|
|
171
|
+
value: BondedRoleAmino;
|
|
172
|
+
}
|
|
173
|
+
/**
|
|
174
|
+
* BondedRoleConfig holds the per-role policy knobs enforced by x/rep at
|
|
175
|
+
* MsgBondRole time. The source-of-truth field values live on the owning
|
|
176
|
+
* module's operational params (flattened); the owning module write-throughs
|
|
177
|
+
* the full config via SetBondedRoleConfig on change and at InitGenesis.
|
|
178
|
+
*
|
|
179
|
+
* Every field is mutable via the owning module's operational-params flow. No
|
|
180
|
+
* chain-upgrade gates — these are operational accountability knobs, not
|
|
181
|
+
* monetary policy.
|
|
182
|
+
* @name BondedRoleConfig
|
|
183
|
+
* @package sparkdream.rep.v1
|
|
184
|
+
* @see proto type: sparkdream.rep.v1.BondedRoleConfig
|
|
185
|
+
*/
|
|
186
|
+
export interface BondedRoleConfig {
|
|
187
|
+
/**
|
|
188
|
+
* role_type is the key this config applies to.
|
|
189
|
+
*/
|
|
190
|
+
roleType: RoleType;
|
|
191
|
+
/**
|
|
192
|
+
* min_bond is the minimum DREAM required to bond this role (math.Int
|
|
193
|
+
* string). Bonds at or above this amount are NORMAL.
|
|
194
|
+
*/
|
|
195
|
+
minBond: string;
|
|
196
|
+
/**
|
|
197
|
+
* min_rep_tier is the minimum reputation tier required to bond the role.
|
|
198
|
+
* Zero = no rep-tier gate.
|
|
199
|
+
*/
|
|
200
|
+
minRepTier: bigint;
|
|
201
|
+
/**
|
|
202
|
+
* min_trust_level is the minimum trust level required to bond the role, as
|
|
203
|
+
* a string enum name (e.g. "TRUST_LEVEL_ESTABLISHED"). Empty = no
|
|
204
|
+
* trust-level gate.
|
|
205
|
+
*/
|
|
206
|
+
minTrustLevel: string;
|
|
207
|
+
/**
|
|
208
|
+
* min_age_blocks is a shared policy knob: the minimum block-age the role
|
|
209
|
+
* must have been bonded before the owning module will let the role take
|
|
210
|
+
* action. Enforced by the role's owning module at action time (read via
|
|
211
|
+
* GetBondedRoleConfig), NOT by x/rep at bond time. Zero = no age gate.
|
|
212
|
+
*/
|
|
213
|
+
minAgeBlocks: bigint;
|
|
214
|
+
/**
|
|
215
|
+
* demotion_cooldown is the number of seconds a DEMOTED role must wait
|
|
216
|
+
* before re-bonding.
|
|
217
|
+
*/
|
|
218
|
+
demotionCooldown: bigint;
|
|
219
|
+
/**
|
|
220
|
+
* demotion_threshold is the bond floor below which the role transitions
|
|
221
|
+
* from RECOVERY to DEMOTED (math.Int string).
|
|
222
|
+
*/
|
|
223
|
+
demotionThreshold: string;
|
|
224
|
+
}
|
|
225
|
+
export interface BondedRoleConfigProtoMsg {
|
|
226
|
+
typeUrl: "/sparkdream.rep.v1.BondedRoleConfig";
|
|
227
|
+
value: Uint8Array;
|
|
228
|
+
}
|
|
229
|
+
/**
|
|
230
|
+
* BondedRoleConfig holds the per-role policy knobs enforced by x/rep at
|
|
231
|
+
* MsgBondRole time. The source-of-truth field values live on the owning
|
|
232
|
+
* module's operational params (flattened); the owning module write-throughs
|
|
233
|
+
* the full config via SetBondedRoleConfig on change and at InitGenesis.
|
|
234
|
+
*
|
|
235
|
+
* Every field is mutable via the owning module's operational-params flow. No
|
|
236
|
+
* chain-upgrade gates — these are operational accountability knobs, not
|
|
237
|
+
* monetary policy.
|
|
238
|
+
* @name BondedRoleConfigAmino
|
|
239
|
+
* @package sparkdream.rep.v1
|
|
240
|
+
* @see proto type: sparkdream.rep.v1.BondedRoleConfig
|
|
241
|
+
*/
|
|
242
|
+
export interface BondedRoleConfigAmino {
|
|
243
|
+
/**
|
|
244
|
+
* role_type is the key this config applies to.
|
|
245
|
+
*/
|
|
246
|
+
role_type?: RoleType;
|
|
247
|
+
/**
|
|
248
|
+
* min_bond is the minimum DREAM required to bond this role (math.Int
|
|
249
|
+
* string). Bonds at or above this amount are NORMAL.
|
|
250
|
+
*/
|
|
251
|
+
min_bond?: string;
|
|
252
|
+
/**
|
|
253
|
+
* min_rep_tier is the minimum reputation tier required to bond the role.
|
|
254
|
+
* Zero = no rep-tier gate.
|
|
255
|
+
*/
|
|
256
|
+
min_rep_tier?: string;
|
|
257
|
+
/**
|
|
258
|
+
* min_trust_level is the minimum trust level required to bond the role, as
|
|
259
|
+
* a string enum name (e.g. "TRUST_LEVEL_ESTABLISHED"). Empty = no
|
|
260
|
+
* trust-level gate.
|
|
261
|
+
*/
|
|
262
|
+
min_trust_level?: string;
|
|
263
|
+
/**
|
|
264
|
+
* min_age_blocks is a shared policy knob: the minimum block-age the role
|
|
265
|
+
* must have been bonded before the owning module will let the role take
|
|
266
|
+
* action. Enforced by the role's owning module at action time (read via
|
|
267
|
+
* GetBondedRoleConfig), NOT by x/rep at bond time. Zero = no age gate.
|
|
268
|
+
*/
|
|
269
|
+
min_age_blocks?: string;
|
|
270
|
+
/**
|
|
271
|
+
* demotion_cooldown is the number of seconds a DEMOTED role must wait
|
|
272
|
+
* before re-bonding.
|
|
273
|
+
*/
|
|
274
|
+
demotion_cooldown?: string;
|
|
275
|
+
/**
|
|
276
|
+
* demotion_threshold is the bond floor below which the role transitions
|
|
277
|
+
* from RECOVERY to DEMOTED (math.Int string).
|
|
278
|
+
*/
|
|
279
|
+
demotion_threshold?: string;
|
|
280
|
+
}
|
|
281
|
+
export interface BondedRoleConfigAminoMsg {
|
|
282
|
+
type: "/sparkdream.rep.v1.BondedRoleConfig";
|
|
283
|
+
value: BondedRoleConfigAmino;
|
|
284
|
+
}
|
|
285
|
+
/**
|
|
286
|
+
* BondedRole is the generic accountability record for a role-playing member:
|
|
287
|
+
* identity, bond, bond status, and activity stamps. Module-specific action
|
|
288
|
+
* counters (hides, reviews, verifications, etc.) live in per-module activity
|
|
289
|
+
* protos owned by the role's module.
|
|
290
|
+
* @name BondedRole
|
|
291
|
+
* @package sparkdream.rep.v1
|
|
292
|
+
* @see proto type: sparkdream.rep.v1.BondedRole
|
|
293
|
+
*/
|
|
294
|
+
export declare const BondedRole: {
|
|
295
|
+
typeUrl: string;
|
|
296
|
+
encode(message: BondedRole, writer?: BinaryWriter): BinaryWriter;
|
|
297
|
+
decode(input: BinaryReader | Uint8Array, length?: number): BondedRole;
|
|
298
|
+
fromPartial(object: DeepPartial<BondedRole>): BondedRole;
|
|
299
|
+
fromAmino(object: BondedRoleAmino): BondedRole;
|
|
300
|
+
toAmino(message: BondedRole): BondedRoleAmino;
|
|
301
|
+
fromAminoMsg(object: BondedRoleAminoMsg): BondedRole;
|
|
302
|
+
fromProtoMsg(message: BondedRoleProtoMsg): BondedRole;
|
|
303
|
+
toProto(message: BondedRole): Uint8Array;
|
|
304
|
+
toProtoMsg(message: BondedRole): BondedRoleProtoMsg;
|
|
305
|
+
};
|
|
306
|
+
/**
|
|
307
|
+
* BondedRoleConfig holds the per-role policy knobs enforced by x/rep at
|
|
308
|
+
* MsgBondRole time. The source-of-truth field values live on the owning
|
|
309
|
+
* module's operational params (flattened); the owning module write-throughs
|
|
310
|
+
* the full config via SetBondedRoleConfig on change and at InitGenesis.
|
|
311
|
+
*
|
|
312
|
+
* Every field is mutable via the owning module's operational-params flow. No
|
|
313
|
+
* chain-upgrade gates — these are operational accountability knobs, not
|
|
314
|
+
* monetary policy.
|
|
315
|
+
* @name BondedRoleConfig
|
|
316
|
+
* @package sparkdream.rep.v1
|
|
317
|
+
* @see proto type: sparkdream.rep.v1.BondedRoleConfig
|
|
318
|
+
*/
|
|
319
|
+
export declare const BondedRoleConfig: {
|
|
320
|
+
typeUrl: string;
|
|
321
|
+
encode(message: BondedRoleConfig, writer?: BinaryWriter): BinaryWriter;
|
|
322
|
+
decode(input: BinaryReader | Uint8Array, length?: number): BondedRoleConfig;
|
|
323
|
+
fromPartial(object: DeepPartial<BondedRoleConfig>): BondedRoleConfig;
|
|
324
|
+
fromAmino(object: BondedRoleConfigAmino): BondedRoleConfig;
|
|
325
|
+
toAmino(message: BondedRoleConfig): BondedRoleConfigAmino;
|
|
326
|
+
fromAminoMsg(object: BondedRoleConfigAminoMsg): BondedRoleConfig;
|
|
327
|
+
fromProtoMsg(message: BondedRoleConfigProtoMsg): BondedRoleConfig;
|
|
328
|
+
toProto(message: BondedRoleConfig): Uint8Array;
|
|
329
|
+
toProtoMsg(message: BondedRoleConfig): BondedRoleConfigProtoMsg;
|
|
330
|
+
};
|