@sparkdreamnft/sparkdreamjs 0.0.8 → 0.0.9
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 +106 -106
- package/esm/sparkdream/bundle.js +368 -332
- package/esm/sparkdream/client.js +4 -1
- 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 +244 -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 +2629 -0
- package/esm/sparkdream/federation/v1/query.lcd.js +152 -0
- package/esm/sparkdream/federation/v1/query.rpc.Query.js +189 -0
- package/esm/sparkdream/federation/v1/tx.amino.js +139 -0
- package/esm/sparkdream/federation/v1/tx.js +4199 -0
- package/esm/sparkdream/federation/v1/tx.registry.js +501 -0
- package/esm/sparkdream/federation/v1/tx.rpc.msg.js +173 -0
- package/esm/sparkdream/federation/v1/types.js +2571 -0
- package/esm/sparkdream/forum/v1/genesis.js +26 -250
- 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/lcd.js +5 -0
- package/esm/sparkdream/rep/v1/accountability.js +172 -0
- package/esm/sparkdream/rep/v1/genesis.js +209 -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 +4 -4
- 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 +5260 -0
- package/esm/sparkdream/rep/v1/query.lcd.js +286 -0
- package/esm/sparkdream/rep/v1/query.rpc.Query.js +333 -1
- package/esm/sparkdream/{common → rep}/v1/reserved_tag.js +5 -5
- package/esm/sparkdream/rep/v1/sentinel_activity.js +214 -0
- 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 +2439 -0
- package/esm/sparkdream/rep/v1/tx.registry.js +290 -2
- package/esm/sparkdream/rep/v1/tx.rpc.msg.js +102 -1
- package/esm/sparkdream/rpc.query.js +3 -0
- package/esm/sparkdream/rpc.tx.js +3 -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 +106 -106
- package/package.json +1 -1
- package/sparkdream/bundle.d.ts +13210 -11120
- package/sparkdream/bundle.js +368 -332
- package/sparkdream/client.d.ts +202 -57
- package/sparkdream/client.js +4 -1
- 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 +78 -0
- package/sparkdream/federation/v1/genesis.js +247 -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 +1541 -0
- package/sparkdream/federation/v1/query.js +2632 -0
- package/sparkdream/federation/v1/query.lcd.d.ts +26 -0
- package/sparkdream/federation/v1/query.lcd.js +156 -0
- package/sparkdream/federation/v1/query.rpc.Query.d.ts +66 -0
- package/sparkdream/federation/v1/query.rpc.Query.js +194 -0
- package/sparkdream/federation/v1/tx.amino.d.ts +138 -0
- package/sparkdream/federation/v1/tx.amino.js +142 -0
- package/sparkdream/federation/v1/tx.d.ts +2311 -0
- package/sparkdream/federation/v1/tx.js +4203 -0
- package/sparkdream/federation/v1/tx.registry.d.ts +337 -0
- package/sparkdream/federation/v1/tx.registry.js +505 -0
- package/sparkdream/federation/v1/tx.rpc.msg.d.ts +64 -0
- package/sparkdream/federation/v1/tx.rpc.msg.js +178 -0
- package/sparkdream/federation/v1/types.d.ts +906 -0
- package/sparkdream/federation/v1/types.js +2588 -0
- package/sparkdream/forum/v1/genesis.d.ts +0 -41
- package/sparkdream/forum/v1/genesis.js +26 -250
- 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/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/genesis.d.ts +68 -0
- package/sparkdream/rep/v1/genesis.js +209 -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/{forum → rep}/v1/member_report.d.ts +9 -9
- package/sparkdream/{forum → rep}/v1/member_report.js +4 -4
- 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 +4197 -1129
- package/sparkdream/rep/v1/query.js +5263 -1
- package/sparkdream/rep/v1/query.lcd.d.ts +35 -1
- package/sparkdream/rep/v1/query.lcd.js +286 -0
- package/sparkdream/rep/v1/query.rpc.Query.d.ts +137 -1
- package/sparkdream/rep/v1/query.rpc.Query.js +332 -0
- package/sparkdream/{common → rep}/v1/reserved_tag.d.ts +11 -11
- package/sparkdream/{common → rep}/v1/reserved_tag.js +5 -5
- package/sparkdream/rep/v1/sentinel_activity.d.ts +79 -0
- package/sparkdream/rep/v1/sentinel_activity.js +219 -0
- 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 +1467 -0
- package/sparkdream/rep/v1/tx.js +2440 -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 +62 -1
- package/sparkdream/rep/v1/tx.rpc.msg.js +101 -0
- package/sparkdream/rpc.query.d.ts +58 -34
- 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/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_salvation_status.d.ts +0 -54
- package/sparkdream/forum/v1/member_salvation_status.js +0 -122
|
@@ -9,13 +9,13 @@ function createBaseReservedTag() {
|
|
|
9
9
|
}
|
|
10
10
|
/**
|
|
11
11
|
* ReservedTag defines a tag reserved by authority (governance or council).
|
|
12
|
-
*
|
|
12
|
+
* Owned by x/rep.
|
|
13
13
|
* @name ReservedTag
|
|
14
|
-
* @package sparkdream.
|
|
15
|
-
* @see proto type: sparkdream.
|
|
14
|
+
* @package sparkdream.rep.v1
|
|
15
|
+
* @see proto type: sparkdream.rep.v1.ReservedTag
|
|
16
16
|
*/
|
|
17
17
|
export const ReservedTag = {
|
|
18
|
-
typeUrl: "/sparkdream.
|
|
18
|
+
typeUrl: "/sparkdream.rep.v1.ReservedTag",
|
|
19
19
|
encode(message, writer = BinaryWriter.create()) {
|
|
20
20
|
if (message.name !== "") {
|
|
21
21
|
writer.uint32(10).string(message.name);
|
|
@@ -89,7 +89,7 @@ export const ReservedTag = {
|
|
|
89
89
|
},
|
|
90
90
|
toProtoMsg(message) {
|
|
91
91
|
return {
|
|
92
|
-
typeUrl: "/sparkdream.
|
|
92
|
+
typeUrl: "/sparkdream.rep.v1.ReservedTag",
|
|
93
93
|
value: ReservedTag.encode(message).finish()
|
|
94
94
|
};
|
|
95
95
|
}
|
|
@@ -0,0 +1,214 @@
|
|
|
1
|
+
//@ts-nocheck
|
|
2
|
+
import { BinaryReader, BinaryWriter } from "../../../binary";
|
|
3
|
+
/** SentinelBondStatus represents the bond status of a sentinel. */
|
|
4
|
+
export var SentinelBondStatus;
|
|
5
|
+
(function (SentinelBondStatus) {
|
|
6
|
+
SentinelBondStatus[SentinelBondStatus["SENTINEL_BOND_STATUS_UNSPECIFIED"] = 0] = "SENTINEL_BOND_STATUS_UNSPECIFIED";
|
|
7
|
+
SentinelBondStatus[SentinelBondStatus["SENTINEL_BOND_STATUS_NORMAL"] = 1] = "SENTINEL_BOND_STATUS_NORMAL";
|
|
8
|
+
SentinelBondStatus[SentinelBondStatus["SENTINEL_BOND_STATUS_RECOVERY"] = 2] = "SENTINEL_BOND_STATUS_RECOVERY";
|
|
9
|
+
SentinelBondStatus[SentinelBondStatus["SENTINEL_BOND_STATUS_DEMOTED"] = 3] = "SENTINEL_BOND_STATUS_DEMOTED";
|
|
10
|
+
SentinelBondStatus[SentinelBondStatus["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
|
|
11
|
+
})(SentinelBondStatus || (SentinelBondStatus = {}));
|
|
12
|
+
export const SentinelBondStatusAmino = SentinelBondStatus;
|
|
13
|
+
export function sentinelBondStatusFromJSON(object) {
|
|
14
|
+
switch (object) {
|
|
15
|
+
case 0:
|
|
16
|
+
case "SENTINEL_BOND_STATUS_UNSPECIFIED":
|
|
17
|
+
return SentinelBondStatus.SENTINEL_BOND_STATUS_UNSPECIFIED;
|
|
18
|
+
case 1:
|
|
19
|
+
case "SENTINEL_BOND_STATUS_NORMAL":
|
|
20
|
+
return SentinelBondStatus.SENTINEL_BOND_STATUS_NORMAL;
|
|
21
|
+
case 2:
|
|
22
|
+
case "SENTINEL_BOND_STATUS_RECOVERY":
|
|
23
|
+
return SentinelBondStatus.SENTINEL_BOND_STATUS_RECOVERY;
|
|
24
|
+
case 3:
|
|
25
|
+
case "SENTINEL_BOND_STATUS_DEMOTED":
|
|
26
|
+
return SentinelBondStatus.SENTINEL_BOND_STATUS_DEMOTED;
|
|
27
|
+
case -1:
|
|
28
|
+
case "UNRECOGNIZED":
|
|
29
|
+
default:
|
|
30
|
+
return SentinelBondStatus.UNRECOGNIZED;
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
export function sentinelBondStatusToJSON(object) {
|
|
34
|
+
switch (object) {
|
|
35
|
+
case SentinelBondStatus.SENTINEL_BOND_STATUS_UNSPECIFIED:
|
|
36
|
+
return "SENTINEL_BOND_STATUS_UNSPECIFIED";
|
|
37
|
+
case SentinelBondStatus.SENTINEL_BOND_STATUS_NORMAL:
|
|
38
|
+
return "SENTINEL_BOND_STATUS_NORMAL";
|
|
39
|
+
case SentinelBondStatus.SENTINEL_BOND_STATUS_RECOVERY:
|
|
40
|
+
return "SENTINEL_BOND_STATUS_RECOVERY";
|
|
41
|
+
case SentinelBondStatus.SENTINEL_BOND_STATUS_DEMOTED:
|
|
42
|
+
return "SENTINEL_BOND_STATUS_DEMOTED";
|
|
43
|
+
case SentinelBondStatus.UNRECOGNIZED:
|
|
44
|
+
default:
|
|
45
|
+
return "UNRECOGNIZED";
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
function createBaseSentinelActivity() {
|
|
49
|
+
return {
|
|
50
|
+
address: "",
|
|
51
|
+
bondStatus: 0,
|
|
52
|
+
currentBond: "",
|
|
53
|
+
totalCommittedBond: "",
|
|
54
|
+
lastActiveEpoch: BigInt(0),
|
|
55
|
+
consecutiveInactiveEpochs: BigInt(0),
|
|
56
|
+
demotionCooldownUntil: BigInt(0),
|
|
57
|
+
cumulativeRewards: "",
|
|
58
|
+
lastRewardEpoch: BigInt(0)
|
|
59
|
+
};
|
|
60
|
+
}
|
|
61
|
+
/**
|
|
62
|
+
* SentinelActivity holds the generic accountability record for a sentinel:
|
|
63
|
+
* identity, bond, bond status, and activity stamps. Forum-specific action
|
|
64
|
+
* counters live in sparkdream.forum.v1.SentinelActivity.
|
|
65
|
+
* @name SentinelActivity
|
|
66
|
+
* @package sparkdream.rep.v1
|
|
67
|
+
* @see proto type: sparkdream.rep.v1.SentinelActivity
|
|
68
|
+
*/
|
|
69
|
+
export const SentinelActivity = {
|
|
70
|
+
typeUrl: "/sparkdream.rep.v1.SentinelActivity",
|
|
71
|
+
encode(message, writer = BinaryWriter.create()) {
|
|
72
|
+
if (message.address !== "") {
|
|
73
|
+
writer.uint32(10).string(message.address);
|
|
74
|
+
}
|
|
75
|
+
if (message.bondStatus !== 0) {
|
|
76
|
+
writer.uint32(16).int32(message.bondStatus);
|
|
77
|
+
}
|
|
78
|
+
if (message.currentBond !== "") {
|
|
79
|
+
writer.uint32(26).string(message.currentBond);
|
|
80
|
+
}
|
|
81
|
+
if (message.totalCommittedBond !== "") {
|
|
82
|
+
writer.uint32(34).string(message.totalCommittedBond);
|
|
83
|
+
}
|
|
84
|
+
if (message.lastActiveEpoch !== BigInt(0)) {
|
|
85
|
+
writer.uint32(40).int64(message.lastActiveEpoch);
|
|
86
|
+
}
|
|
87
|
+
if (message.consecutiveInactiveEpochs !== BigInt(0)) {
|
|
88
|
+
writer.uint32(48).uint64(message.consecutiveInactiveEpochs);
|
|
89
|
+
}
|
|
90
|
+
if (message.demotionCooldownUntil !== BigInt(0)) {
|
|
91
|
+
writer.uint32(56).int64(message.demotionCooldownUntil);
|
|
92
|
+
}
|
|
93
|
+
if (message.cumulativeRewards !== "") {
|
|
94
|
+
writer.uint32(66).string(message.cumulativeRewards);
|
|
95
|
+
}
|
|
96
|
+
if (message.lastRewardEpoch !== BigInt(0)) {
|
|
97
|
+
writer.uint32(72).int64(message.lastRewardEpoch);
|
|
98
|
+
}
|
|
99
|
+
return writer;
|
|
100
|
+
},
|
|
101
|
+
decode(input, length) {
|
|
102
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
103
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
104
|
+
const message = createBaseSentinelActivity();
|
|
105
|
+
while (reader.pos < end) {
|
|
106
|
+
const tag = reader.uint32();
|
|
107
|
+
switch (tag >>> 3) {
|
|
108
|
+
case 1:
|
|
109
|
+
message.address = reader.string();
|
|
110
|
+
break;
|
|
111
|
+
case 2:
|
|
112
|
+
message.bondStatus = reader.int32();
|
|
113
|
+
break;
|
|
114
|
+
case 3:
|
|
115
|
+
message.currentBond = reader.string();
|
|
116
|
+
break;
|
|
117
|
+
case 4:
|
|
118
|
+
message.totalCommittedBond = reader.string();
|
|
119
|
+
break;
|
|
120
|
+
case 5:
|
|
121
|
+
message.lastActiveEpoch = reader.int64();
|
|
122
|
+
break;
|
|
123
|
+
case 6:
|
|
124
|
+
message.consecutiveInactiveEpochs = reader.uint64();
|
|
125
|
+
break;
|
|
126
|
+
case 7:
|
|
127
|
+
message.demotionCooldownUntil = reader.int64();
|
|
128
|
+
break;
|
|
129
|
+
case 8:
|
|
130
|
+
message.cumulativeRewards = reader.string();
|
|
131
|
+
break;
|
|
132
|
+
case 9:
|
|
133
|
+
message.lastRewardEpoch = reader.int64();
|
|
134
|
+
break;
|
|
135
|
+
default:
|
|
136
|
+
reader.skipType(tag & 7);
|
|
137
|
+
break;
|
|
138
|
+
}
|
|
139
|
+
}
|
|
140
|
+
return message;
|
|
141
|
+
},
|
|
142
|
+
fromPartial(object) {
|
|
143
|
+
const message = createBaseSentinelActivity();
|
|
144
|
+
message.address = object.address ?? "";
|
|
145
|
+
message.bondStatus = object.bondStatus ?? 0;
|
|
146
|
+
message.currentBond = object.currentBond ?? "";
|
|
147
|
+
message.totalCommittedBond = object.totalCommittedBond ?? "";
|
|
148
|
+
message.lastActiveEpoch = object.lastActiveEpoch !== undefined && object.lastActiveEpoch !== null ? BigInt(object.lastActiveEpoch.toString()) : BigInt(0);
|
|
149
|
+
message.consecutiveInactiveEpochs = object.consecutiveInactiveEpochs !== undefined && object.consecutiveInactiveEpochs !== null ? BigInt(object.consecutiveInactiveEpochs.toString()) : BigInt(0);
|
|
150
|
+
message.demotionCooldownUntil = object.demotionCooldownUntil !== undefined && object.demotionCooldownUntil !== null ? BigInt(object.demotionCooldownUntil.toString()) : BigInt(0);
|
|
151
|
+
message.cumulativeRewards = object.cumulativeRewards ?? "";
|
|
152
|
+
message.lastRewardEpoch = object.lastRewardEpoch !== undefined && object.lastRewardEpoch !== null ? BigInt(object.lastRewardEpoch.toString()) : BigInt(0);
|
|
153
|
+
return message;
|
|
154
|
+
},
|
|
155
|
+
fromAmino(object) {
|
|
156
|
+
const message = createBaseSentinelActivity();
|
|
157
|
+
if (object.address !== undefined && object.address !== null) {
|
|
158
|
+
message.address = object.address;
|
|
159
|
+
}
|
|
160
|
+
if (object.bond_status !== undefined && object.bond_status !== null) {
|
|
161
|
+
message.bondStatus = object.bond_status;
|
|
162
|
+
}
|
|
163
|
+
if (object.current_bond !== undefined && object.current_bond !== null) {
|
|
164
|
+
message.currentBond = object.current_bond;
|
|
165
|
+
}
|
|
166
|
+
if (object.total_committed_bond !== undefined && object.total_committed_bond !== null) {
|
|
167
|
+
message.totalCommittedBond = object.total_committed_bond;
|
|
168
|
+
}
|
|
169
|
+
if (object.last_active_epoch !== undefined && object.last_active_epoch !== null) {
|
|
170
|
+
message.lastActiveEpoch = BigInt(object.last_active_epoch);
|
|
171
|
+
}
|
|
172
|
+
if (object.consecutive_inactive_epochs !== undefined && object.consecutive_inactive_epochs !== null) {
|
|
173
|
+
message.consecutiveInactiveEpochs = BigInt(object.consecutive_inactive_epochs);
|
|
174
|
+
}
|
|
175
|
+
if (object.demotion_cooldown_until !== undefined && object.demotion_cooldown_until !== null) {
|
|
176
|
+
message.demotionCooldownUntil = BigInt(object.demotion_cooldown_until);
|
|
177
|
+
}
|
|
178
|
+
if (object.cumulative_rewards !== undefined && object.cumulative_rewards !== null) {
|
|
179
|
+
message.cumulativeRewards = object.cumulative_rewards;
|
|
180
|
+
}
|
|
181
|
+
if (object.last_reward_epoch !== undefined && object.last_reward_epoch !== null) {
|
|
182
|
+
message.lastRewardEpoch = BigInt(object.last_reward_epoch);
|
|
183
|
+
}
|
|
184
|
+
return message;
|
|
185
|
+
},
|
|
186
|
+
toAmino(message) {
|
|
187
|
+
const obj = {};
|
|
188
|
+
obj.address = message.address === "" ? undefined : message.address;
|
|
189
|
+
obj.bond_status = message.bondStatus === 0 ? undefined : message.bondStatus;
|
|
190
|
+
obj.current_bond = message.currentBond === "" ? undefined : message.currentBond;
|
|
191
|
+
obj.total_committed_bond = message.totalCommittedBond === "" ? undefined : message.totalCommittedBond;
|
|
192
|
+
obj.last_active_epoch = message.lastActiveEpoch !== BigInt(0) ? message.lastActiveEpoch?.toString() : undefined;
|
|
193
|
+
obj.consecutive_inactive_epochs = message.consecutiveInactiveEpochs !== BigInt(0) ? message.consecutiveInactiveEpochs?.toString() : undefined;
|
|
194
|
+
obj.demotion_cooldown_until = message.demotionCooldownUntil !== BigInt(0) ? message.demotionCooldownUntil?.toString() : undefined;
|
|
195
|
+
obj.cumulative_rewards = message.cumulativeRewards === "" ? undefined : message.cumulativeRewards;
|
|
196
|
+
obj.last_reward_epoch = message.lastRewardEpoch !== BigInt(0) ? message.lastRewardEpoch?.toString() : undefined;
|
|
197
|
+
return obj;
|
|
198
|
+
},
|
|
199
|
+
fromAminoMsg(object) {
|
|
200
|
+
return SentinelActivity.fromAmino(object.value);
|
|
201
|
+
},
|
|
202
|
+
fromProtoMsg(message) {
|
|
203
|
+
return SentinelActivity.decode(message.value);
|
|
204
|
+
},
|
|
205
|
+
toProto(message) {
|
|
206
|
+
return SentinelActivity.encode(message).finish();
|
|
207
|
+
},
|
|
208
|
+
toProtoMsg(message) {
|
|
209
|
+
return {
|
|
210
|
+
typeUrl: "/sparkdream.rep.v1.SentinelActivity",
|
|
211
|
+
value: SentinelActivity.encode(message).finish()
|
|
212
|
+
};
|
|
213
|
+
}
|
|
214
|
+
};
|
|
@@ -10,14 +10,14 @@ function createBaseTag() {
|
|
|
10
10
|
};
|
|
11
11
|
}
|
|
12
12
|
/**
|
|
13
|
-
* Tag defines a content-tagging label
|
|
14
|
-
*
|
|
13
|
+
* Tag defines a content-tagging label. Owned by x/rep.
|
|
14
|
+
* Consumed by x/forum, x/collect, and x/rep's own initiative/reputation systems.
|
|
15
15
|
* @name Tag
|
|
16
|
-
* @package sparkdream.
|
|
17
|
-
* @see proto type: sparkdream.
|
|
16
|
+
* @package sparkdream.rep.v1
|
|
17
|
+
* @see proto type: sparkdream.rep.v1.Tag
|
|
18
18
|
*/
|
|
19
19
|
export const Tag = {
|
|
20
|
-
typeUrl: "/sparkdream.
|
|
20
|
+
typeUrl: "/sparkdream.rep.v1.Tag",
|
|
21
21
|
encode(message, writer = BinaryWriter.create()) {
|
|
22
22
|
if (message.name !== "") {
|
|
23
23
|
writer.uint32(10).string(message.name);
|
|
@@ -113,7 +113,7 @@ export const Tag = {
|
|
|
113
113
|
},
|
|
114
114
|
toProtoMsg(message) {
|
|
115
115
|
return {
|
|
116
|
-
typeUrl: "/sparkdream.
|
|
116
|
+
typeUrl: "/sparkdream.rep.v1.Tag",
|
|
117
117
|
value: Tag.encode(message).finish()
|
|
118
118
|
};
|
|
119
119
|
}
|
|
@@ -14,11 +14,11 @@ function createBaseTagBudget() {
|
|
|
14
14
|
/**
|
|
15
15
|
* TagBudget defines the TagBudget message.
|
|
16
16
|
* @name TagBudget
|
|
17
|
-
* @package sparkdream.
|
|
18
|
-
* @see proto type: sparkdream.
|
|
17
|
+
* @package sparkdream.rep.v1
|
|
18
|
+
* @see proto type: sparkdream.rep.v1.TagBudget
|
|
19
19
|
*/
|
|
20
20
|
export const TagBudget = {
|
|
21
|
-
typeUrl: "/sparkdream.
|
|
21
|
+
typeUrl: "/sparkdream.rep.v1.TagBudget",
|
|
22
22
|
encode(message, writer = BinaryWriter.create()) {
|
|
23
23
|
if (message.id !== BigInt(0)) {
|
|
24
24
|
writer.uint32(8).uint64(message.id);
|
|
@@ -136,7 +136,7 @@ export const TagBudget = {
|
|
|
136
136
|
},
|
|
137
137
|
toProtoMsg(message) {
|
|
138
138
|
return {
|
|
139
|
-
typeUrl: "/sparkdream.
|
|
139
|
+
typeUrl: "/sparkdream.rep.v1.TagBudget",
|
|
140
140
|
value: TagBudget.encode(message).finish()
|
|
141
141
|
};
|
|
142
142
|
}
|
|
@@ -15,11 +15,11 @@ function createBaseTagBudgetAward() {
|
|
|
15
15
|
/**
|
|
16
16
|
* TagBudgetAward defines the TagBudgetAward message.
|
|
17
17
|
* @name TagBudgetAward
|
|
18
|
-
* @package sparkdream.
|
|
19
|
-
* @see proto type: sparkdream.
|
|
18
|
+
* @package sparkdream.rep.v1
|
|
19
|
+
* @see proto type: sparkdream.rep.v1.TagBudgetAward
|
|
20
20
|
*/
|
|
21
21
|
export const TagBudgetAward = {
|
|
22
|
-
typeUrl: "/sparkdream.
|
|
22
|
+
typeUrl: "/sparkdream.rep.v1.TagBudgetAward",
|
|
23
23
|
encode(message, writer = BinaryWriter.create()) {
|
|
24
24
|
if (message.id !== BigInt(0)) {
|
|
25
25
|
writer.uint32(8).uint64(message.id);
|
|
@@ -148,7 +148,7 @@ export const TagBudgetAward = {
|
|
|
148
148
|
},
|
|
149
149
|
toProtoMsg(message) {
|
|
150
150
|
return {
|
|
151
|
-
typeUrl: "/sparkdream.
|
|
151
|
+
typeUrl: "/sparkdream.rep.v1.TagBudgetAward",
|
|
152
152
|
value: TagBudgetAward.encode(message).finish()
|
|
153
153
|
};
|
|
154
154
|
}
|
|
@@ -12,11 +12,11 @@ function createBaseTagReport() {
|
|
|
12
12
|
/**
|
|
13
13
|
* TagReport defines the TagReport message.
|
|
14
14
|
* @name TagReport
|
|
15
|
-
* @package sparkdream.
|
|
16
|
-
* @see proto type: sparkdream.
|
|
15
|
+
* @package sparkdream.rep.v1
|
|
16
|
+
* @see proto type: sparkdream.rep.v1.TagReport
|
|
17
17
|
*/
|
|
18
18
|
export const TagReport = {
|
|
19
|
-
typeUrl: "/sparkdream.
|
|
19
|
+
typeUrl: "/sparkdream.rep.v1.TagReport",
|
|
20
20
|
encode(message, writer = BinaryWriter.create()) {
|
|
21
21
|
if (message.tagName !== "") {
|
|
22
22
|
writer.uint32(10).string(message.tagName);
|
|
@@ -115,7 +115,7 @@ export const TagReport = {
|
|
|
115
115
|
},
|
|
116
116
|
toProtoMsg(message) {
|
|
117
117
|
return {
|
|
118
|
-
typeUrl: "/sparkdream.
|
|
118
|
+
typeUrl: "/sparkdream.rep.v1.TagReport",
|
|
119
119
|
value: TagReport.encode(message).finish()
|
|
120
120
|
};
|
|
121
121
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
//@ts-nocheck
|
|
2
|
-
import { MsgUpdateParams, MsgUpdateOperationalParams, MsgInviteMember, MsgAcceptInvitation, MsgTransferDream, MsgCreateInterim, MsgAssignInterim, MsgSubmitInterimWork, MsgApproveInterim, MsgAbandonInterim, MsgCompleteInterim, MsgProposeProject, MsgApproveProjectBudget, MsgCancelProject, MsgCreateInitiative, MsgAssignInitiative, MsgSubmitInitiativeWork, MsgApproveInitiative, MsgAbandonInitiative, MsgCompleteInitiative, MsgStake, MsgUnstake, MsgClaimStakingRewards, MsgCompoundStakingRewards, MsgCreateChallenge, MsgRespondToChallenge, MsgSubmitJurorVote, MsgSubmitExpertTestimony, MsgChallengeContent, MsgRespondToContentChallenge, MsgRegisterZkPublicKey } from "./tx";
|
|
2
|
+
import { MsgUpdateParams, MsgUpdateOperationalParams, MsgInviteMember, MsgAcceptInvitation, MsgTransferDream, MsgCreateInterim, MsgAssignInterim, MsgSubmitInterimWork, MsgApproveInterim, MsgAbandonInterim, MsgCompleteInterim, MsgProposeProject, MsgApproveProjectBudget, MsgCancelProject, MsgCreateInitiative, MsgAssignInitiative, MsgSubmitInitiativeWork, MsgApproveInitiative, MsgAbandonInitiative, MsgCompleteInitiative, MsgStake, MsgUnstake, MsgClaimStakingRewards, MsgCompoundStakingRewards, MsgCreateChallenge, MsgRespondToChallenge, MsgSubmitJurorVote, MsgSubmitExpertTestimony, MsgChallengeContent, MsgRespondToContentChallenge, MsgRegisterZkPublicKey, MsgCreateTag, MsgReportTag, MsgResolveTagReport, MsgCreateTagBudget, MsgAwardFromTagBudget, MsgTopUpTagBudget, MsgToggleTagBudget, MsgWithdrawTagBudget, MsgBondSentinel, MsgUnbondSentinel, MsgReportMember, MsgCosignMemberReport, MsgResolveMemberReport, MsgDefendMemberReport, MsgAppealGovAction, MsgResolveGovActionAppeal } from "./tx";
|
|
3
3
|
export const AminoConverter = {
|
|
4
4
|
"/sparkdream.rep.v1.MsgUpdateParams": {
|
|
5
5
|
aminoType: "sparkdream/x/rep/MsgUpdateParams",
|
|
@@ -155,5 +155,85 @@ export const AminoConverter = {
|
|
|
155
155
|
aminoType: "/sparkdream.rep.v1.MsgRegisterZkPublicKey",
|
|
156
156
|
toAmino: MsgRegisterZkPublicKey.toAmino,
|
|
157
157
|
fromAmino: MsgRegisterZkPublicKey.fromAmino
|
|
158
|
+
},
|
|
159
|
+
"/sparkdream.rep.v1.MsgCreateTag": {
|
|
160
|
+
aminoType: "/sparkdream.rep.v1.MsgCreateTag",
|
|
161
|
+
toAmino: MsgCreateTag.toAmino,
|
|
162
|
+
fromAmino: MsgCreateTag.fromAmino
|
|
163
|
+
},
|
|
164
|
+
"/sparkdream.rep.v1.MsgReportTag": {
|
|
165
|
+
aminoType: "/sparkdream.rep.v1.MsgReportTag",
|
|
166
|
+
toAmino: MsgReportTag.toAmino,
|
|
167
|
+
fromAmino: MsgReportTag.fromAmino
|
|
168
|
+
},
|
|
169
|
+
"/sparkdream.rep.v1.MsgResolveTagReport": {
|
|
170
|
+
aminoType: "/sparkdream.rep.v1.MsgResolveTagReport",
|
|
171
|
+
toAmino: MsgResolveTagReport.toAmino,
|
|
172
|
+
fromAmino: MsgResolveTagReport.fromAmino
|
|
173
|
+
},
|
|
174
|
+
"/sparkdream.rep.v1.MsgCreateTagBudget": {
|
|
175
|
+
aminoType: "/sparkdream.rep.v1.MsgCreateTagBudget",
|
|
176
|
+
toAmino: MsgCreateTagBudget.toAmino,
|
|
177
|
+
fromAmino: MsgCreateTagBudget.fromAmino
|
|
178
|
+
},
|
|
179
|
+
"/sparkdream.rep.v1.MsgAwardFromTagBudget": {
|
|
180
|
+
aminoType: "/sparkdream.rep.v1.MsgAwardFromTagBudget",
|
|
181
|
+
toAmino: MsgAwardFromTagBudget.toAmino,
|
|
182
|
+
fromAmino: MsgAwardFromTagBudget.fromAmino
|
|
183
|
+
},
|
|
184
|
+
"/sparkdream.rep.v1.MsgTopUpTagBudget": {
|
|
185
|
+
aminoType: "/sparkdream.rep.v1.MsgTopUpTagBudget",
|
|
186
|
+
toAmino: MsgTopUpTagBudget.toAmino,
|
|
187
|
+
fromAmino: MsgTopUpTagBudget.fromAmino
|
|
188
|
+
},
|
|
189
|
+
"/sparkdream.rep.v1.MsgToggleTagBudget": {
|
|
190
|
+
aminoType: "/sparkdream.rep.v1.MsgToggleTagBudget",
|
|
191
|
+
toAmino: MsgToggleTagBudget.toAmino,
|
|
192
|
+
fromAmino: MsgToggleTagBudget.fromAmino
|
|
193
|
+
},
|
|
194
|
+
"/sparkdream.rep.v1.MsgWithdrawTagBudget": {
|
|
195
|
+
aminoType: "/sparkdream.rep.v1.MsgWithdrawTagBudget",
|
|
196
|
+
toAmino: MsgWithdrawTagBudget.toAmino,
|
|
197
|
+
fromAmino: MsgWithdrawTagBudget.fromAmino
|
|
198
|
+
},
|
|
199
|
+
"/sparkdream.rep.v1.MsgBondSentinel": {
|
|
200
|
+
aminoType: "/sparkdream.rep.v1.MsgBondSentinel",
|
|
201
|
+
toAmino: MsgBondSentinel.toAmino,
|
|
202
|
+
fromAmino: MsgBondSentinel.fromAmino
|
|
203
|
+
},
|
|
204
|
+
"/sparkdream.rep.v1.MsgUnbondSentinel": {
|
|
205
|
+
aminoType: "/sparkdream.rep.v1.MsgUnbondSentinel",
|
|
206
|
+
toAmino: MsgUnbondSentinel.toAmino,
|
|
207
|
+
fromAmino: MsgUnbondSentinel.fromAmino
|
|
208
|
+
},
|
|
209
|
+
"/sparkdream.rep.v1.MsgReportMember": {
|
|
210
|
+
aminoType: "/sparkdream.rep.v1.MsgReportMember",
|
|
211
|
+
toAmino: MsgReportMember.toAmino,
|
|
212
|
+
fromAmino: MsgReportMember.fromAmino
|
|
213
|
+
},
|
|
214
|
+
"/sparkdream.rep.v1.MsgCosignMemberReport": {
|
|
215
|
+
aminoType: "/sparkdream.rep.v1.MsgCosignMemberReport",
|
|
216
|
+
toAmino: MsgCosignMemberReport.toAmino,
|
|
217
|
+
fromAmino: MsgCosignMemberReport.fromAmino
|
|
218
|
+
},
|
|
219
|
+
"/sparkdream.rep.v1.MsgResolveMemberReport": {
|
|
220
|
+
aminoType: "/sparkdream.rep.v1.MsgResolveMemberReport",
|
|
221
|
+
toAmino: MsgResolveMemberReport.toAmino,
|
|
222
|
+
fromAmino: MsgResolveMemberReport.fromAmino
|
|
223
|
+
},
|
|
224
|
+
"/sparkdream.rep.v1.MsgDefendMemberReport": {
|
|
225
|
+
aminoType: "/sparkdream.rep.v1.MsgDefendMemberReport",
|
|
226
|
+
toAmino: MsgDefendMemberReport.toAmino,
|
|
227
|
+
fromAmino: MsgDefendMemberReport.fromAmino
|
|
228
|
+
},
|
|
229
|
+
"/sparkdream.rep.v1.MsgAppealGovAction": {
|
|
230
|
+
aminoType: "/sparkdream.rep.v1.MsgAppealGovAction",
|
|
231
|
+
toAmino: MsgAppealGovAction.toAmino,
|
|
232
|
+
fromAmino: MsgAppealGovAction.fromAmino
|
|
233
|
+
},
|
|
234
|
+
"/sparkdream.rep.v1.MsgResolveGovActionAppeal": {
|
|
235
|
+
aminoType: "/sparkdream.rep.v1.MsgResolveGovActionAppeal",
|
|
236
|
+
toAmino: MsgResolveGovActionAppeal.toAmino,
|
|
237
|
+
fromAmino: MsgResolveGovActionAppeal.fromAmino
|
|
158
238
|
}
|
|
159
239
|
};
|