@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,197 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.VerifierActivity = void 0;
|
|
4
|
+
//@ts-nocheck
|
|
5
|
+
const binary_1 = require("../../../binary");
|
|
6
|
+
function createBaseVerifierActivity() {
|
|
7
|
+
return {
|
|
8
|
+
address: "",
|
|
9
|
+
totalVerifications: BigInt(0),
|
|
10
|
+
upheldVerifications: BigInt(0),
|
|
11
|
+
overturnedVerifications: BigInt(0),
|
|
12
|
+
unchallengedVerifications: BigInt(0),
|
|
13
|
+
epochVerifications: BigInt(0),
|
|
14
|
+
epochChallengesResolved: BigInt(0),
|
|
15
|
+
consecutiveOverturns: BigInt(0),
|
|
16
|
+
consecutiveUpheld: BigInt(0),
|
|
17
|
+
overturnCooldownUntil: BigInt(0),
|
|
18
|
+
slashCount: BigInt(0)
|
|
19
|
+
};
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
* VerifierActivity holds federation-specific per-verifier counters. The
|
|
23
|
+
* generic bond/status/activity record lives in x/rep as BondedRole
|
|
24
|
+
* (ROLE_TYPE_FEDERATION_VERIFIER) — this proto only tracks what's
|
|
25
|
+
* federation-specific: verification counts and dispute outcomes.
|
|
26
|
+
* @name VerifierActivity
|
|
27
|
+
* @package sparkdream.federation.v1
|
|
28
|
+
* @see proto type: sparkdream.federation.v1.VerifierActivity
|
|
29
|
+
*/
|
|
30
|
+
exports.VerifierActivity = {
|
|
31
|
+
typeUrl: "/sparkdream.federation.v1.VerifierActivity",
|
|
32
|
+
encode(message, writer = binary_1.BinaryWriter.create()) {
|
|
33
|
+
if (message.address !== "") {
|
|
34
|
+
writer.uint32(10).string(message.address);
|
|
35
|
+
}
|
|
36
|
+
if (message.totalVerifications !== BigInt(0)) {
|
|
37
|
+
writer.uint32(16).uint64(message.totalVerifications);
|
|
38
|
+
}
|
|
39
|
+
if (message.upheldVerifications !== BigInt(0)) {
|
|
40
|
+
writer.uint32(24).uint64(message.upheldVerifications);
|
|
41
|
+
}
|
|
42
|
+
if (message.overturnedVerifications !== BigInt(0)) {
|
|
43
|
+
writer.uint32(32).uint64(message.overturnedVerifications);
|
|
44
|
+
}
|
|
45
|
+
if (message.unchallengedVerifications !== BigInt(0)) {
|
|
46
|
+
writer.uint32(40).uint64(message.unchallengedVerifications);
|
|
47
|
+
}
|
|
48
|
+
if (message.epochVerifications !== BigInt(0)) {
|
|
49
|
+
writer.uint32(48).uint64(message.epochVerifications);
|
|
50
|
+
}
|
|
51
|
+
if (message.epochChallengesResolved !== BigInt(0)) {
|
|
52
|
+
writer.uint32(56).uint64(message.epochChallengesResolved);
|
|
53
|
+
}
|
|
54
|
+
if (message.consecutiveOverturns !== BigInt(0)) {
|
|
55
|
+
writer.uint32(64).uint64(message.consecutiveOverturns);
|
|
56
|
+
}
|
|
57
|
+
if (message.consecutiveUpheld !== BigInt(0)) {
|
|
58
|
+
writer.uint32(72).uint64(message.consecutiveUpheld);
|
|
59
|
+
}
|
|
60
|
+
if (message.overturnCooldownUntil !== BigInt(0)) {
|
|
61
|
+
writer.uint32(80).int64(message.overturnCooldownUntil);
|
|
62
|
+
}
|
|
63
|
+
if (message.slashCount !== BigInt(0)) {
|
|
64
|
+
writer.uint32(88).uint64(message.slashCount);
|
|
65
|
+
}
|
|
66
|
+
return writer;
|
|
67
|
+
},
|
|
68
|
+
decode(input, length) {
|
|
69
|
+
const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input);
|
|
70
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
71
|
+
const message = createBaseVerifierActivity();
|
|
72
|
+
while (reader.pos < end) {
|
|
73
|
+
const tag = reader.uint32();
|
|
74
|
+
switch (tag >>> 3) {
|
|
75
|
+
case 1:
|
|
76
|
+
message.address = reader.string();
|
|
77
|
+
break;
|
|
78
|
+
case 2:
|
|
79
|
+
message.totalVerifications = reader.uint64();
|
|
80
|
+
break;
|
|
81
|
+
case 3:
|
|
82
|
+
message.upheldVerifications = reader.uint64();
|
|
83
|
+
break;
|
|
84
|
+
case 4:
|
|
85
|
+
message.overturnedVerifications = reader.uint64();
|
|
86
|
+
break;
|
|
87
|
+
case 5:
|
|
88
|
+
message.unchallengedVerifications = reader.uint64();
|
|
89
|
+
break;
|
|
90
|
+
case 6:
|
|
91
|
+
message.epochVerifications = reader.uint64();
|
|
92
|
+
break;
|
|
93
|
+
case 7:
|
|
94
|
+
message.epochChallengesResolved = reader.uint64();
|
|
95
|
+
break;
|
|
96
|
+
case 8:
|
|
97
|
+
message.consecutiveOverturns = reader.uint64();
|
|
98
|
+
break;
|
|
99
|
+
case 9:
|
|
100
|
+
message.consecutiveUpheld = reader.uint64();
|
|
101
|
+
break;
|
|
102
|
+
case 10:
|
|
103
|
+
message.overturnCooldownUntil = reader.int64();
|
|
104
|
+
break;
|
|
105
|
+
case 11:
|
|
106
|
+
message.slashCount = reader.uint64();
|
|
107
|
+
break;
|
|
108
|
+
default:
|
|
109
|
+
reader.skipType(tag & 7);
|
|
110
|
+
break;
|
|
111
|
+
}
|
|
112
|
+
}
|
|
113
|
+
return message;
|
|
114
|
+
},
|
|
115
|
+
fromPartial(object) {
|
|
116
|
+
const message = createBaseVerifierActivity();
|
|
117
|
+
message.address = object.address ?? "";
|
|
118
|
+
message.totalVerifications = object.totalVerifications !== undefined && object.totalVerifications !== null ? BigInt(object.totalVerifications.toString()) : BigInt(0);
|
|
119
|
+
message.upheldVerifications = object.upheldVerifications !== undefined && object.upheldVerifications !== null ? BigInt(object.upheldVerifications.toString()) : BigInt(0);
|
|
120
|
+
message.overturnedVerifications = object.overturnedVerifications !== undefined && object.overturnedVerifications !== null ? BigInt(object.overturnedVerifications.toString()) : BigInt(0);
|
|
121
|
+
message.unchallengedVerifications = object.unchallengedVerifications !== undefined && object.unchallengedVerifications !== null ? BigInt(object.unchallengedVerifications.toString()) : BigInt(0);
|
|
122
|
+
message.epochVerifications = object.epochVerifications !== undefined && object.epochVerifications !== null ? BigInt(object.epochVerifications.toString()) : BigInt(0);
|
|
123
|
+
message.epochChallengesResolved = object.epochChallengesResolved !== undefined && object.epochChallengesResolved !== null ? BigInt(object.epochChallengesResolved.toString()) : BigInt(0);
|
|
124
|
+
message.consecutiveOverturns = object.consecutiveOverturns !== undefined && object.consecutiveOverturns !== null ? BigInt(object.consecutiveOverturns.toString()) : BigInt(0);
|
|
125
|
+
message.consecutiveUpheld = object.consecutiveUpheld !== undefined && object.consecutiveUpheld !== null ? BigInt(object.consecutiveUpheld.toString()) : BigInt(0);
|
|
126
|
+
message.overturnCooldownUntil = object.overturnCooldownUntil !== undefined && object.overturnCooldownUntil !== null ? BigInt(object.overturnCooldownUntil.toString()) : BigInt(0);
|
|
127
|
+
message.slashCount = object.slashCount !== undefined && object.slashCount !== null ? BigInt(object.slashCount.toString()) : BigInt(0);
|
|
128
|
+
return message;
|
|
129
|
+
},
|
|
130
|
+
fromAmino(object) {
|
|
131
|
+
const message = createBaseVerifierActivity();
|
|
132
|
+
if (object.address !== undefined && object.address !== null) {
|
|
133
|
+
message.address = object.address;
|
|
134
|
+
}
|
|
135
|
+
if (object.total_verifications !== undefined && object.total_verifications !== null) {
|
|
136
|
+
message.totalVerifications = BigInt(object.total_verifications);
|
|
137
|
+
}
|
|
138
|
+
if (object.upheld_verifications !== undefined && object.upheld_verifications !== null) {
|
|
139
|
+
message.upheldVerifications = BigInt(object.upheld_verifications);
|
|
140
|
+
}
|
|
141
|
+
if (object.overturned_verifications !== undefined && object.overturned_verifications !== null) {
|
|
142
|
+
message.overturnedVerifications = BigInt(object.overturned_verifications);
|
|
143
|
+
}
|
|
144
|
+
if (object.unchallenged_verifications !== undefined && object.unchallenged_verifications !== null) {
|
|
145
|
+
message.unchallengedVerifications = BigInt(object.unchallenged_verifications);
|
|
146
|
+
}
|
|
147
|
+
if (object.epoch_verifications !== undefined && object.epoch_verifications !== null) {
|
|
148
|
+
message.epochVerifications = BigInt(object.epoch_verifications);
|
|
149
|
+
}
|
|
150
|
+
if (object.epoch_challenges_resolved !== undefined && object.epoch_challenges_resolved !== null) {
|
|
151
|
+
message.epochChallengesResolved = BigInt(object.epoch_challenges_resolved);
|
|
152
|
+
}
|
|
153
|
+
if (object.consecutive_overturns !== undefined && object.consecutive_overturns !== null) {
|
|
154
|
+
message.consecutiveOverturns = BigInt(object.consecutive_overturns);
|
|
155
|
+
}
|
|
156
|
+
if (object.consecutive_upheld !== undefined && object.consecutive_upheld !== null) {
|
|
157
|
+
message.consecutiveUpheld = BigInt(object.consecutive_upheld);
|
|
158
|
+
}
|
|
159
|
+
if (object.overturn_cooldown_until !== undefined && object.overturn_cooldown_until !== null) {
|
|
160
|
+
message.overturnCooldownUntil = BigInt(object.overturn_cooldown_until);
|
|
161
|
+
}
|
|
162
|
+
if (object.slash_count !== undefined && object.slash_count !== null) {
|
|
163
|
+
message.slashCount = BigInt(object.slash_count);
|
|
164
|
+
}
|
|
165
|
+
return message;
|
|
166
|
+
},
|
|
167
|
+
toAmino(message) {
|
|
168
|
+
const obj = {};
|
|
169
|
+
obj.address = message.address === "" ? undefined : message.address;
|
|
170
|
+
obj.total_verifications = message.totalVerifications !== BigInt(0) ? message.totalVerifications?.toString() : undefined;
|
|
171
|
+
obj.upheld_verifications = message.upheldVerifications !== BigInt(0) ? message.upheldVerifications?.toString() : undefined;
|
|
172
|
+
obj.overturned_verifications = message.overturnedVerifications !== BigInt(0) ? message.overturnedVerifications?.toString() : undefined;
|
|
173
|
+
obj.unchallenged_verifications = message.unchallengedVerifications !== BigInt(0) ? message.unchallengedVerifications?.toString() : undefined;
|
|
174
|
+
obj.epoch_verifications = message.epochVerifications !== BigInt(0) ? message.epochVerifications?.toString() : undefined;
|
|
175
|
+
obj.epoch_challenges_resolved = message.epochChallengesResolved !== BigInt(0) ? message.epochChallengesResolved?.toString() : undefined;
|
|
176
|
+
obj.consecutive_overturns = message.consecutiveOverturns !== BigInt(0) ? message.consecutiveOverturns?.toString() : undefined;
|
|
177
|
+
obj.consecutive_upheld = message.consecutiveUpheld !== BigInt(0) ? message.consecutiveUpheld?.toString() : undefined;
|
|
178
|
+
obj.overturn_cooldown_until = message.overturnCooldownUntil !== BigInt(0) ? message.overturnCooldownUntil?.toString() : undefined;
|
|
179
|
+
obj.slash_count = message.slashCount !== BigInt(0) ? message.slashCount?.toString() : undefined;
|
|
180
|
+
return obj;
|
|
181
|
+
},
|
|
182
|
+
fromAminoMsg(object) {
|
|
183
|
+
return exports.VerifierActivity.fromAmino(object.value);
|
|
184
|
+
},
|
|
185
|
+
fromProtoMsg(message) {
|
|
186
|
+
return exports.VerifierActivity.decode(message.value);
|
|
187
|
+
},
|
|
188
|
+
toProto(message) {
|
|
189
|
+
return exports.VerifierActivity.encode(message).finish();
|
|
190
|
+
},
|
|
191
|
+
toProtoMsg(message) {
|
|
192
|
+
return {
|
|
193
|
+
typeUrl: "/sparkdream.federation.v1.VerifierActivity",
|
|
194
|
+
value: exports.VerifierActivity.encode(message).finish()
|
|
195
|
+
};
|
|
196
|
+
}
|
|
197
|
+
};
|
|
@@ -136,6 +136,30 @@ export interface Params {
|
|
|
136
136
|
* conviction_renewal_period is the TTL extension in seconds when conviction threshold is met
|
|
137
137
|
*/
|
|
138
138
|
convictionRenewalPeriod: bigint;
|
|
139
|
+
/**
|
|
140
|
+
* min_sentinel_bond — see ForumOperationalParams.min_sentinel_bond.
|
|
141
|
+
*/
|
|
142
|
+
minSentinelBond: string;
|
|
143
|
+
/**
|
|
144
|
+
* min_sentinel_rep_tier — see ForumOperationalParams.min_sentinel_rep_tier.
|
|
145
|
+
*/
|
|
146
|
+
minSentinelRepTier: bigint;
|
|
147
|
+
/**
|
|
148
|
+
* min_sentinel_trust_level — see ForumOperationalParams.min_sentinel_trust_level.
|
|
149
|
+
*/
|
|
150
|
+
minSentinelTrustLevel: string;
|
|
151
|
+
/**
|
|
152
|
+
* min_sentinel_age_blocks — see ForumOperationalParams.min_sentinel_age_blocks.
|
|
153
|
+
*/
|
|
154
|
+
minSentinelAgeBlocks: bigint;
|
|
155
|
+
/**
|
|
156
|
+
* sentinel_demotion_cooldown — see ForumOperationalParams.sentinel_demotion_cooldown.
|
|
157
|
+
*/
|
|
158
|
+
sentinelDemotionCooldown: bigint;
|
|
159
|
+
/**
|
|
160
|
+
* sentinel_demotion_threshold — see ForumOperationalParams.sentinel_demotion_threshold.
|
|
161
|
+
*/
|
|
162
|
+
sentinelDemotionThreshold: string;
|
|
139
163
|
}
|
|
140
164
|
export interface ParamsProtoMsg {
|
|
141
165
|
typeUrl: "/sparkdream.forum.v1.Params";
|
|
@@ -276,6 +300,30 @@ export interface ParamsAmino {
|
|
|
276
300
|
* conviction_renewal_period is the TTL extension in seconds when conviction threshold is met
|
|
277
301
|
*/
|
|
278
302
|
conviction_renewal_period?: string;
|
|
303
|
+
/**
|
|
304
|
+
* min_sentinel_bond — see ForumOperationalParams.min_sentinel_bond.
|
|
305
|
+
*/
|
|
306
|
+
min_sentinel_bond?: string;
|
|
307
|
+
/**
|
|
308
|
+
* min_sentinel_rep_tier — see ForumOperationalParams.min_sentinel_rep_tier.
|
|
309
|
+
*/
|
|
310
|
+
min_sentinel_rep_tier?: string;
|
|
311
|
+
/**
|
|
312
|
+
* min_sentinel_trust_level — see ForumOperationalParams.min_sentinel_trust_level.
|
|
313
|
+
*/
|
|
314
|
+
min_sentinel_trust_level?: string;
|
|
315
|
+
/**
|
|
316
|
+
* min_sentinel_age_blocks — see ForumOperationalParams.min_sentinel_age_blocks.
|
|
317
|
+
*/
|
|
318
|
+
min_sentinel_age_blocks?: string;
|
|
319
|
+
/**
|
|
320
|
+
* sentinel_demotion_cooldown — see ForumOperationalParams.sentinel_demotion_cooldown.
|
|
321
|
+
*/
|
|
322
|
+
sentinel_demotion_cooldown?: string;
|
|
323
|
+
/**
|
|
324
|
+
* sentinel_demotion_threshold — see ForumOperationalParams.sentinel_demotion_threshold.
|
|
325
|
+
*/
|
|
326
|
+
sentinel_demotion_threshold?: string;
|
|
279
327
|
}
|
|
280
328
|
export interface ParamsAminoMsg {
|
|
281
329
|
type: "sparkdream/x/forum/Params";
|
|
@@ -338,6 +386,38 @@ export interface ForumOperationalParams {
|
|
|
338
386
|
* conviction_renewal_period is the TTL extension in seconds when conviction threshold is met
|
|
339
387
|
*/
|
|
340
388
|
convictionRenewalPeriod: bigint;
|
|
389
|
+
/**
|
|
390
|
+
* min_sentinel_bond is the minimum DREAM required to bond as a sentinel
|
|
391
|
+
* (math.Int string, e.g. "1000").
|
|
392
|
+
*/
|
|
393
|
+
minSentinelBond: string;
|
|
394
|
+
/**
|
|
395
|
+
* min_sentinel_rep_tier is the minimum reputation tier required to bond as
|
|
396
|
+
* a sentinel. 0 = no rep-tier gate.
|
|
397
|
+
*/
|
|
398
|
+
minSentinelRepTier: bigint;
|
|
399
|
+
/**
|
|
400
|
+
* min_sentinel_trust_level is the minimum trust level required to bond as a
|
|
401
|
+
* sentinel, as an enum name (e.g. "TRUST_LEVEL_ESTABLISHED"). Empty = no
|
|
402
|
+
* trust-level gate.
|
|
403
|
+
*/
|
|
404
|
+
minSentinelTrustLevel: string;
|
|
405
|
+
/**
|
|
406
|
+
* min_sentinel_age_blocks is enforced by forum at action time (the sentinel
|
|
407
|
+
* must have been bonded for this many blocks before taking an action). Zero
|
|
408
|
+
* = no age gate.
|
|
409
|
+
*/
|
|
410
|
+
minSentinelAgeBlocks: bigint;
|
|
411
|
+
/**
|
|
412
|
+
* sentinel_demotion_cooldown is the number of seconds a DEMOTED sentinel
|
|
413
|
+
* must wait before re-bonding.
|
|
414
|
+
*/
|
|
415
|
+
sentinelDemotionCooldown: bigint;
|
|
416
|
+
/**
|
|
417
|
+
* sentinel_demotion_threshold is the bond floor below which the sentinel
|
|
418
|
+
* transitions from RECOVERY to DEMOTED (math.Int string).
|
|
419
|
+
*/
|
|
420
|
+
sentinelDemotionThreshold: string;
|
|
341
421
|
}
|
|
342
422
|
export interface ForumOperationalParamsProtoMsg {
|
|
343
423
|
typeUrl: "/sparkdream.forum.v1.ForumOperationalParams";
|
|
@@ -400,6 +480,38 @@ export interface ForumOperationalParamsAmino {
|
|
|
400
480
|
* conviction_renewal_period is the TTL extension in seconds when conviction threshold is met
|
|
401
481
|
*/
|
|
402
482
|
conviction_renewal_period?: string;
|
|
483
|
+
/**
|
|
484
|
+
* min_sentinel_bond is the minimum DREAM required to bond as a sentinel
|
|
485
|
+
* (math.Int string, e.g. "1000").
|
|
486
|
+
*/
|
|
487
|
+
min_sentinel_bond?: string;
|
|
488
|
+
/**
|
|
489
|
+
* min_sentinel_rep_tier is the minimum reputation tier required to bond as
|
|
490
|
+
* a sentinel. 0 = no rep-tier gate.
|
|
491
|
+
*/
|
|
492
|
+
min_sentinel_rep_tier?: string;
|
|
493
|
+
/**
|
|
494
|
+
* min_sentinel_trust_level is the minimum trust level required to bond as a
|
|
495
|
+
* sentinel, as an enum name (e.g. "TRUST_LEVEL_ESTABLISHED"). Empty = no
|
|
496
|
+
* trust-level gate.
|
|
497
|
+
*/
|
|
498
|
+
min_sentinel_trust_level?: string;
|
|
499
|
+
/**
|
|
500
|
+
* min_sentinel_age_blocks is enforced by forum at action time (the sentinel
|
|
501
|
+
* must have been bonded for this many blocks before taking an action). Zero
|
|
502
|
+
* = no age gate.
|
|
503
|
+
*/
|
|
504
|
+
min_sentinel_age_blocks?: string;
|
|
505
|
+
/**
|
|
506
|
+
* sentinel_demotion_cooldown is the number of seconds a DEMOTED sentinel
|
|
507
|
+
* must wait before re-bonding.
|
|
508
|
+
*/
|
|
509
|
+
sentinel_demotion_cooldown?: string;
|
|
510
|
+
/**
|
|
511
|
+
* sentinel_demotion_threshold is the bond floor below which the sentinel
|
|
512
|
+
* transitions from RECOVERY to DEMOTED (math.Int string).
|
|
513
|
+
*/
|
|
514
|
+
sentinel_demotion_threshold?: string;
|
|
403
515
|
}
|
|
404
516
|
export interface ForumOperationalParamsAminoMsg {
|
|
405
517
|
type: "sparkdream/x/forum/ForumOperationalParams";
|
|
@@ -38,7 +38,13 @@ function createBaseParams() {
|
|
|
38
38
|
costPerByteExempt: false,
|
|
39
39
|
ephemeralTtl: BigInt(0),
|
|
40
40
|
convictionRenewalThreshold: "",
|
|
41
|
-
convictionRenewalPeriod: BigInt(0)
|
|
41
|
+
convictionRenewalPeriod: BigInt(0),
|
|
42
|
+
minSentinelBond: "",
|
|
43
|
+
minSentinelRepTier: BigInt(0),
|
|
44
|
+
minSentinelTrustLevel: "",
|
|
45
|
+
minSentinelAgeBlocks: BigInt(0),
|
|
46
|
+
sentinelDemotionCooldown: BigInt(0),
|
|
47
|
+
sentinelDemotionThreshold: ""
|
|
42
48
|
};
|
|
43
49
|
}
|
|
44
50
|
/**
|
|
@@ -147,6 +153,24 @@ exports.Params = {
|
|
|
147
153
|
if (message.convictionRenewalPeriod !== BigInt(0)) {
|
|
148
154
|
writer.uint32(304).int64(message.convictionRenewalPeriod);
|
|
149
155
|
}
|
|
156
|
+
if (message.minSentinelBond !== "") {
|
|
157
|
+
writer.uint32(322).string(message.minSentinelBond);
|
|
158
|
+
}
|
|
159
|
+
if (message.minSentinelRepTier !== BigInt(0)) {
|
|
160
|
+
writer.uint32(328).uint64(message.minSentinelRepTier);
|
|
161
|
+
}
|
|
162
|
+
if (message.minSentinelTrustLevel !== "") {
|
|
163
|
+
writer.uint32(338).string(message.minSentinelTrustLevel);
|
|
164
|
+
}
|
|
165
|
+
if (message.minSentinelAgeBlocks !== BigInt(0)) {
|
|
166
|
+
writer.uint32(344).int64(message.minSentinelAgeBlocks);
|
|
167
|
+
}
|
|
168
|
+
if (message.sentinelDemotionCooldown !== BigInt(0)) {
|
|
169
|
+
writer.uint32(352).int64(message.sentinelDemotionCooldown);
|
|
170
|
+
}
|
|
171
|
+
if (message.sentinelDemotionThreshold !== "") {
|
|
172
|
+
writer.uint32(362).string(message.sentinelDemotionThreshold);
|
|
173
|
+
}
|
|
150
174
|
return writer;
|
|
151
175
|
},
|
|
152
176
|
decode(input, length) {
|
|
@@ -252,6 +276,24 @@ exports.Params = {
|
|
|
252
276
|
case 38:
|
|
253
277
|
message.convictionRenewalPeriod = reader.int64();
|
|
254
278
|
break;
|
|
279
|
+
case 40:
|
|
280
|
+
message.minSentinelBond = reader.string();
|
|
281
|
+
break;
|
|
282
|
+
case 41:
|
|
283
|
+
message.minSentinelRepTier = reader.uint64();
|
|
284
|
+
break;
|
|
285
|
+
case 42:
|
|
286
|
+
message.minSentinelTrustLevel = reader.string();
|
|
287
|
+
break;
|
|
288
|
+
case 43:
|
|
289
|
+
message.minSentinelAgeBlocks = reader.int64();
|
|
290
|
+
break;
|
|
291
|
+
case 44:
|
|
292
|
+
message.sentinelDemotionCooldown = reader.int64();
|
|
293
|
+
break;
|
|
294
|
+
case 45:
|
|
295
|
+
message.sentinelDemotionThreshold = reader.string();
|
|
296
|
+
break;
|
|
255
297
|
default:
|
|
256
298
|
reader.skipType(tag & 7);
|
|
257
299
|
break;
|
|
@@ -293,6 +335,12 @@ exports.Params = {
|
|
|
293
335
|
message.ephemeralTtl = object.ephemeralTtl !== undefined && object.ephemeralTtl !== null ? BigInt(object.ephemeralTtl.toString()) : BigInt(0);
|
|
294
336
|
message.convictionRenewalThreshold = object.convictionRenewalThreshold ?? "";
|
|
295
337
|
message.convictionRenewalPeriod = object.convictionRenewalPeriod !== undefined && object.convictionRenewalPeriod !== null ? BigInt(object.convictionRenewalPeriod.toString()) : BigInt(0);
|
|
338
|
+
message.minSentinelBond = object.minSentinelBond ?? "";
|
|
339
|
+
message.minSentinelRepTier = object.minSentinelRepTier !== undefined && object.minSentinelRepTier !== null ? BigInt(object.minSentinelRepTier.toString()) : BigInt(0);
|
|
340
|
+
message.minSentinelTrustLevel = object.minSentinelTrustLevel ?? "";
|
|
341
|
+
message.minSentinelAgeBlocks = object.minSentinelAgeBlocks !== undefined && object.minSentinelAgeBlocks !== null ? BigInt(object.minSentinelAgeBlocks.toString()) : BigInt(0);
|
|
342
|
+
message.sentinelDemotionCooldown = object.sentinelDemotionCooldown !== undefined && object.sentinelDemotionCooldown !== null ? BigInt(object.sentinelDemotionCooldown.toString()) : BigInt(0);
|
|
343
|
+
message.sentinelDemotionThreshold = object.sentinelDemotionThreshold ?? "";
|
|
296
344
|
return message;
|
|
297
345
|
},
|
|
298
346
|
fromAmino(object) {
|
|
@@ -393,6 +441,24 @@ exports.Params = {
|
|
|
393
441
|
if (object.conviction_renewal_period !== undefined && object.conviction_renewal_period !== null) {
|
|
394
442
|
message.convictionRenewalPeriod = BigInt(object.conviction_renewal_period);
|
|
395
443
|
}
|
|
444
|
+
if (object.min_sentinel_bond !== undefined && object.min_sentinel_bond !== null) {
|
|
445
|
+
message.minSentinelBond = object.min_sentinel_bond;
|
|
446
|
+
}
|
|
447
|
+
if (object.min_sentinel_rep_tier !== undefined && object.min_sentinel_rep_tier !== null) {
|
|
448
|
+
message.minSentinelRepTier = BigInt(object.min_sentinel_rep_tier);
|
|
449
|
+
}
|
|
450
|
+
if (object.min_sentinel_trust_level !== undefined && object.min_sentinel_trust_level !== null) {
|
|
451
|
+
message.minSentinelTrustLevel = object.min_sentinel_trust_level;
|
|
452
|
+
}
|
|
453
|
+
if (object.min_sentinel_age_blocks !== undefined && object.min_sentinel_age_blocks !== null) {
|
|
454
|
+
message.minSentinelAgeBlocks = BigInt(object.min_sentinel_age_blocks);
|
|
455
|
+
}
|
|
456
|
+
if (object.sentinel_demotion_cooldown !== undefined && object.sentinel_demotion_cooldown !== null) {
|
|
457
|
+
message.sentinelDemotionCooldown = BigInt(object.sentinel_demotion_cooldown);
|
|
458
|
+
}
|
|
459
|
+
if (object.sentinel_demotion_threshold !== undefined && object.sentinel_demotion_threshold !== null) {
|
|
460
|
+
message.sentinelDemotionThreshold = object.sentinel_demotion_threshold;
|
|
461
|
+
}
|
|
396
462
|
return message;
|
|
397
463
|
},
|
|
398
464
|
toAmino(message) {
|
|
@@ -429,6 +495,12 @@ exports.Params = {
|
|
|
429
495
|
obj.ephemeral_ttl = message.ephemeralTtl !== BigInt(0) ? message.ephemeralTtl?.toString() : undefined;
|
|
430
496
|
obj.conviction_renewal_threshold = message.convictionRenewalThreshold === "" ? undefined : message.convictionRenewalThreshold;
|
|
431
497
|
obj.conviction_renewal_period = message.convictionRenewalPeriod !== BigInt(0) ? message.convictionRenewalPeriod?.toString() : undefined;
|
|
498
|
+
obj.min_sentinel_bond = message.minSentinelBond === "" ? undefined : message.minSentinelBond;
|
|
499
|
+
obj.min_sentinel_rep_tier = message.minSentinelRepTier !== BigInt(0) ? message.minSentinelRepTier?.toString() : undefined;
|
|
500
|
+
obj.min_sentinel_trust_level = message.minSentinelTrustLevel === "" ? undefined : message.minSentinelTrustLevel;
|
|
501
|
+
obj.min_sentinel_age_blocks = message.minSentinelAgeBlocks !== BigInt(0) ? message.minSentinelAgeBlocks?.toString() : undefined;
|
|
502
|
+
obj.sentinel_demotion_cooldown = message.sentinelDemotionCooldown !== BigInt(0) ? message.sentinelDemotionCooldown?.toString() : undefined;
|
|
503
|
+
obj.sentinel_demotion_threshold = message.sentinelDemotionThreshold === "" ? undefined : message.sentinelDemotionThreshold;
|
|
432
504
|
return obj;
|
|
433
505
|
},
|
|
434
506
|
fromAminoMsg(object) {
|
|
@@ -483,7 +555,13 @@ function createBaseForumOperationalParams() {
|
|
|
483
555
|
moveAppealCooldown: BigInt(0),
|
|
484
556
|
ephemeralTtl: BigInt(0),
|
|
485
557
|
convictionRenewalThreshold: "",
|
|
486
|
-
convictionRenewalPeriod: BigInt(0)
|
|
558
|
+
convictionRenewalPeriod: BigInt(0),
|
|
559
|
+
minSentinelBond: "",
|
|
560
|
+
minSentinelRepTier: BigInt(0),
|
|
561
|
+
minSentinelTrustLevel: "",
|
|
562
|
+
minSentinelAgeBlocks: BigInt(0),
|
|
563
|
+
sentinelDemotionCooldown: BigInt(0),
|
|
564
|
+
sentinelDemotionThreshold: ""
|
|
487
565
|
};
|
|
488
566
|
}
|
|
489
567
|
/**
|
|
@@ -586,6 +664,24 @@ exports.ForumOperationalParams = {
|
|
|
586
664
|
if (message.convictionRenewalPeriod !== BigInt(0)) {
|
|
587
665
|
writer.uint32(256).int64(message.convictionRenewalPeriod);
|
|
588
666
|
}
|
|
667
|
+
if (message.minSentinelBond !== "") {
|
|
668
|
+
writer.uint32(322).string(message.minSentinelBond);
|
|
669
|
+
}
|
|
670
|
+
if (message.minSentinelRepTier !== BigInt(0)) {
|
|
671
|
+
writer.uint32(328).uint64(message.minSentinelRepTier);
|
|
672
|
+
}
|
|
673
|
+
if (message.minSentinelTrustLevel !== "") {
|
|
674
|
+
writer.uint32(338).string(message.minSentinelTrustLevel);
|
|
675
|
+
}
|
|
676
|
+
if (message.minSentinelAgeBlocks !== BigInt(0)) {
|
|
677
|
+
writer.uint32(344).int64(message.minSentinelAgeBlocks);
|
|
678
|
+
}
|
|
679
|
+
if (message.sentinelDemotionCooldown !== BigInt(0)) {
|
|
680
|
+
writer.uint32(352).int64(message.sentinelDemotionCooldown);
|
|
681
|
+
}
|
|
682
|
+
if (message.sentinelDemotionThreshold !== "") {
|
|
683
|
+
writer.uint32(362).string(message.sentinelDemotionThreshold);
|
|
684
|
+
}
|
|
589
685
|
return writer;
|
|
590
686
|
},
|
|
591
687
|
decode(input, length) {
|
|
@@ -682,6 +778,24 @@ exports.ForumOperationalParams = {
|
|
|
682
778
|
case 32:
|
|
683
779
|
message.convictionRenewalPeriod = reader.int64();
|
|
684
780
|
break;
|
|
781
|
+
case 40:
|
|
782
|
+
message.minSentinelBond = reader.string();
|
|
783
|
+
break;
|
|
784
|
+
case 41:
|
|
785
|
+
message.minSentinelRepTier = reader.uint64();
|
|
786
|
+
break;
|
|
787
|
+
case 42:
|
|
788
|
+
message.minSentinelTrustLevel = reader.string();
|
|
789
|
+
break;
|
|
790
|
+
case 43:
|
|
791
|
+
message.minSentinelAgeBlocks = reader.int64();
|
|
792
|
+
break;
|
|
793
|
+
case 44:
|
|
794
|
+
message.sentinelDemotionCooldown = reader.int64();
|
|
795
|
+
break;
|
|
796
|
+
case 45:
|
|
797
|
+
message.sentinelDemotionThreshold = reader.string();
|
|
798
|
+
break;
|
|
685
799
|
default:
|
|
686
800
|
reader.skipType(tag & 7);
|
|
687
801
|
break;
|
|
@@ -720,6 +834,12 @@ exports.ForumOperationalParams = {
|
|
|
720
834
|
message.ephemeralTtl = object.ephemeralTtl !== undefined && object.ephemeralTtl !== null ? BigInt(object.ephemeralTtl.toString()) : BigInt(0);
|
|
721
835
|
message.convictionRenewalThreshold = object.convictionRenewalThreshold ?? "";
|
|
722
836
|
message.convictionRenewalPeriod = object.convictionRenewalPeriod !== undefined && object.convictionRenewalPeriod !== null ? BigInt(object.convictionRenewalPeriod.toString()) : BigInt(0);
|
|
837
|
+
message.minSentinelBond = object.minSentinelBond ?? "";
|
|
838
|
+
message.minSentinelRepTier = object.minSentinelRepTier !== undefined && object.minSentinelRepTier !== null ? BigInt(object.minSentinelRepTier.toString()) : BigInt(0);
|
|
839
|
+
message.minSentinelTrustLevel = object.minSentinelTrustLevel ?? "";
|
|
840
|
+
message.minSentinelAgeBlocks = object.minSentinelAgeBlocks !== undefined && object.minSentinelAgeBlocks !== null ? BigInt(object.minSentinelAgeBlocks.toString()) : BigInt(0);
|
|
841
|
+
message.sentinelDemotionCooldown = object.sentinelDemotionCooldown !== undefined && object.sentinelDemotionCooldown !== null ? BigInt(object.sentinelDemotionCooldown.toString()) : BigInt(0);
|
|
842
|
+
message.sentinelDemotionThreshold = object.sentinelDemotionThreshold ?? "";
|
|
723
843
|
return message;
|
|
724
844
|
},
|
|
725
845
|
fromAmino(object) {
|
|
@@ -811,6 +931,24 @@ exports.ForumOperationalParams = {
|
|
|
811
931
|
if (object.conviction_renewal_period !== undefined && object.conviction_renewal_period !== null) {
|
|
812
932
|
message.convictionRenewalPeriod = BigInt(object.conviction_renewal_period);
|
|
813
933
|
}
|
|
934
|
+
if (object.min_sentinel_bond !== undefined && object.min_sentinel_bond !== null) {
|
|
935
|
+
message.minSentinelBond = object.min_sentinel_bond;
|
|
936
|
+
}
|
|
937
|
+
if (object.min_sentinel_rep_tier !== undefined && object.min_sentinel_rep_tier !== null) {
|
|
938
|
+
message.minSentinelRepTier = BigInt(object.min_sentinel_rep_tier);
|
|
939
|
+
}
|
|
940
|
+
if (object.min_sentinel_trust_level !== undefined && object.min_sentinel_trust_level !== null) {
|
|
941
|
+
message.minSentinelTrustLevel = object.min_sentinel_trust_level;
|
|
942
|
+
}
|
|
943
|
+
if (object.min_sentinel_age_blocks !== undefined && object.min_sentinel_age_blocks !== null) {
|
|
944
|
+
message.minSentinelAgeBlocks = BigInt(object.min_sentinel_age_blocks);
|
|
945
|
+
}
|
|
946
|
+
if (object.sentinel_demotion_cooldown !== undefined && object.sentinel_demotion_cooldown !== null) {
|
|
947
|
+
message.sentinelDemotionCooldown = BigInt(object.sentinel_demotion_cooldown);
|
|
948
|
+
}
|
|
949
|
+
if (object.sentinel_demotion_threshold !== undefined && object.sentinel_demotion_threshold !== null) {
|
|
950
|
+
message.sentinelDemotionThreshold = object.sentinel_demotion_threshold;
|
|
951
|
+
}
|
|
814
952
|
return message;
|
|
815
953
|
},
|
|
816
954
|
toAmino(message) {
|
|
@@ -844,6 +982,12 @@ exports.ForumOperationalParams = {
|
|
|
844
982
|
obj.ephemeral_ttl = message.ephemeralTtl !== BigInt(0) ? message.ephemeralTtl?.toString() : undefined;
|
|
845
983
|
obj.conviction_renewal_threshold = message.convictionRenewalThreshold === "" ? undefined : message.convictionRenewalThreshold;
|
|
846
984
|
obj.conviction_renewal_period = message.convictionRenewalPeriod !== BigInt(0) ? message.convictionRenewalPeriod?.toString() : undefined;
|
|
985
|
+
obj.min_sentinel_bond = message.minSentinelBond === "" ? undefined : message.minSentinelBond;
|
|
986
|
+
obj.min_sentinel_rep_tier = message.minSentinelRepTier !== BigInt(0) ? message.minSentinelRepTier?.toString() : undefined;
|
|
987
|
+
obj.min_sentinel_trust_level = message.minSentinelTrustLevel === "" ? undefined : message.minSentinelTrustLevel;
|
|
988
|
+
obj.min_sentinel_age_blocks = message.minSentinelAgeBlocks !== BigInt(0) ? message.minSentinelAgeBlocks?.toString() : undefined;
|
|
989
|
+
obj.sentinel_demotion_cooldown = message.sentinelDemotionCooldown !== BigInt(0) ? message.sentinelDemotionCooldown?.toString() : undefined;
|
|
990
|
+
obj.sentinel_demotion_threshold = message.sentinelDemotionThreshold === "" ? undefined : message.sentinelDemotionThreshold;
|
|
847
991
|
return obj;
|
|
848
992
|
},
|
|
849
993
|
fromAminoMsg(object) {
|
|
@@ -37,6 +37,13 @@ export interface Market {
|
|
|
37
37
|
*/
|
|
38
38
|
initialLiquidity: string;
|
|
39
39
|
liquidityWithdrawn: string;
|
|
40
|
+
/**
|
|
41
|
+
* Settlement price for CANCELLED and RESOLVED_INVALID markets that have
|
|
42
|
+
* outstanding shares. p_yes = exp(q_yes/b) / (exp(q_yes/b) + exp(q_no/b)).
|
|
43
|
+
* Holders redeem 1 YES share for p_yes spark and 1 NO share for (1 - p_yes)
|
|
44
|
+
* spark. Empty for ACTIVE or RESOLVED_YES/NO markets.
|
|
45
|
+
*/
|
|
46
|
+
settlementPriceYes: string;
|
|
40
47
|
}
|
|
41
48
|
export interface MarketProtoMsg {
|
|
42
49
|
typeUrl: "/sparkdream.futarchy.v1.Market";
|
|
@@ -79,6 +86,13 @@ export interface MarketAmino {
|
|
|
79
86
|
*/
|
|
80
87
|
initial_liquidity?: string;
|
|
81
88
|
liquidity_withdrawn?: string;
|
|
89
|
+
/**
|
|
90
|
+
* Settlement price for CANCELLED and RESOLVED_INVALID markets that have
|
|
91
|
+
* outstanding shares. p_yes = exp(q_yes/b) / (exp(q_yes/b) + exp(q_no/b)).
|
|
92
|
+
* Holders redeem 1 YES share for p_yes spark and 1 NO share for (1 - p_yes)
|
|
93
|
+
* spark. Empty for ACTIVE or RESOLVED_YES/NO markets.
|
|
94
|
+
*/
|
|
95
|
+
settlement_price_yes?: string;
|
|
82
96
|
}
|
|
83
97
|
export interface MarketAminoMsg {
|
|
84
98
|
type: "/sparkdream.futarchy.v1.Market";
|
|
@@ -20,7 +20,8 @@ function createBaseMarket() {
|
|
|
20
20
|
poolYes: "",
|
|
21
21
|
poolNo: "",
|
|
22
22
|
initialLiquidity: "",
|
|
23
|
-
liquidityWithdrawn: ""
|
|
23
|
+
liquidityWithdrawn: "",
|
|
24
|
+
settlementPriceYes: ""
|
|
24
25
|
};
|
|
25
26
|
}
|
|
26
27
|
/**
|
|
@@ -77,6 +78,9 @@ exports.Market = {
|
|
|
77
78
|
if (message.liquidityWithdrawn !== "") {
|
|
78
79
|
writer.uint32(122).string(message.liquidityWithdrawn);
|
|
79
80
|
}
|
|
81
|
+
if (message.settlementPriceYes !== "") {
|
|
82
|
+
writer.uint32(130).string(math_1.Decimal.fromUserInput(message.settlementPriceYes, 18).atomics);
|
|
83
|
+
}
|
|
80
84
|
return writer;
|
|
81
85
|
},
|
|
82
86
|
decode(input, length) {
|
|
@@ -131,6 +135,9 @@ exports.Market = {
|
|
|
131
135
|
case 15:
|
|
132
136
|
message.liquidityWithdrawn = reader.string();
|
|
133
137
|
break;
|
|
138
|
+
case 16:
|
|
139
|
+
message.settlementPriceYes = math_1.Decimal.fromAtomics(reader.string(), 18).toString();
|
|
140
|
+
break;
|
|
134
141
|
default:
|
|
135
142
|
reader.skipType(tag & 7);
|
|
136
143
|
break;
|
|
@@ -155,6 +162,7 @@ exports.Market = {
|
|
|
155
162
|
message.poolNo = object.poolNo ?? "";
|
|
156
163
|
message.initialLiquidity = object.initialLiquidity ?? "";
|
|
157
164
|
message.liquidityWithdrawn = object.liquidityWithdrawn ?? "";
|
|
165
|
+
message.settlementPriceYes = object.settlementPriceYes ?? "";
|
|
158
166
|
return message;
|
|
159
167
|
},
|
|
160
168
|
fromAmino(object) {
|
|
@@ -204,6 +212,9 @@ exports.Market = {
|
|
|
204
212
|
if (object.liquidity_withdrawn !== undefined && object.liquidity_withdrawn !== null) {
|
|
205
213
|
message.liquidityWithdrawn = object.liquidity_withdrawn;
|
|
206
214
|
}
|
|
215
|
+
if (object.settlement_price_yes !== undefined && object.settlement_price_yes !== null) {
|
|
216
|
+
message.settlementPriceYes = object.settlement_price_yes;
|
|
217
|
+
}
|
|
207
218
|
return message;
|
|
208
219
|
},
|
|
209
220
|
toAmino(message) {
|
|
@@ -223,6 +234,7 @@ exports.Market = {
|
|
|
223
234
|
obj.pool_no = message.poolNo === "" ? undefined : message.poolNo;
|
|
224
235
|
obj.initial_liquidity = message.initialLiquidity === "" ? undefined : message.initialLiquidity;
|
|
225
236
|
obj.liquidity_withdrawn = message.liquidityWithdrawn === "" ? undefined : message.liquidityWithdrawn;
|
|
237
|
+
obj.settlement_price_yes = message.settlementPriceYes === "" ? undefined : message.settlementPriceYes;
|
|
226
238
|
return obj;
|
|
227
239
|
},
|
|
228
240
|
fromAminoMsg(object) {
|