@sparkdreamnft/sparkdreamjs 0.0.9 → 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 +106 -106
- 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 +343 -339
- 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/federation/v1/genesis.js +12 -11
- package/esm/sparkdream/federation/v1/query.js +37 -187
- package/esm/sparkdream/federation/v1/query.lcd.js +6 -16
- package/esm/sparkdream/federation/v1/query.rpc.Query.js +11 -19
- package/esm/sparkdream/federation/v1/tx.amino.js +1 -11
- package/esm/sparkdream/federation/v1/tx.js +0 -270
- package/esm/sparkdream/federation/v1/tx.registry.js +2 -38
- package/esm/sparkdream/federation/v1/tx.rpc.msg.js +4 -14
- package/esm/sparkdream/federation/v1/types.js +13 -318
- package/esm/sparkdream/federation/v1/verifier_activity.js +194 -0
- package/esm/sparkdream/forum/v1/params.js +146 -2
- package/esm/sparkdream/futarchy/v1/market.js +13 -1
- package/esm/sparkdream/rep/v1/bonded_role.js +446 -0
- package/esm/sparkdream/rep/v1/genesis.js +32 -17
- package/esm/sparkdream/rep/v1/member_report.js +98 -1
- package/esm/sparkdream/rep/v1/query.js +297 -306
- package/esm/sparkdream/rep/v1/query.lcd.js +23 -16
- package/esm/sparkdream/rep/v1/query.rpc.Query.js +36 -35
- package/esm/sparkdream/rep/v1/tx.amino.js +9 -9
- package/esm/sparkdream/rep/v1/tx.js +86 -58
- package/esm/sparkdream/rep/v1/tx.registry.js +18 -18
- package/esm/sparkdream/rep/v1/tx.rpc.msg.js +16 -14
- package/esm/sparkdream/season/v1/enums.js +10 -0
- package/esm/tendermint/bundle.js +18 -18
- package/ibc/bundle.d.ts +90 -90
- package/ibc/bundle.js +106 -106
- 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 +14376 -14514
- package/sparkdream/bundle.js +343 -339
- package/sparkdream/client.d.ts +6 -26
- 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/federation/v1/genesis.d.ts +4 -3
- package/sparkdream/federation/v1/genesis.js +11 -10
- package/sparkdream/federation/v1/query.d.ts +53 -136
- package/sparkdream/federation/v1/query.js +37 -187
- package/sparkdream/federation/v1/query.lcd.d.ts +2 -3
- package/sparkdream/federation/v1/query.lcd.js +6 -16
- package/sparkdream/federation/v1/query.rpc.Query.d.ts +10 -7
- package/sparkdream/federation/v1/query.rpc.Query.js +10 -18
- package/sparkdream/federation/v1/tx.amino.d.ts +1 -11
- package/sparkdream/federation/v1/tx.amino.js +0 -10
- package/sparkdream/federation/v1/tx.d.ts +0 -164
- package/sparkdream/federation/v1/tx.js +1 -272
- package/sparkdream/federation/v1/tx.registry.d.ts +1 -25
- package/sparkdream/federation/v1/tx.registry.js +1 -37
- package/sparkdream/federation/v1/tx.rpc.msg.d.ts +6 -5
- package/sparkdream/federation/v1/tx.rpc.msg.js +3 -13
- package/sparkdream/federation/v1/types.d.ts +10 -106
- package/sparkdream/federation/v1/types.js +14 -321
- package/sparkdream/federation/v1/verifier_activity.d.ts +113 -0
- package/sparkdream/federation/v1/verifier_activity.js +197 -0
- package/sparkdream/forum/v1/params.d.ts +112 -0
- package/sparkdream/forum/v1/params.js +146 -2
- package/sparkdream/futarchy/v1/market.d.ts +14 -0
- package/sparkdream/futarchy/v1/market.js +13 -1
- 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 +11 -9
- package/sparkdream/rep/v1/genesis.js +32 -17
- package/sparkdream/rep/v1/member_report.d.ts +61 -0
- package/sparkdream/rep/v1/member_report.js +99 -2
- package/sparkdream/rep/v1/query.d.ts +259 -261
- package/sparkdream/rep/v1/query.js +299 -308
- package/sparkdream/rep/v1/query.lcd.d.ts +5 -5
- package/sparkdream/rep/v1/query.lcd.js +23 -16
- package/sparkdream/rep/v1/query.rpc.Query.d.ts +20 -17
- package/sparkdream/rep/v1/query.rpc.Query.js +35 -34
- package/sparkdream/rep/v1/tx.amino.d.ts +7 -7
- package/sparkdream/rep/v1/tx.amino.js +9 -9
- package/sparkdream/rep/v1/tx.d.ts +121 -104
- package/sparkdream/rep/v1/tx.js +87 -59
- package/sparkdream/rep/v1/tx.registry.d.ts +11 -11
- package/sparkdream/rep/v1/tx.registry.js +17 -17
- package/sparkdream/rep/v1/tx.rpc.msg.d.ts +11 -9
- package/sparkdream/rep/v1/tx.rpc.msg.js +15 -13
- package/sparkdream/rpc.query.d.ts +8 -8
- package/sparkdream/season/v1/enums.d.ts +5 -0
- package/sparkdream/season/v1/enums.js +10 -0
- package/tendermint/bundle.d.ts +844 -844
- package/tendermint/bundle.js +18 -18
- package/esm/sparkdream/rep/v1/sentinel_activity.js +0 -214
- package/sparkdream/rep/v1/sentinel_activity.d.ts +0 -79
- package/sparkdream/rep/v1/sentinel_activity.js +0 -219
|
@@ -0,0 +1,446 @@
|
|
|
1
|
+
//@ts-nocheck
|
|
2
|
+
import { BinaryReader, BinaryWriter } from "../../../binary";
|
|
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 var RoleType;
|
|
12
|
+
(function (RoleType) {
|
|
13
|
+
RoleType[RoleType["ROLE_TYPE_UNSPECIFIED"] = 0] = "ROLE_TYPE_UNSPECIFIED";
|
|
14
|
+
RoleType[RoleType["ROLE_TYPE_FORUM_SENTINEL"] = 1] = "ROLE_TYPE_FORUM_SENTINEL";
|
|
15
|
+
RoleType[RoleType["ROLE_TYPE_COLLECT_CURATOR"] = 2] = "ROLE_TYPE_COLLECT_CURATOR";
|
|
16
|
+
RoleType[RoleType["ROLE_TYPE_FEDERATION_VERIFIER"] = 3] = "ROLE_TYPE_FEDERATION_VERIFIER";
|
|
17
|
+
RoleType[RoleType["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
|
|
18
|
+
})(RoleType || (RoleType = {}));
|
|
19
|
+
export const RoleTypeAmino = RoleType;
|
|
20
|
+
export function roleTypeFromJSON(object) {
|
|
21
|
+
switch (object) {
|
|
22
|
+
case 0:
|
|
23
|
+
case "ROLE_TYPE_UNSPECIFIED":
|
|
24
|
+
return RoleType.ROLE_TYPE_UNSPECIFIED;
|
|
25
|
+
case 1:
|
|
26
|
+
case "ROLE_TYPE_FORUM_SENTINEL":
|
|
27
|
+
return RoleType.ROLE_TYPE_FORUM_SENTINEL;
|
|
28
|
+
case 2:
|
|
29
|
+
case "ROLE_TYPE_COLLECT_CURATOR":
|
|
30
|
+
return RoleType.ROLE_TYPE_COLLECT_CURATOR;
|
|
31
|
+
case 3:
|
|
32
|
+
case "ROLE_TYPE_FEDERATION_VERIFIER":
|
|
33
|
+
return RoleType.ROLE_TYPE_FEDERATION_VERIFIER;
|
|
34
|
+
case -1:
|
|
35
|
+
case "UNRECOGNIZED":
|
|
36
|
+
default:
|
|
37
|
+
return RoleType.UNRECOGNIZED;
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
export function roleTypeToJSON(object) {
|
|
41
|
+
switch (object) {
|
|
42
|
+
case RoleType.ROLE_TYPE_UNSPECIFIED:
|
|
43
|
+
return "ROLE_TYPE_UNSPECIFIED";
|
|
44
|
+
case RoleType.ROLE_TYPE_FORUM_SENTINEL:
|
|
45
|
+
return "ROLE_TYPE_FORUM_SENTINEL";
|
|
46
|
+
case RoleType.ROLE_TYPE_COLLECT_CURATOR:
|
|
47
|
+
return "ROLE_TYPE_COLLECT_CURATOR";
|
|
48
|
+
case RoleType.ROLE_TYPE_FEDERATION_VERIFIER:
|
|
49
|
+
return "ROLE_TYPE_FEDERATION_VERIFIER";
|
|
50
|
+
case RoleType.UNRECOGNIZED:
|
|
51
|
+
default:
|
|
52
|
+
return "UNRECOGNIZED";
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
/**
|
|
56
|
+
* BondedRoleStatus represents the lifecycle status of a bonded role record.
|
|
57
|
+
* NORMAL: full privileges; bond at or above min_bond.
|
|
58
|
+
* RECOVERY: bond dropped below min_bond but at or above demotion_threshold;
|
|
59
|
+
* reduced privileges depending on role, rewards may auto-bond.
|
|
60
|
+
* DEMOTED: bond below demotion_threshold; privileges revoked; cooldown
|
|
61
|
+
* enforced before re-bonding.
|
|
62
|
+
*/
|
|
63
|
+
export var BondedRoleStatus;
|
|
64
|
+
(function (BondedRoleStatus) {
|
|
65
|
+
BondedRoleStatus[BondedRoleStatus["BONDED_ROLE_STATUS_UNSPECIFIED"] = 0] = "BONDED_ROLE_STATUS_UNSPECIFIED";
|
|
66
|
+
BondedRoleStatus[BondedRoleStatus["BONDED_ROLE_STATUS_NORMAL"] = 1] = "BONDED_ROLE_STATUS_NORMAL";
|
|
67
|
+
BondedRoleStatus[BondedRoleStatus["BONDED_ROLE_STATUS_RECOVERY"] = 2] = "BONDED_ROLE_STATUS_RECOVERY";
|
|
68
|
+
BondedRoleStatus[BondedRoleStatus["BONDED_ROLE_STATUS_DEMOTED"] = 3] = "BONDED_ROLE_STATUS_DEMOTED";
|
|
69
|
+
BondedRoleStatus[BondedRoleStatus["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
|
|
70
|
+
})(BondedRoleStatus || (BondedRoleStatus = {}));
|
|
71
|
+
export const BondedRoleStatusAmino = BondedRoleStatus;
|
|
72
|
+
export function bondedRoleStatusFromJSON(object) {
|
|
73
|
+
switch (object) {
|
|
74
|
+
case 0:
|
|
75
|
+
case "BONDED_ROLE_STATUS_UNSPECIFIED":
|
|
76
|
+
return BondedRoleStatus.BONDED_ROLE_STATUS_UNSPECIFIED;
|
|
77
|
+
case 1:
|
|
78
|
+
case "BONDED_ROLE_STATUS_NORMAL":
|
|
79
|
+
return BondedRoleStatus.BONDED_ROLE_STATUS_NORMAL;
|
|
80
|
+
case 2:
|
|
81
|
+
case "BONDED_ROLE_STATUS_RECOVERY":
|
|
82
|
+
return BondedRoleStatus.BONDED_ROLE_STATUS_RECOVERY;
|
|
83
|
+
case 3:
|
|
84
|
+
case "BONDED_ROLE_STATUS_DEMOTED":
|
|
85
|
+
return BondedRoleStatus.BONDED_ROLE_STATUS_DEMOTED;
|
|
86
|
+
case -1:
|
|
87
|
+
case "UNRECOGNIZED":
|
|
88
|
+
default:
|
|
89
|
+
return BondedRoleStatus.UNRECOGNIZED;
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
export function bondedRoleStatusToJSON(object) {
|
|
93
|
+
switch (object) {
|
|
94
|
+
case BondedRoleStatus.BONDED_ROLE_STATUS_UNSPECIFIED:
|
|
95
|
+
return "BONDED_ROLE_STATUS_UNSPECIFIED";
|
|
96
|
+
case BondedRoleStatus.BONDED_ROLE_STATUS_NORMAL:
|
|
97
|
+
return "BONDED_ROLE_STATUS_NORMAL";
|
|
98
|
+
case BondedRoleStatus.BONDED_ROLE_STATUS_RECOVERY:
|
|
99
|
+
return "BONDED_ROLE_STATUS_RECOVERY";
|
|
100
|
+
case BondedRoleStatus.BONDED_ROLE_STATUS_DEMOTED:
|
|
101
|
+
return "BONDED_ROLE_STATUS_DEMOTED";
|
|
102
|
+
case BondedRoleStatus.UNRECOGNIZED:
|
|
103
|
+
default:
|
|
104
|
+
return "UNRECOGNIZED";
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
function createBaseBondedRole() {
|
|
108
|
+
return {
|
|
109
|
+
address: "",
|
|
110
|
+
roleType: 0,
|
|
111
|
+
bondStatus: 0,
|
|
112
|
+
currentBond: "",
|
|
113
|
+
totalCommittedBond: "",
|
|
114
|
+
registeredAt: BigInt(0),
|
|
115
|
+
lastActiveEpoch: BigInt(0),
|
|
116
|
+
consecutiveInactiveEpochs: BigInt(0),
|
|
117
|
+
demotionCooldownUntil: BigInt(0),
|
|
118
|
+
cumulativeRewards: "",
|
|
119
|
+
lastRewardEpoch: BigInt(0)
|
|
120
|
+
};
|
|
121
|
+
}
|
|
122
|
+
/**
|
|
123
|
+
* BondedRole is the generic accountability record for a role-playing member:
|
|
124
|
+
* identity, bond, bond status, and activity stamps. Module-specific action
|
|
125
|
+
* counters (hides, reviews, verifications, etc.) live in per-module activity
|
|
126
|
+
* protos owned by the role's module.
|
|
127
|
+
* @name BondedRole
|
|
128
|
+
* @package sparkdream.rep.v1
|
|
129
|
+
* @see proto type: sparkdream.rep.v1.BondedRole
|
|
130
|
+
*/
|
|
131
|
+
export const BondedRole = {
|
|
132
|
+
typeUrl: "/sparkdream.rep.v1.BondedRole",
|
|
133
|
+
encode(message, writer = BinaryWriter.create()) {
|
|
134
|
+
if (message.address !== "") {
|
|
135
|
+
writer.uint32(10).string(message.address);
|
|
136
|
+
}
|
|
137
|
+
if (message.roleType !== 0) {
|
|
138
|
+
writer.uint32(16).int32(message.roleType);
|
|
139
|
+
}
|
|
140
|
+
if (message.bondStatus !== 0) {
|
|
141
|
+
writer.uint32(24).int32(message.bondStatus);
|
|
142
|
+
}
|
|
143
|
+
if (message.currentBond !== "") {
|
|
144
|
+
writer.uint32(34).string(message.currentBond);
|
|
145
|
+
}
|
|
146
|
+
if (message.totalCommittedBond !== "") {
|
|
147
|
+
writer.uint32(42).string(message.totalCommittedBond);
|
|
148
|
+
}
|
|
149
|
+
if (message.registeredAt !== BigInt(0)) {
|
|
150
|
+
writer.uint32(48).int64(message.registeredAt);
|
|
151
|
+
}
|
|
152
|
+
if (message.lastActiveEpoch !== BigInt(0)) {
|
|
153
|
+
writer.uint32(56).int64(message.lastActiveEpoch);
|
|
154
|
+
}
|
|
155
|
+
if (message.consecutiveInactiveEpochs !== BigInt(0)) {
|
|
156
|
+
writer.uint32(64).uint64(message.consecutiveInactiveEpochs);
|
|
157
|
+
}
|
|
158
|
+
if (message.demotionCooldownUntil !== BigInt(0)) {
|
|
159
|
+
writer.uint32(72).int64(message.demotionCooldownUntil);
|
|
160
|
+
}
|
|
161
|
+
if (message.cumulativeRewards !== "") {
|
|
162
|
+
writer.uint32(82).string(message.cumulativeRewards);
|
|
163
|
+
}
|
|
164
|
+
if (message.lastRewardEpoch !== BigInt(0)) {
|
|
165
|
+
writer.uint32(88).int64(message.lastRewardEpoch);
|
|
166
|
+
}
|
|
167
|
+
return writer;
|
|
168
|
+
},
|
|
169
|
+
decode(input, length) {
|
|
170
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
171
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
172
|
+
const message = createBaseBondedRole();
|
|
173
|
+
while (reader.pos < end) {
|
|
174
|
+
const tag = reader.uint32();
|
|
175
|
+
switch (tag >>> 3) {
|
|
176
|
+
case 1:
|
|
177
|
+
message.address = reader.string();
|
|
178
|
+
break;
|
|
179
|
+
case 2:
|
|
180
|
+
message.roleType = reader.int32();
|
|
181
|
+
break;
|
|
182
|
+
case 3:
|
|
183
|
+
message.bondStatus = reader.int32();
|
|
184
|
+
break;
|
|
185
|
+
case 4:
|
|
186
|
+
message.currentBond = reader.string();
|
|
187
|
+
break;
|
|
188
|
+
case 5:
|
|
189
|
+
message.totalCommittedBond = reader.string();
|
|
190
|
+
break;
|
|
191
|
+
case 6:
|
|
192
|
+
message.registeredAt = reader.int64();
|
|
193
|
+
break;
|
|
194
|
+
case 7:
|
|
195
|
+
message.lastActiveEpoch = reader.int64();
|
|
196
|
+
break;
|
|
197
|
+
case 8:
|
|
198
|
+
message.consecutiveInactiveEpochs = reader.uint64();
|
|
199
|
+
break;
|
|
200
|
+
case 9:
|
|
201
|
+
message.demotionCooldownUntil = reader.int64();
|
|
202
|
+
break;
|
|
203
|
+
case 10:
|
|
204
|
+
message.cumulativeRewards = reader.string();
|
|
205
|
+
break;
|
|
206
|
+
case 11:
|
|
207
|
+
message.lastRewardEpoch = reader.int64();
|
|
208
|
+
break;
|
|
209
|
+
default:
|
|
210
|
+
reader.skipType(tag & 7);
|
|
211
|
+
break;
|
|
212
|
+
}
|
|
213
|
+
}
|
|
214
|
+
return message;
|
|
215
|
+
},
|
|
216
|
+
fromPartial(object) {
|
|
217
|
+
const message = createBaseBondedRole();
|
|
218
|
+
message.address = object.address ?? "";
|
|
219
|
+
message.roleType = object.roleType ?? 0;
|
|
220
|
+
message.bondStatus = object.bondStatus ?? 0;
|
|
221
|
+
message.currentBond = object.currentBond ?? "";
|
|
222
|
+
message.totalCommittedBond = object.totalCommittedBond ?? "";
|
|
223
|
+
message.registeredAt = object.registeredAt !== undefined && object.registeredAt !== null ? BigInt(object.registeredAt.toString()) : BigInt(0);
|
|
224
|
+
message.lastActiveEpoch = object.lastActiveEpoch !== undefined && object.lastActiveEpoch !== null ? BigInt(object.lastActiveEpoch.toString()) : BigInt(0);
|
|
225
|
+
message.consecutiveInactiveEpochs = object.consecutiveInactiveEpochs !== undefined && object.consecutiveInactiveEpochs !== null ? BigInt(object.consecutiveInactiveEpochs.toString()) : BigInt(0);
|
|
226
|
+
message.demotionCooldownUntil = object.demotionCooldownUntil !== undefined && object.demotionCooldownUntil !== null ? BigInt(object.demotionCooldownUntil.toString()) : BigInt(0);
|
|
227
|
+
message.cumulativeRewards = object.cumulativeRewards ?? "";
|
|
228
|
+
message.lastRewardEpoch = object.lastRewardEpoch !== undefined && object.lastRewardEpoch !== null ? BigInt(object.lastRewardEpoch.toString()) : BigInt(0);
|
|
229
|
+
return message;
|
|
230
|
+
},
|
|
231
|
+
fromAmino(object) {
|
|
232
|
+
const message = createBaseBondedRole();
|
|
233
|
+
if (object.address !== undefined && object.address !== null) {
|
|
234
|
+
message.address = object.address;
|
|
235
|
+
}
|
|
236
|
+
if (object.role_type !== undefined && object.role_type !== null) {
|
|
237
|
+
message.roleType = object.role_type;
|
|
238
|
+
}
|
|
239
|
+
if (object.bond_status !== undefined && object.bond_status !== null) {
|
|
240
|
+
message.bondStatus = object.bond_status;
|
|
241
|
+
}
|
|
242
|
+
if (object.current_bond !== undefined && object.current_bond !== null) {
|
|
243
|
+
message.currentBond = object.current_bond;
|
|
244
|
+
}
|
|
245
|
+
if (object.total_committed_bond !== undefined && object.total_committed_bond !== null) {
|
|
246
|
+
message.totalCommittedBond = object.total_committed_bond;
|
|
247
|
+
}
|
|
248
|
+
if (object.registered_at !== undefined && object.registered_at !== null) {
|
|
249
|
+
message.registeredAt = BigInt(object.registered_at);
|
|
250
|
+
}
|
|
251
|
+
if (object.last_active_epoch !== undefined && object.last_active_epoch !== null) {
|
|
252
|
+
message.lastActiveEpoch = BigInt(object.last_active_epoch);
|
|
253
|
+
}
|
|
254
|
+
if (object.consecutive_inactive_epochs !== undefined && object.consecutive_inactive_epochs !== null) {
|
|
255
|
+
message.consecutiveInactiveEpochs = BigInt(object.consecutive_inactive_epochs);
|
|
256
|
+
}
|
|
257
|
+
if (object.demotion_cooldown_until !== undefined && object.demotion_cooldown_until !== null) {
|
|
258
|
+
message.demotionCooldownUntil = BigInt(object.demotion_cooldown_until);
|
|
259
|
+
}
|
|
260
|
+
if (object.cumulative_rewards !== undefined && object.cumulative_rewards !== null) {
|
|
261
|
+
message.cumulativeRewards = object.cumulative_rewards;
|
|
262
|
+
}
|
|
263
|
+
if (object.last_reward_epoch !== undefined && object.last_reward_epoch !== null) {
|
|
264
|
+
message.lastRewardEpoch = BigInt(object.last_reward_epoch);
|
|
265
|
+
}
|
|
266
|
+
return message;
|
|
267
|
+
},
|
|
268
|
+
toAmino(message) {
|
|
269
|
+
const obj = {};
|
|
270
|
+
obj.address = message.address === "" ? undefined : message.address;
|
|
271
|
+
obj.role_type = message.roleType === 0 ? undefined : message.roleType;
|
|
272
|
+
obj.bond_status = message.bondStatus === 0 ? undefined : message.bondStatus;
|
|
273
|
+
obj.current_bond = message.currentBond === "" ? undefined : message.currentBond;
|
|
274
|
+
obj.total_committed_bond = message.totalCommittedBond === "" ? undefined : message.totalCommittedBond;
|
|
275
|
+
obj.registered_at = message.registeredAt !== BigInt(0) ? message.registeredAt?.toString() : undefined;
|
|
276
|
+
obj.last_active_epoch = message.lastActiveEpoch !== BigInt(0) ? message.lastActiveEpoch?.toString() : undefined;
|
|
277
|
+
obj.consecutive_inactive_epochs = message.consecutiveInactiveEpochs !== BigInt(0) ? message.consecutiveInactiveEpochs?.toString() : undefined;
|
|
278
|
+
obj.demotion_cooldown_until = message.demotionCooldownUntil !== BigInt(0) ? message.demotionCooldownUntil?.toString() : undefined;
|
|
279
|
+
obj.cumulative_rewards = message.cumulativeRewards === "" ? undefined : message.cumulativeRewards;
|
|
280
|
+
obj.last_reward_epoch = message.lastRewardEpoch !== BigInt(0) ? message.lastRewardEpoch?.toString() : undefined;
|
|
281
|
+
return obj;
|
|
282
|
+
},
|
|
283
|
+
fromAminoMsg(object) {
|
|
284
|
+
return BondedRole.fromAmino(object.value);
|
|
285
|
+
},
|
|
286
|
+
fromProtoMsg(message) {
|
|
287
|
+
return BondedRole.decode(message.value);
|
|
288
|
+
},
|
|
289
|
+
toProto(message) {
|
|
290
|
+
return BondedRole.encode(message).finish();
|
|
291
|
+
},
|
|
292
|
+
toProtoMsg(message) {
|
|
293
|
+
return {
|
|
294
|
+
typeUrl: "/sparkdream.rep.v1.BondedRole",
|
|
295
|
+
value: BondedRole.encode(message).finish()
|
|
296
|
+
};
|
|
297
|
+
}
|
|
298
|
+
};
|
|
299
|
+
function createBaseBondedRoleConfig() {
|
|
300
|
+
return {
|
|
301
|
+
roleType: 0,
|
|
302
|
+
minBond: "",
|
|
303
|
+
minRepTier: BigInt(0),
|
|
304
|
+
minTrustLevel: "",
|
|
305
|
+
minAgeBlocks: BigInt(0),
|
|
306
|
+
demotionCooldown: BigInt(0),
|
|
307
|
+
demotionThreshold: ""
|
|
308
|
+
};
|
|
309
|
+
}
|
|
310
|
+
/**
|
|
311
|
+
* BondedRoleConfig holds the per-role policy knobs enforced by x/rep at
|
|
312
|
+
* MsgBondRole time. The source-of-truth field values live on the owning
|
|
313
|
+
* module's operational params (flattened); the owning module write-throughs
|
|
314
|
+
* the full config via SetBondedRoleConfig on change and at InitGenesis.
|
|
315
|
+
*
|
|
316
|
+
* Every field is mutable via the owning module's operational-params flow. No
|
|
317
|
+
* chain-upgrade gates — these are operational accountability knobs, not
|
|
318
|
+
* monetary policy.
|
|
319
|
+
* @name BondedRoleConfig
|
|
320
|
+
* @package sparkdream.rep.v1
|
|
321
|
+
* @see proto type: sparkdream.rep.v1.BondedRoleConfig
|
|
322
|
+
*/
|
|
323
|
+
export const BondedRoleConfig = {
|
|
324
|
+
typeUrl: "/sparkdream.rep.v1.BondedRoleConfig",
|
|
325
|
+
encode(message, writer = BinaryWriter.create()) {
|
|
326
|
+
if (message.roleType !== 0) {
|
|
327
|
+
writer.uint32(8).int32(message.roleType);
|
|
328
|
+
}
|
|
329
|
+
if (message.minBond !== "") {
|
|
330
|
+
writer.uint32(18).string(message.minBond);
|
|
331
|
+
}
|
|
332
|
+
if (message.minRepTier !== BigInt(0)) {
|
|
333
|
+
writer.uint32(24).uint64(message.minRepTier);
|
|
334
|
+
}
|
|
335
|
+
if (message.minTrustLevel !== "") {
|
|
336
|
+
writer.uint32(34).string(message.minTrustLevel);
|
|
337
|
+
}
|
|
338
|
+
if (message.minAgeBlocks !== BigInt(0)) {
|
|
339
|
+
writer.uint32(40).int64(message.minAgeBlocks);
|
|
340
|
+
}
|
|
341
|
+
if (message.demotionCooldown !== BigInt(0)) {
|
|
342
|
+
writer.uint32(48).int64(message.demotionCooldown);
|
|
343
|
+
}
|
|
344
|
+
if (message.demotionThreshold !== "") {
|
|
345
|
+
writer.uint32(58).string(message.demotionThreshold);
|
|
346
|
+
}
|
|
347
|
+
return writer;
|
|
348
|
+
},
|
|
349
|
+
decode(input, length) {
|
|
350
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
351
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
352
|
+
const message = createBaseBondedRoleConfig();
|
|
353
|
+
while (reader.pos < end) {
|
|
354
|
+
const tag = reader.uint32();
|
|
355
|
+
switch (tag >>> 3) {
|
|
356
|
+
case 1:
|
|
357
|
+
message.roleType = reader.int32();
|
|
358
|
+
break;
|
|
359
|
+
case 2:
|
|
360
|
+
message.minBond = reader.string();
|
|
361
|
+
break;
|
|
362
|
+
case 3:
|
|
363
|
+
message.minRepTier = reader.uint64();
|
|
364
|
+
break;
|
|
365
|
+
case 4:
|
|
366
|
+
message.minTrustLevel = reader.string();
|
|
367
|
+
break;
|
|
368
|
+
case 5:
|
|
369
|
+
message.minAgeBlocks = reader.int64();
|
|
370
|
+
break;
|
|
371
|
+
case 6:
|
|
372
|
+
message.demotionCooldown = reader.int64();
|
|
373
|
+
break;
|
|
374
|
+
case 7:
|
|
375
|
+
message.demotionThreshold = reader.string();
|
|
376
|
+
break;
|
|
377
|
+
default:
|
|
378
|
+
reader.skipType(tag & 7);
|
|
379
|
+
break;
|
|
380
|
+
}
|
|
381
|
+
}
|
|
382
|
+
return message;
|
|
383
|
+
},
|
|
384
|
+
fromPartial(object) {
|
|
385
|
+
const message = createBaseBondedRoleConfig();
|
|
386
|
+
message.roleType = object.roleType ?? 0;
|
|
387
|
+
message.minBond = object.minBond ?? "";
|
|
388
|
+
message.minRepTier = object.minRepTier !== undefined && object.minRepTier !== null ? BigInt(object.minRepTier.toString()) : BigInt(0);
|
|
389
|
+
message.minTrustLevel = object.minTrustLevel ?? "";
|
|
390
|
+
message.minAgeBlocks = object.minAgeBlocks !== undefined && object.minAgeBlocks !== null ? BigInt(object.minAgeBlocks.toString()) : BigInt(0);
|
|
391
|
+
message.demotionCooldown = object.demotionCooldown !== undefined && object.demotionCooldown !== null ? BigInt(object.demotionCooldown.toString()) : BigInt(0);
|
|
392
|
+
message.demotionThreshold = object.demotionThreshold ?? "";
|
|
393
|
+
return message;
|
|
394
|
+
},
|
|
395
|
+
fromAmino(object) {
|
|
396
|
+
const message = createBaseBondedRoleConfig();
|
|
397
|
+
if (object.role_type !== undefined && object.role_type !== null) {
|
|
398
|
+
message.roleType = object.role_type;
|
|
399
|
+
}
|
|
400
|
+
if (object.min_bond !== undefined && object.min_bond !== null) {
|
|
401
|
+
message.minBond = object.min_bond;
|
|
402
|
+
}
|
|
403
|
+
if (object.min_rep_tier !== undefined && object.min_rep_tier !== null) {
|
|
404
|
+
message.minRepTier = BigInt(object.min_rep_tier);
|
|
405
|
+
}
|
|
406
|
+
if (object.min_trust_level !== undefined && object.min_trust_level !== null) {
|
|
407
|
+
message.minTrustLevel = object.min_trust_level;
|
|
408
|
+
}
|
|
409
|
+
if (object.min_age_blocks !== undefined && object.min_age_blocks !== null) {
|
|
410
|
+
message.minAgeBlocks = BigInt(object.min_age_blocks);
|
|
411
|
+
}
|
|
412
|
+
if (object.demotion_cooldown !== undefined && object.demotion_cooldown !== null) {
|
|
413
|
+
message.demotionCooldown = BigInt(object.demotion_cooldown);
|
|
414
|
+
}
|
|
415
|
+
if (object.demotion_threshold !== undefined && object.demotion_threshold !== null) {
|
|
416
|
+
message.demotionThreshold = object.demotion_threshold;
|
|
417
|
+
}
|
|
418
|
+
return message;
|
|
419
|
+
},
|
|
420
|
+
toAmino(message) {
|
|
421
|
+
const obj = {};
|
|
422
|
+
obj.role_type = message.roleType === 0 ? undefined : message.roleType;
|
|
423
|
+
obj.min_bond = message.minBond === "" ? undefined : message.minBond;
|
|
424
|
+
obj.min_rep_tier = message.minRepTier !== BigInt(0) ? message.minRepTier?.toString() : undefined;
|
|
425
|
+
obj.min_trust_level = message.minTrustLevel === "" ? undefined : message.minTrustLevel;
|
|
426
|
+
obj.min_age_blocks = message.minAgeBlocks !== BigInt(0) ? message.minAgeBlocks?.toString() : undefined;
|
|
427
|
+
obj.demotion_cooldown = message.demotionCooldown !== BigInt(0) ? message.demotionCooldown?.toString() : undefined;
|
|
428
|
+
obj.demotion_threshold = message.demotionThreshold === "" ? undefined : message.demotionThreshold;
|
|
429
|
+
return obj;
|
|
430
|
+
},
|
|
431
|
+
fromAminoMsg(object) {
|
|
432
|
+
return BondedRoleConfig.fromAmino(object.value);
|
|
433
|
+
},
|
|
434
|
+
fromProtoMsg(message) {
|
|
435
|
+
return BondedRoleConfig.decode(message.value);
|
|
436
|
+
},
|
|
437
|
+
toProto(message) {
|
|
438
|
+
return BondedRoleConfig.encode(message).finish();
|
|
439
|
+
},
|
|
440
|
+
toProtoMsg(message) {
|
|
441
|
+
return {
|
|
442
|
+
typeUrl: "/sparkdream.rep.v1.BondedRoleConfig",
|
|
443
|
+
value: BondedRoleConfig.encode(message).finish()
|
|
444
|
+
};
|
|
445
|
+
}
|
|
446
|
+
};
|
|
@@ -15,11 +15,11 @@ import { ReservedTag } from "./reserved_tag";
|
|
|
15
15
|
import { TagReport } from "./tag_report";
|
|
16
16
|
import { TagBudget } from "./tag_budget";
|
|
17
17
|
import { TagBudgetAward } from "./tag_budget_award";
|
|
18
|
-
import { SentinelActivity } from "./sentinel_activity";
|
|
19
18
|
import { JuryParticipation } from "./jury_participation";
|
|
20
19
|
import { MemberReport } from "./member_report";
|
|
21
20
|
import { MemberWarning } from "./member_warning";
|
|
22
21
|
import { GovActionAppeal } from "./gov_action_appeal";
|
|
22
|
+
import { BondedRole, BondedRoleConfig } from "./bonded_role";
|
|
23
23
|
import { BinaryReader, BinaryWriter } from "../../../binary";
|
|
24
24
|
function createBaseGenesisState() {
|
|
25
25
|
return {
|
|
@@ -53,13 +53,14 @@ function createBaseGenesisState() {
|
|
|
53
53
|
tagBudgetCount: BigInt(0),
|
|
54
54
|
tagBudgetAwardList: [],
|
|
55
55
|
tagBudgetAwardCount: BigInt(0),
|
|
56
|
-
sentinelActivityMap: [],
|
|
57
56
|
juryParticipationMap: [],
|
|
58
57
|
memberReportMap: [],
|
|
59
58
|
memberWarningList: [],
|
|
60
59
|
memberWarningCount: BigInt(0),
|
|
61
60
|
govActionAppealList: [],
|
|
62
|
-
govActionAppealCount: BigInt(0)
|
|
61
|
+
govActionAppealCount: BigInt(0),
|
|
62
|
+
bondedRoleList: [],
|
|
63
|
+
bondedRoleConfigList: []
|
|
63
64
|
};
|
|
64
65
|
}
|
|
65
66
|
/**
|
|
@@ -161,9 +162,6 @@ export const GenesisState = {
|
|
|
161
162
|
if (message.tagBudgetAwardCount !== BigInt(0)) {
|
|
162
163
|
writer.uint32(240).uint64(message.tagBudgetAwardCount);
|
|
163
164
|
}
|
|
164
|
-
for (const v of message.sentinelActivityMap) {
|
|
165
|
-
SentinelActivity.encode(v, writer.uint32(250).fork()).ldelim();
|
|
166
|
-
}
|
|
167
165
|
for (const v of message.juryParticipationMap) {
|
|
168
166
|
JuryParticipation.encode(v, writer.uint32(258).fork()).ldelim();
|
|
169
167
|
}
|
|
@@ -182,6 +180,12 @@ export const GenesisState = {
|
|
|
182
180
|
if (message.govActionAppealCount !== BigInt(0)) {
|
|
183
181
|
writer.uint32(296).uint64(message.govActionAppealCount);
|
|
184
182
|
}
|
|
183
|
+
for (const v of message.bondedRoleList) {
|
|
184
|
+
BondedRole.encode(v, writer.uint32(306).fork()).ldelim();
|
|
185
|
+
}
|
|
186
|
+
for (const v of message.bondedRoleConfigList) {
|
|
187
|
+
BondedRoleConfig.encode(v, writer.uint32(314).fork()).ldelim();
|
|
188
|
+
}
|
|
185
189
|
return writer;
|
|
186
190
|
},
|
|
187
191
|
decode(input, length) {
|
|
@@ -281,9 +285,6 @@ export const GenesisState = {
|
|
|
281
285
|
case 30:
|
|
282
286
|
message.tagBudgetAwardCount = reader.uint64();
|
|
283
287
|
break;
|
|
284
|
-
case 31:
|
|
285
|
-
message.sentinelActivityMap.push(SentinelActivity.decode(reader, reader.uint32()));
|
|
286
|
-
break;
|
|
287
288
|
case 32:
|
|
288
289
|
message.juryParticipationMap.push(JuryParticipation.decode(reader, reader.uint32()));
|
|
289
290
|
break;
|
|
@@ -302,6 +303,12 @@ export const GenesisState = {
|
|
|
302
303
|
case 37:
|
|
303
304
|
message.govActionAppealCount = reader.uint64();
|
|
304
305
|
break;
|
|
306
|
+
case 38:
|
|
307
|
+
message.bondedRoleList.push(BondedRole.decode(reader, reader.uint32()));
|
|
308
|
+
break;
|
|
309
|
+
case 39:
|
|
310
|
+
message.bondedRoleConfigList.push(BondedRoleConfig.decode(reader, reader.uint32()));
|
|
311
|
+
break;
|
|
305
312
|
default:
|
|
306
313
|
reader.skipType(tag & 7);
|
|
307
314
|
break;
|
|
@@ -341,13 +348,14 @@ export const GenesisState = {
|
|
|
341
348
|
message.tagBudgetCount = object.tagBudgetCount !== undefined && object.tagBudgetCount !== null ? BigInt(object.tagBudgetCount.toString()) : BigInt(0);
|
|
342
349
|
message.tagBudgetAwardList = object.tagBudgetAwardList?.map(e => TagBudgetAward.fromPartial(e)) || [];
|
|
343
350
|
message.tagBudgetAwardCount = object.tagBudgetAwardCount !== undefined && object.tagBudgetAwardCount !== null ? BigInt(object.tagBudgetAwardCount.toString()) : BigInt(0);
|
|
344
|
-
message.sentinelActivityMap = object.sentinelActivityMap?.map(e => SentinelActivity.fromPartial(e)) || [];
|
|
345
351
|
message.juryParticipationMap = object.juryParticipationMap?.map(e => JuryParticipation.fromPartial(e)) || [];
|
|
346
352
|
message.memberReportMap = object.memberReportMap?.map(e => MemberReport.fromPartial(e)) || [];
|
|
347
353
|
message.memberWarningList = object.memberWarningList?.map(e => MemberWarning.fromPartial(e)) || [];
|
|
348
354
|
message.memberWarningCount = object.memberWarningCount !== undefined && object.memberWarningCount !== null ? BigInt(object.memberWarningCount.toString()) : BigInt(0);
|
|
349
355
|
message.govActionAppealList = object.govActionAppealList?.map(e => GovActionAppeal.fromPartial(e)) || [];
|
|
350
356
|
message.govActionAppealCount = object.govActionAppealCount !== undefined && object.govActionAppealCount !== null ? BigInt(object.govActionAppealCount.toString()) : BigInt(0);
|
|
357
|
+
message.bondedRoleList = object.bondedRoleList?.map(e => BondedRole.fromPartial(e)) || [];
|
|
358
|
+
message.bondedRoleConfigList = object.bondedRoleConfigList?.map(e => BondedRoleConfig.fromPartial(e)) || [];
|
|
351
359
|
return message;
|
|
352
360
|
},
|
|
353
361
|
fromAmino(object) {
|
|
@@ -404,7 +412,6 @@ export const GenesisState = {
|
|
|
404
412
|
if (object.tag_budget_award_count !== undefined && object.tag_budget_award_count !== null) {
|
|
405
413
|
message.tagBudgetAwardCount = BigInt(object.tag_budget_award_count);
|
|
406
414
|
}
|
|
407
|
-
message.sentinelActivityMap = object.sentinel_activity_map?.map(e => SentinelActivity.fromAmino(e)) || [];
|
|
408
415
|
message.juryParticipationMap = object.jury_participation_map?.map(e => JuryParticipation.fromAmino(e)) || [];
|
|
409
416
|
message.memberReportMap = object.member_report_map?.map(e => MemberReport.fromAmino(e)) || [];
|
|
410
417
|
message.memberWarningList = object.member_warning_list?.map(e => MemberWarning.fromAmino(e)) || [];
|
|
@@ -415,6 +422,8 @@ export const GenesisState = {
|
|
|
415
422
|
if (object.gov_action_appeal_count !== undefined && object.gov_action_appeal_count !== null) {
|
|
416
423
|
message.govActionAppealCount = BigInt(object.gov_action_appeal_count);
|
|
417
424
|
}
|
|
425
|
+
message.bondedRoleList = object.bonded_role_list?.map(e => BondedRole.fromAmino(e)) || [];
|
|
426
|
+
message.bondedRoleConfigList = object.bonded_role_config_list?.map(e => BondedRoleConfig.fromAmino(e)) || [];
|
|
418
427
|
return message;
|
|
419
428
|
},
|
|
420
429
|
toAmino(message) {
|
|
@@ -544,12 +553,6 @@ export const GenesisState = {
|
|
|
544
553
|
obj.tag_budget_award_list = message.tagBudgetAwardList;
|
|
545
554
|
}
|
|
546
555
|
obj.tag_budget_award_count = message.tagBudgetAwardCount !== BigInt(0) ? message.tagBudgetAwardCount?.toString() : undefined;
|
|
547
|
-
if (message.sentinelActivityMap) {
|
|
548
|
-
obj.sentinel_activity_map = message.sentinelActivityMap.map(e => e ? SentinelActivity.toAmino(e) : undefined);
|
|
549
|
-
}
|
|
550
|
-
else {
|
|
551
|
-
obj.sentinel_activity_map = message.sentinelActivityMap;
|
|
552
|
-
}
|
|
553
556
|
if (message.juryParticipationMap) {
|
|
554
557
|
obj.jury_participation_map = message.juryParticipationMap.map(e => e ? JuryParticipation.toAmino(e) : undefined);
|
|
555
558
|
}
|
|
@@ -576,6 +579,18 @@ export const GenesisState = {
|
|
|
576
579
|
obj.gov_action_appeal_list = message.govActionAppealList;
|
|
577
580
|
}
|
|
578
581
|
obj.gov_action_appeal_count = message.govActionAppealCount !== BigInt(0) ? message.govActionAppealCount?.toString() : undefined;
|
|
582
|
+
if (message.bondedRoleList) {
|
|
583
|
+
obj.bonded_role_list = message.bondedRoleList.map(e => e ? BondedRole.toAmino(e) : undefined);
|
|
584
|
+
}
|
|
585
|
+
else {
|
|
586
|
+
obj.bonded_role_list = message.bondedRoleList;
|
|
587
|
+
}
|
|
588
|
+
if (message.bondedRoleConfigList) {
|
|
589
|
+
obj.bonded_role_config_list = message.bondedRoleConfigList.map(e => e ? BondedRoleConfig.toAmino(e) : undefined);
|
|
590
|
+
}
|
|
591
|
+
else {
|
|
592
|
+
obj.bonded_role_config_list = message.bondedRoleConfigList;
|
|
593
|
+
}
|
|
579
594
|
return obj;
|
|
580
595
|
},
|
|
581
596
|
fromAminoMsg(object) {
|