@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
|
@@ -19,6 +19,12 @@ export interface MemberReport {
|
|
|
19
19
|
reporters: string[];
|
|
20
20
|
evidencePostIds: bigint[];
|
|
21
21
|
defensePostIds: bigint[];
|
|
22
|
+
/**
|
|
23
|
+
* Per-signer locked bond amounts. Initial reporter and each cosigner lock
|
|
24
|
+
* different amounts; refunds must use the recorded per-signer amount, not
|
|
25
|
+
* an averaged share, to prevent cross-signer bond theft.
|
|
26
|
+
*/
|
|
27
|
+
reporterBonds: ReporterBondEntry[];
|
|
22
28
|
}
|
|
23
29
|
export interface MemberReportProtoMsg {
|
|
24
30
|
typeUrl: "/sparkdream.rep.v1.MemberReport";
|
|
@@ -42,11 +48,47 @@ export interface MemberReportAmino {
|
|
|
42
48
|
reporters?: string[];
|
|
43
49
|
evidence_post_ids?: string[];
|
|
44
50
|
defense_post_ids?: string[];
|
|
51
|
+
/**
|
|
52
|
+
* Per-signer locked bond amounts. Initial reporter and each cosigner lock
|
|
53
|
+
* different amounts; refunds must use the recorded per-signer amount, not
|
|
54
|
+
* an averaged share, to prevent cross-signer bond theft.
|
|
55
|
+
*/
|
|
56
|
+
reporter_bonds?: ReporterBondEntryAmino[];
|
|
45
57
|
}
|
|
46
58
|
export interface MemberReportAminoMsg {
|
|
47
59
|
type: "/sparkdream.rep.v1.MemberReport";
|
|
48
60
|
value: MemberReportAmino;
|
|
49
61
|
}
|
|
62
|
+
/**
|
|
63
|
+
* ReporterBondEntry tracks the DREAM amount locked by a specific reporter
|
|
64
|
+
* or cosigner against a member report.
|
|
65
|
+
* @name ReporterBondEntry
|
|
66
|
+
* @package sparkdream.rep.v1
|
|
67
|
+
* @see proto type: sparkdream.rep.v1.ReporterBondEntry
|
|
68
|
+
*/
|
|
69
|
+
export interface ReporterBondEntry {
|
|
70
|
+
address: string;
|
|
71
|
+
amount: string;
|
|
72
|
+
}
|
|
73
|
+
export interface ReporterBondEntryProtoMsg {
|
|
74
|
+
typeUrl: "/sparkdream.rep.v1.ReporterBondEntry";
|
|
75
|
+
value: Uint8Array;
|
|
76
|
+
}
|
|
77
|
+
/**
|
|
78
|
+
* ReporterBondEntry tracks the DREAM amount locked by a specific reporter
|
|
79
|
+
* or cosigner against a member report.
|
|
80
|
+
* @name ReporterBondEntryAmino
|
|
81
|
+
* @package sparkdream.rep.v1
|
|
82
|
+
* @see proto type: sparkdream.rep.v1.ReporterBondEntry
|
|
83
|
+
*/
|
|
84
|
+
export interface ReporterBondEntryAmino {
|
|
85
|
+
address?: string;
|
|
86
|
+
amount?: string;
|
|
87
|
+
}
|
|
88
|
+
export interface ReporterBondEntryAminoMsg {
|
|
89
|
+
type: "/sparkdream.rep.v1.ReporterBondEntry";
|
|
90
|
+
value: ReporterBondEntryAmino;
|
|
91
|
+
}
|
|
50
92
|
/**
|
|
51
93
|
* MemberReport defines the MemberReport message.
|
|
52
94
|
* @name MemberReport
|
|
@@ -65,3 +107,22 @@ export declare const MemberReport: {
|
|
|
65
107
|
toProto(message: MemberReport): Uint8Array;
|
|
66
108
|
toProtoMsg(message: MemberReport): MemberReportProtoMsg;
|
|
67
109
|
};
|
|
110
|
+
/**
|
|
111
|
+
* ReporterBondEntry tracks the DREAM amount locked by a specific reporter
|
|
112
|
+
* or cosigner against a member report.
|
|
113
|
+
* @name ReporterBondEntry
|
|
114
|
+
* @package sparkdream.rep.v1
|
|
115
|
+
* @see proto type: sparkdream.rep.v1.ReporterBondEntry
|
|
116
|
+
*/
|
|
117
|
+
export declare const ReporterBondEntry: {
|
|
118
|
+
typeUrl: string;
|
|
119
|
+
encode(message: ReporterBondEntry, writer?: BinaryWriter): BinaryWriter;
|
|
120
|
+
decode(input: BinaryReader | Uint8Array, length?: number): ReporterBondEntry;
|
|
121
|
+
fromPartial(object: DeepPartial<ReporterBondEntry>): ReporterBondEntry;
|
|
122
|
+
fromAmino(object: ReporterBondEntryAmino): ReporterBondEntry;
|
|
123
|
+
toAmino(message: ReporterBondEntry): ReporterBondEntryAmino;
|
|
124
|
+
fromAminoMsg(object: ReporterBondEntryAminoMsg): ReporterBondEntry;
|
|
125
|
+
fromProtoMsg(message: ReporterBondEntryProtoMsg): ReporterBondEntry;
|
|
126
|
+
toProto(message: ReporterBondEntry): Uint8Array;
|
|
127
|
+
toProtoMsg(message: ReporterBondEntry): ReporterBondEntryProtoMsg;
|
|
128
|
+
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.MemberReport = void 0;
|
|
3
|
+
exports.ReporterBondEntry = exports.MemberReport = void 0;
|
|
4
4
|
const binary_1 = require("../../../binary");
|
|
5
5
|
function createBaseMemberReport() {
|
|
6
6
|
return {
|
|
@@ -14,7 +14,8 @@ function createBaseMemberReport() {
|
|
|
14
14
|
defenseSubmittedAt: BigInt(0),
|
|
15
15
|
reporters: [],
|
|
16
16
|
evidencePostIds: [],
|
|
17
|
-
defensePostIds: []
|
|
17
|
+
defensePostIds: [],
|
|
18
|
+
reporterBonds: []
|
|
18
19
|
};
|
|
19
20
|
}
|
|
20
21
|
/**
|
|
@@ -63,6 +64,9 @@ exports.MemberReport = {
|
|
|
63
64
|
writer.uint64(v);
|
|
64
65
|
}
|
|
65
66
|
writer.ldelim();
|
|
67
|
+
for (const v of message.reporterBonds) {
|
|
68
|
+
exports.ReporterBondEntry.encode(v, writer.uint32(106).fork()).ldelim();
|
|
69
|
+
}
|
|
66
70
|
return writer;
|
|
67
71
|
},
|
|
68
72
|
decode(input, length) {
|
|
@@ -121,6 +125,9 @@ exports.MemberReport = {
|
|
|
121
125
|
message.defensePostIds.push(reader.uint64());
|
|
122
126
|
}
|
|
123
127
|
break;
|
|
128
|
+
case 13:
|
|
129
|
+
message.reporterBonds.push(exports.ReporterBondEntry.decode(reader, reader.uint32()));
|
|
130
|
+
break;
|
|
124
131
|
default:
|
|
125
132
|
reader.skipType(tag & 7);
|
|
126
133
|
break;
|
|
@@ -141,6 +148,7 @@ exports.MemberReport = {
|
|
|
141
148
|
message.reporters = object.reporters?.map(e => e) || [];
|
|
142
149
|
message.evidencePostIds = object.evidencePostIds?.map(e => BigInt(e.toString())) || [];
|
|
143
150
|
message.defensePostIds = object.defensePostIds?.map(e => BigInt(e.toString())) || [];
|
|
151
|
+
message.reporterBonds = object.reporterBonds?.map(e => exports.ReporterBondEntry.fromPartial(e)) || [];
|
|
144
152
|
return message;
|
|
145
153
|
},
|
|
146
154
|
fromAmino(object) {
|
|
@@ -172,6 +180,7 @@ exports.MemberReport = {
|
|
|
172
180
|
message.reporters = object.reporters?.map(e => e) || [];
|
|
173
181
|
message.evidencePostIds = object.evidence_post_ids?.map(e => BigInt(e)) || [];
|
|
174
182
|
message.defensePostIds = object.defense_post_ids?.map(e => BigInt(e)) || [];
|
|
183
|
+
message.reporterBonds = object.reporter_bonds?.map(e => exports.ReporterBondEntry.fromAmino(e)) || [];
|
|
175
184
|
return message;
|
|
176
185
|
},
|
|
177
186
|
toAmino(message) {
|
|
@@ -202,6 +211,12 @@ exports.MemberReport = {
|
|
|
202
211
|
else {
|
|
203
212
|
obj.defense_post_ids = message.defensePostIds;
|
|
204
213
|
}
|
|
214
|
+
if (message.reporterBonds) {
|
|
215
|
+
obj.reporter_bonds = message.reporterBonds.map(e => e ? exports.ReporterBondEntry.toAmino(e) : undefined);
|
|
216
|
+
}
|
|
217
|
+
else {
|
|
218
|
+
obj.reporter_bonds = message.reporterBonds;
|
|
219
|
+
}
|
|
205
220
|
return obj;
|
|
206
221
|
},
|
|
207
222
|
fromAminoMsg(object) {
|
|
@@ -220,3 +235,85 @@ exports.MemberReport = {
|
|
|
220
235
|
};
|
|
221
236
|
}
|
|
222
237
|
};
|
|
238
|
+
function createBaseReporterBondEntry() {
|
|
239
|
+
return {
|
|
240
|
+
address: "",
|
|
241
|
+
amount: ""
|
|
242
|
+
};
|
|
243
|
+
}
|
|
244
|
+
/**
|
|
245
|
+
* ReporterBondEntry tracks the DREAM amount locked by a specific reporter
|
|
246
|
+
* or cosigner against a member report.
|
|
247
|
+
* @name ReporterBondEntry
|
|
248
|
+
* @package sparkdream.rep.v1
|
|
249
|
+
* @see proto type: sparkdream.rep.v1.ReporterBondEntry
|
|
250
|
+
*/
|
|
251
|
+
exports.ReporterBondEntry = {
|
|
252
|
+
typeUrl: "/sparkdream.rep.v1.ReporterBondEntry",
|
|
253
|
+
encode(message, writer = binary_1.BinaryWriter.create()) {
|
|
254
|
+
if (message.address !== "") {
|
|
255
|
+
writer.uint32(10).string(message.address);
|
|
256
|
+
}
|
|
257
|
+
if (message.amount !== "") {
|
|
258
|
+
writer.uint32(18).string(message.amount);
|
|
259
|
+
}
|
|
260
|
+
return writer;
|
|
261
|
+
},
|
|
262
|
+
decode(input, length) {
|
|
263
|
+
const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input);
|
|
264
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
265
|
+
const message = createBaseReporterBondEntry();
|
|
266
|
+
while (reader.pos < end) {
|
|
267
|
+
const tag = reader.uint32();
|
|
268
|
+
switch (tag >>> 3) {
|
|
269
|
+
case 1:
|
|
270
|
+
message.address = reader.string();
|
|
271
|
+
break;
|
|
272
|
+
case 2:
|
|
273
|
+
message.amount = reader.string();
|
|
274
|
+
break;
|
|
275
|
+
default:
|
|
276
|
+
reader.skipType(tag & 7);
|
|
277
|
+
break;
|
|
278
|
+
}
|
|
279
|
+
}
|
|
280
|
+
return message;
|
|
281
|
+
},
|
|
282
|
+
fromPartial(object) {
|
|
283
|
+
const message = createBaseReporterBondEntry();
|
|
284
|
+
message.address = object.address ?? "";
|
|
285
|
+
message.amount = object.amount ?? "";
|
|
286
|
+
return message;
|
|
287
|
+
},
|
|
288
|
+
fromAmino(object) {
|
|
289
|
+
const message = createBaseReporterBondEntry();
|
|
290
|
+
if (object.address !== undefined && object.address !== null) {
|
|
291
|
+
message.address = object.address;
|
|
292
|
+
}
|
|
293
|
+
if (object.amount !== undefined && object.amount !== null) {
|
|
294
|
+
message.amount = object.amount;
|
|
295
|
+
}
|
|
296
|
+
return message;
|
|
297
|
+
},
|
|
298
|
+
toAmino(message) {
|
|
299
|
+
const obj = {};
|
|
300
|
+
obj.address = message.address === "" ? undefined : message.address;
|
|
301
|
+
obj.amount = message.amount === "" ? undefined : message.amount;
|
|
302
|
+
return obj;
|
|
303
|
+
},
|
|
304
|
+
fromAminoMsg(object) {
|
|
305
|
+
return exports.ReporterBondEntry.fromAmino(object.value);
|
|
306
|
+
},
|
|
307
|
+
fromProtoMsg(message) {
|
|
308
|
+
return exports.ReporterBondEntry.decode(message.value);
|
|
309
|
+
},
|
|
310
|
+
toProto(message) {
|
|
311
|
+
return exports.ReporterBondEntry.encode(message).finish();
|
|
312
|
+
},
|
|
313
|
+
toProtoMsg(message) {
|
|
314
|
+
return {
|
|
315
|
+
typeUrl: "/sparkdream.rep.v1.ReporterBondEntry",
|
|
316
|
+
value: exports.ReporterBondEntry.encode(message).finish()
|
|
317
|
+
};
|
|
318
|
+
}
|
|
319
|
+
};
|