@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,453 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.BondedRoleConfig = exports.BondedRole = exports.BondedRoleStatusAmino = exports.BondedRoleStatus = exports.RoleTypeAmino = exports.RoleType = void 0;
|
|
4
|
+
exports.roleTypeFromJSON = roleTypeFromJSON;
|
|
5
|
+
exports.roleTypeToJSON = roleTypeToJSON;
|
|
6
|
+
exports.bondedRoleStatusFromJSON = bondedRoleStatusFromJSON;
|
|
7
|
+
exports.bondedRoleStatusToJSON = bondedRoleStatusToJSON;
|
|
8
|
+
//@ts-nocheck
|
|
9
|
+
const binary_1 = require("../../../binary");
|
|
10
|
+
/**
|
|
11
|
+
* RoleType identifies a kind of bonded role across the chain. Values are
|
|
12
|
+
* module-scoped: naming convention is ROLE_TYPE_<OWNING_MODULE>_<ROLE>. A role
|
|
13
|
+
* is owned by exactly one module, which is the sole writer of its
|
|
14
|
+
* BondedRoleConfig. Independent bond pools, configs, and slashing surfaces per
|
|
15
|
+
* role; cross-role coupling (if ever needed) belongs in the gaining module, not
|
|
16
|
+
* in this primitive.
|
|
17
|
+
*/
|
|
18
|
+
var RoleType;
|
|
19
|
+
(function (RoleType) {
|
|
20
|
+
RoleType[RoleType["ROLE_TYPE_UNSPECIFIED"] = 0] = "ROLE_TYPE_UNSPECIFIED";
|
|
21
|
+
RoleType[RoleType["ROLE_TYPE_FORUM_SENTINEL"] = 1] = "ROLE_TYPE_FORUM_SENTINEL";
|
|
22
|
+
RoleType[RoleType["ROLE_TYPE_COLLECT_CURATOR"] = 2] = "ROLE_TYPE_COLLECT_CURATOR";
|
|
23
|
+
RoleType[RoleType["ROLE_TYPE_FEDERATION_VERIFIER"] = 3] = "ROLE_TYPE_FEDERATION_VERIFIER";
|
|
24
|
+
RoleType[RoleType["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
|
|
25
|
+
})(RoleType || (exports.RoleType = RoleType = {}));
|
|
26
|
+
exports.RoleTypeAmino = RoleType;
|
|
27
|
+
function roleTypeFromJSON(object) {
|
|
28
|
+
switch (object) {
|
|
29
|
+
case 0:
|
|
30
|
+
case "ROLE_TYPE_UNSPECIFIED":
|
|
31
|
+
return RoleType.ROLE_TYPE_UNSPECIFIED;
|
|
32
|
+
case 1:
|
|
33
|
+
case "ROLE_TYPE_FORUM_SENTINEL":
|
|
34
|
+
return RoleType.ROLE_TYPE_FORUM_SENTINEL;
|
|
35
|
+
case 2:
|
|
36
|
+
case "ROLE_TYPE_COLLECT_CURATOR":
|
|
37
|
+
return RoleType.ROLE_TYPE_COLLECT_CURATOR;
|
|
38
|
+
case 3:
|
|
39
|
+
case "ROLE_TYPE_FEDERATION_VERIFIER":
|
|
40
|
+
return RoleType.ROLE_TYPE_FEDERATION_VERIFIER;
|
|
41
|
+
case -1:
|
|
42
|
+
case "UNRECOGNIZED":
|
|
43
|
+
default:
|
|
44
|
+
return RoleType.UNRECOGNIZED;
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
function roleTypeToJSON(object) {
|
|
48
|
+
switch (object) {
|
|
49
|
+
case RoleType.ROLE_TYPE_UNSPECIFIED:
|
|
50
|
+
return "ROLE_TYPE_UNSPECIFIED";
|
|
51
|
+
case RoleType.ROLE_TYPE_FORUM_SENTINEL:
|
|
52
|
+
return "ROLE_TYPE_FORUM_SENTINEL";
|
|
53
|
+
case RoleType.ROLE_TYPE_COLLECT_CURATOR:
|
|
54
|
+
return "ROLE_TYPE_COLLECT_CURATOR";
|
|
55
|
+
case RoleType.ROLE_TYPE_FEDERATION_VERIFIER:
|
|
56
|
+
return "ROLE_TYPE_FEDERATION_VERIFIER";
|
|
57
|
+
case RoleType.UNRECOGNIZED:
|
|
58
|
+
default:
|
|
59
|
+
return "UNRECOGNIZED";
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
/**
|
|
63
|
+
* BondedRoleStatus represents the lifecycle status of a bonded role record.
|
|
64
|
+
* NORMAL: full privileges; bond at or above min_bond.
|
|
65
|
+
* RECOVERY: bond dropped below min_bond but at or above demotion_threshold;
|
|
66
|
+
* reduced privileges depending on role, rewards may auto-bond.
|
|
67
|
+
* DEMOTED: bond below demotion_threshold; privileges revoked; cooldown
|
|
68
|
+
* enforced before re-bonding.
|
|
69
|
+
*/
|
|
70
|
+
var BondedRoleStatus;
|
|
71
|
+
(function (BondedRoleStatus) {
|
|
72
|
+
BondedRoleStatus[BondedRoleStatus["BONDED_ROLE_STATUS_UNSPECIFIED"] = 0] = "BONDED_ROLE_STATUS_UNSPECIFIED";
|
|
73
|
+
BondedRoleStatus[BondedRoleStatus["BONDED_ROLE_STATUS_NORMAL"] = 1] = "BONDED_ROLE_STATUS_NORMAL";
|
|
74
|
+
BondedRoleStatus[BondedRoleStatus["BONDED_ROLE_STATUS_RECOVERY"] = 2] = "BONDED_ROLE_STATUS_RECOVERY";
|
|
75
|
+
BondedRoleStatus[BondedRoleStatus["BONDED_ROLE_STATUS_DEMOTED"] = 3] = "BONDED_ROLE_STATUS_DEMOTED";
|
|
76
|
+
BondedRoleStatus[BondedRoleStatus["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
|
|
77
|
+
})(BondedRoleStatus || (exports.BondedRoleStatus = BondedRoleStatus = {}));
|
|
78
|
+
exports.BondedRoleStatusAmino = BondedRoleStatus;
|
|
79
|
+
function bondedRoleStatusFromJSON(object) {
|
|
80
|
+
switch (object) {
|
|
81
|
+
case 0:
|
|
82
|
+
case "BONDED_ROLE_STATUS_UNSPECIFIED":
|
|
83
|
+
return BondedRoleStatus.BONDED_ROLE_STATUS_UNSPECIFIED;
|
|
84
|
+
case 1:
|
|
85
|
+
case "BONDED_ROLE_STATUS_NORMAL":
|
|
86
|
+
return BondedRoleStatus.BONDED_ROLE_STATUS_NORMAL;
|
|
87
|
+
case 2:
|
|
88
|
+
case "BONDED_ROLE_STATUS_RECOVERY":
|
|
89
|
+
return BondedRoleStatus.BONDED_ROLE_STATUS_RECOVERY;
|
|
90
|
+
case 3:
|
|
91
|
+
case "BONDED_ROLE_STATUS_DEMOTED":
|
|
92
|
+
return BondedRoleStatus.BONDED_ROLE_STATUS_DEMOTED;
|
|
93
|
+
case -1:
|
|
94
|
+
case "UNRECOGNIZED":
|
|
95
|
+
default:
|
|
96
|
+
return BondedRoleStatus.UNRECOGNIZED;
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
function bondedRoleStatusToJSON(object) {
|
|
100
|
+
switch (object) {
|
|
101
|
+
case BondedRoleStatus.BONDED_ROLE_STATUS_UNSPECIFIED:
|
|
102
|
+
return "BONDED_ROLE_STATUS_UNSPECIFIED";
|
|
103
|
+
case BondedRoleStatus.BONDED_ROLE_STATUS_NORMAL:
|
|
104
|
+
return "BONDED_ROLE_STATUS_NORMAL";
|
|
105
|
+
case BondedRoleStatus.BONDED_ROLE_STATUS_RECOVERY:
|
|
106
|
+
return "BONDED_ROLE_STATUS_RECOVERY";
|
|
107
|
+
case BondedRoleStatus.BONDED_ROLE_STATUS_DEMOTED:
|
|
108
|
+
return "BONDED_ROLE_STATUS_DEMOTED";
|
|
109
|
+
case BondedRoleStatus.UNRECOGNIZED:
|
|
110
|
+
default:
|
|
111
|
+
return "UNRECOGNIZED";
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
function createBaseBondedRole() {
|
|
115
|
+
return {
|
|
116
|
+
address: "",
|
|
117
|
+
roleType: 0,
|
|
118
|
+
bondStatus: 0,
|
|
119
|
+
currentBond: "",
|
|
120
|
+
totalCommittedBond: "",
|
|
121
|
+
registeredAt: BigInt(0),
|
|
122
|
+
lastActiveEpoch: BigInt(0),
|
|
123
|
+
consecutiveInactiveEpochs: BigInt(0),
|
|
124
|
+
demotionCooldownUntil: BigInt(0),
|
|
125
|
+
cumulativeRewards: "",
|
|
126
|
+
lastRewardEpoch: BigInt(0)
|
|
127
|
+
};
|
|
128
|
+
}
|
|
129
|
+
/**
|
|
130
|
+
* BondedRole is the generic accountability record for a role-playing member:
|
|
131
|
+
* identity, bond, bond status, and activity stamps. Module-specific action
|
|
132
|
+
* counters (hides, reviews, verifications, etc.) live in per-module activity
|
|
133
|
+
* protos owned by the role's module.
|
|
134
|
+
* @name BondedRole
|
|
135
|
+
* @package sparkdream.rep.v1
|
|
136
|
+
* @see proto type: sparkdream.rep.v1.BondedRole
|
|
137
|
+
*/
|
|
138
|
+
exports.BondedRole = {
|
|
139
|
+
typeUrl: "/sparkdream.rep.v1.BondedRole",
|
|
140
|
+
encode(message, writer = binary_1.BinaryWriter.create()) {
|
|
141
|
+
if (message.address !== "") {
|
|
142
|
+
writer.uint32(10).string(message.address);
|
|
143
|
+
}
|
|
144
|
+
if (message.roleType !== 0) {
|
|
145
|
+
writer.uint32(16).int32(message.roleType);
|
|
146
|
+
}
|
|
147
|
+
if (message.bondStatus !== 0) {
|
|
148
|
+
writer.uint32(24).int32(message.bondStatus);
|
|
149
|
+
}
|
|
150
|
+
if (message.currentBond !== "") {
|
|
151
|
+
writer.uint32(34).string(message.currentBond);
|
|
152
|
+
}
|
|
153
|
+
if (message.totalCommittedBond !== "") {
|
|
154
|
+
writer.uint32(42).string(message.totalCommittedBond);
|
|
155
|
+
}
|
|
156
|
+
if (message.registeredAt !== BigInt(0)) {
|
|
157
|
+
writer.uint32(48).int64(message.registeredAt);
|
|
158
|
+
}
|
|
159
|
+
if (message.lastActiveEpoch !== BigInt(0)) {
|
|
160
|
+
writer.uint32(56).int64(message.lastActiveEpoch);
|
|
161
|
+
}
|
|
162
|
+
if (message.consecutiveInactiveEpochs !== BigInt(0)) {
|
|
163
|
+
writer.uint32(64).uint64(message.consecutiveInactiveEpochs);
|
|
164
|
+
}
|
|
165
|
+
if (message.demotionCooldownUntil !== BigInt(0)) {
|
|
166
|
+
writer.uint32(72).int64(message.demotionCooldownUntil);
|
|
167
|
+
}
|
|
168
|
+
if (message.cumulativeRewards !== "") {
|
|
169
|
+
writer.uint32(82).string(message.cumulativeRewards);
|
|
170
|
+
}
|
|
171
|
+
if (message.lastRewardEpoch !== BigInt(0)) {
|
|
172
|
+
writer.uint32(88).int64(message.lastRewardEpoch);
|
|
173
|
+
}
|
|
174
|
+
return writer;
|
|
175
|
+
},
|
|
176
|
+
decode(input, length) {
|
|
177
|
+
const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input);
|
|
178
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
179
|
+
const message = createBaseBondedRole();
|
|
180
|
+
while (reader.pos < end) {
|
|
181
|
+
const tag = reader.uint32();
|
|
182
|
+
switch (tag >>> 3) {
|
|
183
|
+
case 1:
|
|
184
|
+
message.address = reader.string();
|
|
185
|
+
break;
|
|
186
|
+
case 2:
|
|
187
|
+
message.roleType = reader.int32();
|
|
188
|
+
break;
|
|
189
|
+
case 3:
|
|
190
|
+
message.bondStatus = reader.int32();
|
|
191
|
+
break;
|
|
192
|
+
case 4:
|
|
193
|
+
message.currentBond = reader.string();
|
|
194
|
+
break;
|
|
195
|
+
case 5:
|
|
196
|
+
message.totalCommittedBond = reader.string();
|
|
197
|
+
break;
|
|
198
|
+
case 6:
|
|
199
|
+
message.registeredAt = reader.int64();
|
|
200
|
+
break;
|
|
201
|
+
case 7:
|
|
202
|
+
message.lastActiveEpoch = reader.int64();
|
|
203
|
+
break;
|
|
204
|
+
case 8:
|
|
205
|
+
message.consecutiveInactiveEpochs = reader.uint64();
|
|
206
|
+
break;
|
|
207
|
+
case 9:
|
|
208
|
+
message.demotionCooldownUntil = reader.int64();
|
|
209
|
+
break;
|
|
210
|
+
case 10:
|
|
211
|
+
message.cumulativeRewards = reader.string();
|
|
212
|
+
break;
|
|
213
|
+
case 11:
|
|
214
|
+
message.lastRewardEpoch = reader.int64();
|
|
215
|
+
break;
|
|
216
|
+
default:
|
|
217
|
+
reader.skipType(tag & 7);
|
|
218
|
+
break;
|
|
219
|
+
}
|
|
220
|
+
}
|
|
221
|
+
return message;
|
|
222
|
+
},
|
|
223
|
+
fromPartial(object) {
|
|
224
|
+
const message = createBaseBondedRole();
|
|
225
|
+
message.address = object.address ?? "";
|
|
226
|
+
message.roleType = object.roleType ?? 0;
|
|
227
|
+
message.bondStatus = object.bondStatus ?? 0;
|
|
228
|
+
message.currentBond = object.currentBond ?? "";
|
|
229
|
+
message.totalCommittedBond = object.totalCommittedBond ?? "";
|
|
230
|
+
message.registeredAt = object.registeredAt !== undefined && object.registeredAt !== null ? BigInt(object.registeredAt.toString()) : BigInt(0);
|
|
231
|
+
message.lastActiveEpoch = object.lastActiveEpoch !== undefined && object.lastActiveEpoch !== null ? BigInt(object.lastActiveEpoch.toString()) : BigInt(0);
|
|
232
|
+
message.consecutiveInactiveEpochs = object.consecutiveInactiveEpochs !== undefined && object.consecutiveInactiveEpochs !== null ? BigInt(object.consecutiveInactiveEpochs.toString()) : BigInt(0);
|
|
233
|
+
message.demotionCooldownUntil = object.demotionCooldownUntil !== undefined && object.demotionCooldownUntil !== null ? BigInt(object.demotionCooldownUntil.toString()) : BigInt(0);
|
|
234
|
+
message.cumulativeRewards = object.cumulativeRewards ?? "";
|
|
235
|
+
message.lastRewardEpoch = object.lastRewardEpoch !== undefined && object.lastRewardEpoch !== null ? BigInt(object.lastRewardEpoch.toString()) : BigInt(0);
|
|
236
|
+
return message;
|
|
237
|
+
},
|
|
238
|
+
fromAmino(object) {
|
|
239
|
+
const message = createBaseBondedRole();
|
|
240
|
+
if (object.address !== undefined && object.address !== null) {
|
|
241
|
+
message.address = object.address;
|
|
242
|
+
}
|
|
243
|
+
if (object.role_type !== undefined && object.role_type !== null) {
|
|
244
|
+
message.roleType = object.role_type;
|
|
245
|
+
}
|
|
246
|
+
if (object.bond_status !== undefined && object.bond_status !== null) {
|
|
247
|
+
message.bondStatus = object.bond_status;
|
|
248
|
+
}
|
|
249
|
+
if (object.current_bond !== undefined && object.current_bond !== null) {
|
|
250
|
+
message.currentBond = object.current_bond;
|
|
251
|
+
}
|
|
252
|
+
if (object.total_committed_bond !== undefined && object.total_committed_bond !== null) {
|
|
253
|
+
message.totalCommittedBond = object.total_committed_bond;
|
|
254
|
+
}
|
|
255
|
+
if (object.registered_at !== undefined && object.registered_at !== null) {
|
|
256
|
+
message.registeredAt = BigInt(object.registered_at);
|
|
257
|
+
}
|
|
258
|
+
if (object.last_active_epoch !== undefined && object.last_active_epoch !== null) {
|
|
259
|
+
message.lastActiveEpoch = BigInt(object.last_active_epoch);
|
|
260
|
+
}
|
|
261
|
+
if (object.consecutive_inactive_epochs !== undefined && object.consecutive_inactive_epochs !== null) {
|
|
262
|
+
message.consecutiveInactiveEpochs = BigInt(object.consecutive_inactive_epochs);
|
|
263
|
+
}
|
|
264
|
+
if (object.demotion_cooldown_until !== undefined && object.demotion_cooldown_until !== null) {
|
|
265
|
+
message.demotionCooldownUntil = BigInt(object.demotion_cooldown_until);
|
|
266
|
+
}
|
|
267
|
+
if (object.cumulative_rewards !== undefined && object.cumulative_rewards !== null) {
|
|
268
|
+
message.cumulativeRewards = object.cumulative_rewards;
|
|
269
|
+
}
|
|
270
|
+
if (object.last_reward_epoch !== undefined && object.last_reward_epoch !== null) {
|
|
271
|
+
message.lastRewardEpoch = BigInt(object.last_reward_epoch);
|
|
272
|
+
}
|
|
273
|
+
return message;
|
|
274
|
+
},
|
|
275
|
+
toAmino(message) {
|
|
276
|
+
const obj = {};
|
|
277
|
+
obj.address = message.address === "" ? undefined : message.address;
|
|
278
|
+
obj.role_type = message.roleType === 0 ? undefined : message.roleType;
|
|
279
|
+
obj.bond_status = message.bondStatus === 0 ? undefined : message.bondStatus;
|
|
280
|
+
obj.current_bond = message.currentBond === "" ? undefined : message.currentBond;
|
|
281
|
+
obj.total_committed_bond = message.totalCommittedBond === "" ? undefined : message.totalCommittedBond;
|
|
282
|
+
obj.registered_at = message.registeredAt !== BigInt(0) ? message.registeredAt?.toString() : undefined;
|
|
283
|
+
obj.last_active_epoch = message.lastActiveEpoch !== BigInt(0) ? message.lastActiveEpoch?.toString() : undefined;
|
|
284
|
+
obj.consecutive_inactive_epochs = message.consecutiveInactiveEpochs !== BigInt(0) ? message.consecutiveInactiveEpochs?.toString() : undefined;
|
|
285
|
+
obj.demotion_cooldown_until = message.demotionCooldownUntil !== BigInt(0) ? message.demotionCooldownUntil?.toString() : undefined;
|
|
286
|
+
obj.cumulative_rewards = message.cumulativeRewards === "" ? undefined : message.cumulativeRewards;
|
|
287
|
+
obj.last_reward_epoch = message.lastRewardEpoch !== BigInt(0) ? message.lastRewardEpoch?.toString() : undefined;
|
|
288
|
+
return obj;
|
|
289
|
+
},
|
|
290
|
+
fromAminoMsg(object) {
|
|
291
|
+
return exports.BondedRole.fromAmino(object.value);
|
|
292
|
+
},
|
|
293
|
+
fromProtoMsg(message) {
|
|
294
|
+
return exports.BondedRole.decode(message.value);
|
|
295
|
+
},
|
|
296
|
+
toProto(message) {
|
|
297
|
+
return exports.BondedRole.encode(message).finish();
|
|
298
|
+
},
|
|
299
|
+
toProtoMsg(message) {
|
|
300
|
+
return {
|
|
301
|
+
typeUrl: "/sparkdream.rep.v1.BondedRole",
|
|
302
|
+
value: exports.BondedRole.encode(message).finish()
|
|
303
|
+
};
|
|
304
|
+
}
|
|
305
|
+
};
|
|
306
|
+
function createBaseBondedRoleConfig() {
|
|
307
|
+
return {
|
|
308
|
+
roleType: 0,
|
|
309
|
+
minBond: "",
|
|
310
|
+
minRepTier: BigInt(0),
|
|
311
|
+
minTrustLevel: "",
|
|
312
|
+
minAgeBlocks: BigInt(0),
|
|
313
|
+
demotionCooldown: BigInt(0),
|
|
314
|
+
demotionThreshold: ""
|
|
315
|
+
};
|
|
316
|
+
}
|
|
317
|
+
/**
|
|
318
|
+
* BondedRoleConfig holds the per-role policy knobs enforced by x/rep at
|
|
319
|
+
* MsgBondRole time. The source-of-truth field values live on the owning
|
|
320
|
+
* module's operational params (flattened); the owning module write-throughs
|
|
321
|
+
* the full config via SetBondedRoleConfig on change and at InitGenesis.
|
|
322
|
+
*
|
|
323
|
+
* Every field is mutable via the owning module's operational-params flow. No
|
|
324
|
+
* chain-upgrade gates — these are operational accountability knobs, not
|
|
325
|
+
* monetary policy.
|
|
326
|
+
* @name BondedRoleConfig
|
|
327
|
+
* @package sparkdream.rep.v1
|
|
328
|
+
* @see proto type: sparkdream.rep.v1.BondedRoleConfig
|
|
329
|
+
*/
|
|
330
|
+
exports.BondedRoleConfig = {
|
|
331
|
+
typeUrl: "/sparkdream.rep.v1.BondedRoleConfig",
|
|
332
|
+
encode(message, writer = binary_1.BinaryWriter.create()) {
|
|
333
|
+
if (message.roleType !== 0) {
|
|
334
|
+
writer.uint32(8).int32(message.roleType);
|
|
335
|
+
}
|
|
336
|
+
if (message.minBond !== "") {
|
|
337
|
+
writer.uint32(18).string(message.minBond);
|
|
338
|
+
}
|
|
339
|
+
if (message.minRepTier !== BigInt(0)) {
|
|
340
|
+
writer.uint32(24).uint64(message.minRepTier);
|
|
341
|
+
}
|
|
342
|
+
if (message.minTrustLevel !== "") {
|
|
343
|
+
writer.uint32(34).string(message.minTrustLevel);
|
|
344
|
+
}
|
|
345
|
+
if (message.minAgeBlocks !== BigInt(0)) {
|
|
346
|
+
writer.uint32(40).int64(message.minAgeBlocks);
|
|
347
|
+
}
|
|
348
|
+
if (message.demotionCooldown !== BigInt(0)) {
|
|
349
|
+
writer.uint32(48).int64(message.demotionCooldown);
|
|
350
|
+
}
|
|
351
|
+
if (message.demotionThreshold !== "") {
|
|
352
|
+
writer.uint32(58).string(message.demotionThreshold);
|
|
353
|
+
}
|
|
354
|
+
return writer;
|
|
355
|
+
},
|
|
356
|
+
decode(input, length) {
|
|
357
|
+
const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input);
|
|
358
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
359
|
+
const message = createBaseBondedRoleConfig();
|
|
360
|
+
while (reader.pos < end) {
|
|
361
|
+
const tag = reader.uint32();
|
|
362
|
+
switch (tag >>> 3) {
|
|
363
|
+
case 1:
|
|
364
|
+
message.roleType = reader.int32();
|
|
365
|
+
break;
|
|
366
|
+
case 2:
|
|
367
|
+
message.minBond = reader.string();
|
|
368
|
+
break;
|
|
369
|
+
case 3:
|
|
370
|
+
message.minRepTier = reader.uint64();
|
|
371
|
+
break;
|
|
372
|
+
case 4:
|
|
373
|
+
message.minTrustLevel = reader.string();
|
|
374
|
+
break;
|
|
375
|
+
case 5:
|
|
376
|
+
message.minAgeBlocks = reader.int64();
|
|
377
|
+
break;
|
|
378
|
+
case 6:
|
|
379
|
+
message.demotionCooldown = reader.int64();
|
|
380
|
+
break;
|
|
381
|
+
case 7:
|
|
382
|
+
message.demotionThreshold = reader.string();
|
|
383
|
+
break;
|
|
384
|
+
default:
|
|
385
|
+
reader.skipType(tag & 7);
|
|
386
|
+
break;
|
|
387
|
+
}
|
|
388
|
+
}
|
|
389
|
+
return message;
|
|
390
|
+
},
|
|
391
|
+
fromPartial(object) {
|
|
392
|
+
const message = createBaseBondedRoleConfig();
|
|
393
|
+
message.roleType = object.roleType ?? 0;
|
|
394
|
+
message.minBond = object.minBond ?? "";
|
|
395
|
+
message.minRepTier = object.minRepTier !== undefined && object.minRepTier !== null ? BigInt(object.minRepTier.toString()) : BigInt(0);
|
|
396
|
+
message.minTrustLevel = object.minTrustLevel ?? "";
|
|
397
|
+
message.minAgeBlocks = object.minAgeBlocks !== undefined && object.minAgeBlocks !== null ? BigInt(object.minAgeBlocks.toString()) : BigInt(0);
|
|
398
|
+
message.demotionCooldown = object.demotionCooldown !== undefined && object.demotionCooldown !== null ? BigInt(object.demotionCooldown.toString()) : BigInt(0);
|
|
399
|
+
message.demotionThreshold = object.demotionThreshold ?? "";
|
|
400
|
+
return message;
|
|
401
|
+
},
|
|
402
|
+
fromAmino(object) {
|
|
403
|
+
const message = createBaseBondedRoleConfig();
|
|
404
|
+
if (object.role_type !== undefined && object.role_type !== null) {
|
|
405
|
+
message.roleType = object.role_type;
|
|
406
|
+
}
|
|
407
|
+
if (object.min_bond !== undefined && object.min_bond !== null) {
|
|
408
|
+
message.minBond = object.min_bond;
|
|
409
|
+
}
|
|
410
|
+
if (object.min_rep_tier !== undefined && object.min_rep_tier !== null) {
|
|
411
|
+
message.minRepTier = BigInt(object.min_rep_tier);
|
|
412
|
+
}
|
|
413
|
+
if (object.min_trust_level !== undefined && object.min_trust_level !== null) {
|
|
414
|
+
message.minTrustLevel = object.min_trust_level;
|
|
415
|
+
}
|
|
416
|
+
if (object.min_age_blocks !== undefined && object.min_age_blocks !== null) {
|
|
417
|
+
message.minAgeBlocks = BigInt(object.min_age_blocks);
|
|
418
|
+
}
|
|
419
|
+
if (object.demotion_cooldown !== undefined && object.demotion_cooldown !== null) {
|
|
420
|
+
message.demotionCooldown = BigInt(object.demotion_cooldown);
|
|
421
|
+
}
|
|
422
|
+
if (object.demotion_threshold !== undefined && object.demotion_threshold !== null) {
|
|
423
|
+
message.demotionThreshold = object.demotion_threshold;
|
|
424
|
+
}
|
|
425
|
+
return message;
|
|
426
|
+
},
|
|
427
|
+
toAmino(message) {
|
|
428
|
+
const obj = {};
|
|
429
|
+
obj.role_type = message.roleType === 0 ? undefined : message.roleType;
|
|
430
|
+
obj.min_bond = message.minBond === "" ? undefined : message.minBond;
|
|
431
|
+
obj.min_rep_tier = message.minRepTier !== BigInt(0) ? message.minRepTier?.toString() : undefined;
|
|
432
|
+
obj.min_trust_level = message.minTrustLevel === "" ? undefined : message.minTrustLevel;
|
|
433
|
+
obj.min_age_blocks = message.minAgeBlocks !== BigInt(0) ? message.minAgeBlocks?.toString() : undefined;
|
|
434
|
+
obj.demotion_cooldown = message.demotionCooldown !== BigInt(0) ? message.demotionCooldown?.toString() : undefined;
|
|
435
|
+
obj.demotion_threshold = message.demotionThreshold === "" ? undefined : message.demotionThreshold;
|
|
436
|
+
return obj;
|
|
437
|
+
},
|
|
438
|
+
fromAminoMsg(object) {
|
|
439
|
+
return exports.BondedRoleConfig.fromAmino(object.value);
|
|
440
|
+
},
|
|
441
|
+
fromProtoMsg(message) {
|
|
442
|
+
return exports.BondedRoleConfig.decode(message.value);
|
|
443
|
+
},
|
|
444
|
+
toProto(message) {
|
|
445
|
+
return exports.BondedRoleConfig.encode(message).finish();
|
|
446
|
+
},
|
|
447
|
+
toProtoMsg(message) {
|
|
448
|
+
return {
|
|
449
|
+
typeUrl: "/sparkdream.rep.v1.BondedRoleConfig",
|
|
450
|
+
value: exports.BondedRoleConfig.encode(message).finish()
|
|
451
|
+
};
|
|
452
|
+
}
|
|
453
|
+
};
|
|
@@ -9,6 +9,16 @@ import { JuryReview, JuryReviewAmino } from "./jury_review";
|
|
|
9
9
|
import { Interim, InterimAmino } from "./interim";
|
|
10
10
|
import { InterimTemplate, InterimTemplateAmino } from "./interim_template";
|
|
11
11
|
import { ContentChallenge, ContentChallengeAmino } from "./content_challenge";
|
|
12
|
+
import { Tag, TagAmino } from "./tag";
|
|
13
|
+
import { ReservedTag, ReservedTagAmino } from "./reserved_tag";
|
|
14
|
+
import { TagReport, TagReportAmino } from "./tag_report";
|
|
15
|
+
import { TagBudget, TagBudgetAmino } from "./tag_budget";
|
|
16
|
+
import { TagBudgetAward, TagBudgetAwardAmino } from "./tag_budget_award";
|
|
17
|
+
import { JuryParticipation, JuryParticipationAmino } from "./jury_participation";
|
|
18
|
+
import { MemberReport, MemberReportAmino } from "./member_report";
|
|
19
|
+
import { MemberWarning, MemberWarningAmino } from "./member_warning";
|
|
20
|
+
import { GovActionAppeal, GovActionAppealAmino } from "./gov_action_appeal";
|
|
21
|
+
import { BondedRole, BondedRoleAmino, BondedRoleConfig, BondedRoleConfigAmino } from "./bonded_role";
|
|
12
22
|
import { BinaryReader, BinaryWriter } from "../../../binary";
|
|
13
23
|
import { DeepPartial } from "../../../helpers";
|
|
14
24
|
/**
|
|
@@ -53,6 +63,36 @@ export interface GenesisState {
|
|
|
53
63
|
* Content initiative links for conviction propagation
|
|
54
64
|
*/
|
|
55
65
|
contentInitiativeLinks: ContentInitiativeLink[];
|
|
66
|
+
/**
|
|
67
|
+
* Tag registry
|
|
68
|
+
*/
|
|
69
|
+
tagMap: Tag[];
|
|
70
|
+
reservedTagMap: ReservedTag[];
|
|
71
|
+
/**
|
|
72
|
+
* Tag moderation
|
|
73
|
+
*/
|
|
74
|
+
tagReportMap: TagReport[];
|
|
75
|
+
/**
|
|
76
|
+
* Tag budgets
|
|
77
|
+
*/
|
|
78
|
+
tagBudgetList: TagBudget[];
|
|
79
|
+
tagBudgetCount: bigint;
|
|
80
|
+
tagBudgetAwardList: TagBudgetAward[];
|
|
81
|
+
tagBudgetAwardCount: bigint;
|
|
82
|
+
/**
|
|
83
|
+
* Accountability state
|
|
84
|
+
*/
|
|
85
|
+
juryParticipationMap: JuryParticipation[];
|
|
86
|
+
memberReportMap: MemberReport[];
|
|
87
|
+
memberWarningList: MemberWarning[];
|
|
88
|
+
memberWarningCount: bigint;
|
|
89
|
+
govActionAppealList: GovActionAppeal[];
|
|
90
|
+
govActionAppealCount: bigint;
|
|
91
|
+
/**
|
|
92
|
+
* Bonded-role primitive (Phase 1 of bonded-role generalization).
|
|
93
|
+
*/
|
|
94
|
+
bondedRoleList: BondedRole[];
|
|
95
|
+
bondedRoleConfigList: BondedRoleConfig[];
|
|
56
96
|
}
|
|
57
97
|
export interface GenesisStateProtoMsg {
|
|
58
98
|
typeUrl: "/sparkdream.rep.v1.GenesisState";
|
|
@@ -100,6 +140,36 @@ export interface GenesisStateAmino {
|
|
|
100
140
|
* Content initiative links for conviction propagation
|
|
101
141
|
*/
|
|
102
142
|
content_initiative_links?: ContentInitiativeLinkAmino[];
|
|
143
|
+
/**
|
|
144
|
+
* Tag registry
|
|
145
|
+
*/
|
|
146
|
+
tag_map?: TagAmino[];
|
|
147
|
+
reserved_tag_map?: ReservedTagAmino[];
|
|
148
|
+
/**
|
|
149
|
+
* Tag moderation
|
|
150
|
+
*/
|
|
151
|
+
tag_report_map?: TagReportAmino[];
|
|
152
|
+
/**
|
|
153
|
+
* Tag budgets
|
|
154
|
+
*/
|
|
155
|
+
tag_budget_list?: TagBudgetAmino[];
|
|
156
|
+
tag_budget_count?: string;
|
|
157
|
+
tag_budget_award_list?: TagBudgetAwardAmino[];
|
|
158
|
+
tag_budget_award_count?: string;
|
|
159
|
+
/**
|
|
160
|
+
* Accountability state
|
|
161
|
+
*/
|
|
162
|
+
jury_participation_map?: JuryParticipationAmino[];
|
|
163
|
+
member_report_map?: MemberReportAmino[];
|
|
164
|
+
member_warning_list?: MemberWarningAmino[];
|
|
165
|
+
member_warning_count?: string;
|
|
166
|
+
gov_action_appeal_list?: GovActionAppealAmino[];
|
|
167
|
+
gov_action_appeal_count?: string;
|
|
168
|
+
/**
|
|
169
|
+
* Bonded-role primitive (Phase 1 of bonded-role generalization).
|
|
170
|
+
*/
|
|
171
|
+
bonded_role_list?: BondedRoleAmino[];
|
|
172
|
+
bonded_role_config_list?: BondedRoleConfigAmino[];
|
|
103
173
|
}
|
|
104
174
|
export interface GenesisStateAminoMsg {
|
|
105
175
|
type: "/sparkdream.rep.v1.GenesisState";
|