@sparkdreamnft/sparkdreamjs 0.0.9 → 0.0.11
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/name/v1/owner_info.js +13 -1
- package/esm/sparkdream/name/v1/query.js +141 -0
- package/esm/sparkdream/name/v1/query.lcd.js +7 -0
- package/esm/sparkdream/name/v1/query.rpc.Query.js +12 -1
- package/esm/sparkdream/name/v1/tx.amino.js +6 -1
- package/esm/sparkdream/name/v1/tx.js +147 -0
- package/esm/sparkdream/name/v1/tx.registry.js +20 -2
- package/esm/sparkdream/name/v1/tx.rpc.msg.js +8 -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 +14445 -14514
- package/sparkdream/bundle.js +343 -339
- package/sparkdream/client.d.ts +11 -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/name/v1/owner_info.d.ts +12 -0
- package/sparkdream/name/v1/owner_info.js +13 -1
- package/sparkdream/name/v1/query.d.ts +95 -0
- package/sparkdream/name/v1/query.js +142 -1
- package/sparkdream/name/v1/query.lcd.d.ts +2 -1
- package/sparkdream/name/v1/query.lcd.js +7 -0
- package/sparkdream/name/v1/query.rpc.Query.d.ts +9 -1
- package/sparkdream/name/v1/query.rpc.Query.js +11 -0
- package/sparkdream/name/v1/tx.amino.d.ts +6 -1
- package/sparkdream/name/v1/tx.amino.js +5 -0
- package/sparkdream/name/v1/tx.d.ts +105 -0
- package/sparkdream/name/v1/tx.js +148 -1
- package/sparkdream/name/v1/tx.registry.d.ts +13 -1
- package/sparkdream/name/v1/tx.registry.js +19 -1
- package/sparkdream/name/v1/tx.rpc.msg.d.ts +7 -1
- package/sparkdream/name/v1/tx.rpc.msg.js +7 -0
- package/sparkdream/rep/v1/bonded_role.d.ts +330 -0
- package/sparkdream/rep/v1/bonded_role.js +453 -0
- package/sparkdream/rep/v1/genesis.d.ts +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 +9 -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
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.MessageComposer = exports.load = exports.registry = void 0;
|
|
4
4
|
const tx_1 = require("./tx");
|
|
5
|
-
exports.registry = [["/sparkdream.collect.v1.MsgUpdateParams", tx_1.MsgUpdateParams], ["/sparkdream.collect.v1.MsgCreateCollection", tx_1.MsgCreateCollection], ["/sparkdream.collect.v1.MsgUpdateCollection", tx_1.MsgUpdateCollection], ["/sparkdream.collect.v1.MsgDeleteCollection", tx_1.MsgDeleteCollection], ["/sparkdream.collect.v1.MsgAddItem", tx_1.MsgAddItem], ["/sparkdream.collect.v1.MsgAddItems", tx_1.MsgAddItems], ["/sparkdream.collect.v1.MsgUpdateItem", tx_1.MsgUpdateItem], ["/sparkdream.collect.v1.MsgRemoveItem", tx_1.MsgRemoveItem], ["/sparkdream.collect.v1.MsgRemoveItems", tx_1.MsgRemoveItems], ["/sparkdream.collect.v1.MsgReorderItem", tx_1.MsgReorderItem], ["/sparkdream.collect.v1.MsgAddCollaborator", tx_1.MsgAddCollaborator], ["/sparkdream.collect.v1.MsgRemoveCollaborator", tx_1.MsgRemoveCollaborator], ["/sparkdream.collect.v1.MsgUpdateCollaboratorRole", tx_1.MsgUpdateCollaboratorRole], ["/sparkdream.collect.v1.
|
|
5
|
+
exports.registry = [["/sparkdream.collect.v1.MsgUpdateParams", tx_1.MsgUpdateParams], ["/sparkdream.collect.v1.MsgCreateCollection", tx_1.MsgCreateCollection], ["/sparkdream.collect.v1.MsgUpdateCollection", tx_1.MsgUpdateCollection], ["/sparkdream.collect.v1.MsgDeleteCollection", tx_1.MsgDeleteCollection], ["/sparkdream.collect.v1.MsgAddItem", tx_1.MsgAddItem], ["/sparkdream.collect.v1.MsgAddItems", tx_1.MsgAddItems], ["/sparkdream.collect.v1.MsgUpdateItem", tx_1.MsgUpdateItem], ["/sparkdream.collect.v1.MsgRemoveItem", tx_1.MsgRemoveItem], ["/sparkdream.collect.v1.MsgRemoveItems", tx_1.MsgRemoveItems], ["/sparkdream.collect.v1.MsgReorderItem", tx_1.MsgReorderItem], ["/sparkdream.collect.v1.MsgAddCollaborator", tx_1.MsgAddCollaborator], ["/sparkdream.collect.v1.MsgRemoveCollaborator", tx_1.MsgRemoveCollaborator], ["/sparkdream.collect.v1.MsgUpdateCollaboratorRole", tx_1.MsgUpdateCollaboratorRole], ["/sparkdream.collect.v1.MsgRateCollection", tx_1.MsgRateCollection], ["/sparkdream.collect.v1.MsgChallengeReview", tx_1.MsgChallengeReview], ["/sparkdream.collect.v1.MsgRequestSponsorship", tx_1.MsgRequestSponsorship], ["/sparkdream.collect.v1.MsgCancelSponsorshipRequest", tx_1.MsgCancelSponsorshipRequest], ["/sparkdream.collect.v1.MsgSponsorCollection", tx_1.MsgSponsorCollection], ["/sparkdream.collect.v1.MsgUpdateOperationalParams", tx_1.MsgUpdateOperationalParams], ["/sparkdream.collect.v1.MsgUpvoteContent", tx_1.MsgUpvoteContent], ["/sparkdream.collect.v1.MsgDownvoteContent", tx_1.MsgDownvoteContent], ["/sparkdream.collect.v1.MsgFlagContent", tx_1.MsgFlagContent], ["/sparkdream.collect.v1.MsgHideContent", tx_1.MsgHideContent], ["/sparkdream.collect.v1.MsgAppealHide", tx_1.MsgAppealHide], ["/sparkdream.collect.v1.MsgEndorseCollection", tx_1.MsgEndorseCollection], ["/sparkdream.collect.v1.MsgSetSeekingEndorsement", tx_1.MsgSetSeekingEndorsement], ["/sparkdream.collect.v1.MsgPinCollection", tx_1.MsgPinCollection]];
|
|
6
6
|
const load = (protoRegistry) => {
|
|
7
7
|
exports.registry.forEach(([typeUrl, mod]) => {
|
|
8
8
|
protoRegistry.register(typeUrl, mod);
|
|
@@ -89,18 +89,6 @@ exports.MessageComposer = {
|
|
|
89
89
|
value: tx_1.MsgUpdateCollaboratorRole.encode(value).finish()
|
|
90
90
|
};
|
|
91
91
|
},
|
|
92
|
-
registerCurator(value) {
|
|
93
|
-
return {
|
|
94
|
-
typeUrl: "/sparkdream.collect.v1.MsgRegisterCurator",
|
|
95
|
-
value: tx_1.MsgRegisterCurator.encode(value).finish()
|
|
96
|
-
};
|
|
97
|
-
},
|
|
98
|
-
unregisterCurator(value) {
|
|
99
|
-
return {
|
|
100
|
-
typeUrl: "/sparkdream.collect.v1.MsgUnregisterCurator",
|
|
101
|
-
value: tx_1.MsgUnregisterCurator.encode(value).finish()
|
|
102
|
-
};
|
|
103
|
-
},
|
|
104
92
|
rateCollection(value) {
|
|
105
93
|
return {
|
|
106
94
|
typeUrl: "/sparkdream.collect.v1.MsgRateCollection",
|
|
@@ -265,18 +253,6 @@ exports.MessageComposer = {
|
|
|
265
253
|
value
|
|
266
254
|
};
|
|
267
255
|
},
|
|
268
|
-
registerCurator(value) {
|
|
269
|
-
return {
|
|
270
|
-
typeUrl: "/sparkdream.collect.v1.MsgRegisterCurator",
|
|
271
|
-
value
|
|
272
|
-
};
|
|
273
|
-
},
|
|
274
|
-
unregisterCurator(value) {
|
|
275
|
-
return {
|
|
276
|
-
typeUrl: "/sparkdream.collect.v1.MsgUnregisterCurator",
|
|
277
|
-
value
|
|
278
|
-
};
|
|
279
|
-
},
|
|
280
256
|
rateCollection(value) {
|
|
281
257
|
return {
|
|
282
258
|
typeUrl: "/sparkdream.collect.v1.MsgRateCollection",
|
|
@@ -441,18 +417,6 @@ exports.MessageComposer = {
|
|
|
441
417
|
value: tx_1.MsgUpdateCollaboratorRole.fromPartial(value)
|
|
442
418
|
};
|
|
443
419
|
},
|
|
444
|
-
registerCurator(value) {
|
|
445
|
-
return {
|
|
446
|
-
typeUrl: "/sparkdream.collect.v1.MsgRegisterCurator",
|
|
447
|
-
value: tx_1.MsgRegisterCurator.fromPartial(value)
|
|
448
|
-
};
|
|
449
|
-
},
|
|
450
|
-
unregisterCurator(value) {
|
|
451
|
-
return {
|
|
452
|
-
typeUrl: "/sparkdream.collect.v1.MsgUnregisterCurator",
|
|
453
|
-
value: tx_1.MsgUnregisterCurator.fromPartial(value)
|
|
454
|
-
};
|
|
455
|
-
},
|
|
456
420
|
rateCollection(value) {
|
|
457
421
|
return {
|
|
458
422
|
typeUrl: "/sparkdream.collect.v1.MsgRateCollection",
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { TxRpc } from "../../../types";
|
|
2
|
-
import { MsgUpdateParams, MsgUpdateParamsResponse, MsgCreateCollection, MsgCreateCollectionResponse, MsgUpdateCollection, MsgUpdateCollectionResponse, MsgDeleteCollection, MsgDeleteCollectionResponse, MsgAddItem, MsgAddItemResponse, MsgAddItems, MsgAddItemsResponse, MsgUpdateItem, MsgUpdateItemResponse, MsgRemoveItem, MsgRemoveItemResponse, MsgRemoveItems, MsgRemoveItemsResponse, MsgReorderItem, MsgReorderItemResponse, MsgAddCollaborator, MsgAddCollaboratorResponse, MsgRemoveCollaborator, MsgRemoveCollaboratorResponse, MsgUpdateCollaboratorRole, MsgUpdateCollaboratorRoleResponse,
|
|
2
|
+
import { MsgUpdateParams, MsgUpdateParamsResponse, MsgCreateCollection, MsgCreateCollectionResponse, MsgUpdateCollection, MsgUpdateCollectionResponse, MsgDeleteCollection, MsgDeleteCollectionResponse, MsgAddItem, MsgAddItemResponse, MsgAddItems, MsgAddItemsResponse, MsgUpdateItem, MsgUpdateItemResponse, MsgRemoveItem, MsgRemoveItemResponse, MsgRemoveItems, MsgRemoveItemsResponse, MsgReorderItem, MsgReorderItemResponse, MsgAddCollaborator, MsgAddCollaboratorResponse, MsgRemoveCollaborator, MsgRemoveCollaboratorResponse, MsgUpdateCollaboratorRole, MsgUpdateCollaboratorRoleResponse, MsgRateCollection, MsgRateCollectionResponse, MsgChallengeReview, MsgChallengeReviewResponse, MsgRequestSponsorship, MsgRequestSponsorshipResponse, MsgCancelSponsorshipRequest, MsgCancelSponsorshipRequestResponse, MsgSponsorCollection, MsgSponsorCollectionResponse, MsgUpdateOperationalParams, MsgUpdateOperationalParamsResponse, MsgUpvoteContent, MsgUpvoteContentResponse, MsgDownvoteContent, MsgDownvoteContentResponse, MsgFlagContent, MsgFlagContentResponse, MsgHideContent, MsgHideContentResponse, MsgAppealHide, MsgAppealHideResponse, MsgEndorseCollection, MsgEndorseCollectionResponse, MsgSetSeekingEndorsement, MsgSetSeekingEndorsementResponse, MsgPinCollection, MsgPinCollectionResponse } from "./tx";
|
|
3
3
|
/** Msg defines the Msg service. */
|
|
4
4
|
export interface Msg {
|
|
5
5
|
updateParams(request: MsgUpdateParams): Promise<MsgUpdateParamsResponse>;
|
|
@@ -15,8 +15,10 @@ export interface Msg {
|
|
|
15
15
|
addCollaborator(request: MsgAddCollaborator): Promise<MsgAddCollaboratorResponse>;
|
|
16
16
|
removeCollaborator(request: MsgRemoveCollaborator): Promise<MsgRemoveCollaboratorResponse>;
|
|
17
17
|
updateCollaboratorRole(request: MsgUpdateCollaboratorRole): Promise<MsgUpdateCollaboratorRoleResponse>;
|
|
18
|
-
|
|
19
|
-
|
|
18
|
+
/**
|
|
19
|
+
* RateCollection submits a curation review. The creator must hold a bonded
|
|
20
|
+
* ROLE_TYPE_COLLECT_CURATOR in x/rep (created via MsgBondRole there).
|
|
21
|
+
*/
|
|
20
22
|
rateCollection(request: MsgRateCollection): Promise<MsgRateCollectionResponse>;
|
|
21
23
|
challengeReview(request: MsgChallengeReview): Promise<MsgChallengeReviewResponse>;
|
|
22
24
|
requestSponsorship(request: MsgRequestSponsorship): Promise<MsgRequestSponsorshipResponse>;
|
|
@@ -56,8 +58,6 @@ export declare class MsgClientImpl implements Msg {
|
|
|
56
58
|
addCollaborator: (request: MsgAddCollaborator) => Promise<MsgAddCollaboratorResponse>;
|
|
57
59
|
removeCollaborator: (request: MsgRemoveCollaborator) => Promise<MsgRemoveCollaboratorResponse>;
|
|
58
60
|
updateCollaboratorRole: (request: MsgUpdateCollaboratorRole) => Promise<MsgUpdateCollaboratorRoleResponse>;
|
|
59
|
-
registerCurator: (request: MsgRegisterCurator) => Promise<MsgRegisterCuratorResponse>;
|
|
60
|
-
unregisterCurator: (request: MsgUnregisterCurator) => Promise<MsgUnregisterCuratorResponse>;
|
|
61
61
|
rateCollection: (request: MsgRateCollection) => Promise<MsgRateCollectionResponse>;
|
|
62
62
|
challengeReview: (request: MsgChallengeReview) => Promise<MsgChallengeReviewResponse>;
|
|
63
63
|
requestSponsorship: (request: MsgRequestSponsorship) => Promise<MsgRequestSponsorshipResponse>;
|
|
@@ -86,19 +86,8 @@ class MsgClientImpl {
|
|
|
86
86
|
const promise = this.rpc.request("sparkdream.collect.v1.Msg", "UpdateCollaboratorRole", data);
|
|
87
87
|
return promise.then(data => tx_1.MsgUpdateCollaboratorRoleResponse.decode(new binary_1.BinaryReader(data)));
|
|
88
88
|
};
|
|
89
|
-
/*
|
|
90
|
-
|
|
91
|
-
const data = tx_1.MsgRegisterCurator.encode(request).finish();
|
|
92
|
-
const promise = this.rpc.request("sparkdream.collect.v1.Msg", "RegisterCurator", data);
|
|
93
|
-
return promise.then(data => tx_1.MsgRegisterCuratorResponse.decode(new binary_1.BinaryReader(data)));
|
|
94
|
-
};
|
|
95
|
-
/* UnregisterCurator */
|
|
96
|
-
unregisterCurator = async (request) => {
|
|
97
|
-
const data = tx_1.MsgUnregisterCurator.encode(request).finish();
|
|
98
|
-
const promise = this.rpc.request("sparkdream.collect.v1.Msg", "UnregisterCurator", data);
|
|
99
|
-
return promise.then(data => tx_1.MsgUnregisterCuratorResponse.decode(new binary_1.BinaryReader(data)));
|
|
100
|
-
};
|
|
101
|
-
/* RateCollection */
|
|
89
|
+
/* RateCollection submits a curation review. The creator must hold a bonded
|
|
90
|
+
ROLE_TYPE_COLLECT_CURATOR in x/rep (created via MsgBondRole there). */
|
|
102
91
|
rateCollection = async (request) => {
|
|
103
92
|
const data = tx_1.MsgRateCollection.encode(request).finish();
|
|
104
93
|
const promise = this.rpc.request("sparkdream.collect.v1.Msg", "RateCollection", data);
|
|
@@ -419,44 +419,6 @@ export interface CollaboratorAminoMsg {
|
|
|
419
419
|
type: "/sparkdream.collect.v1.Collaborator";
|
|
420
420
|
value: CollaboratorAmino;
|
|
421
421
|
}
|
|
422
|
-
/**
|
|
423
|
-
* Curator represents a registered curation reviewer with a bonded stake.
|
|
424
|
-
* @name Curator
|
|
425
|
-
* @package sparkdream.collect.v1
|
|
426
|
-
* @see proto type: sparkdream.collect.v1.Curator
|
|
427
|
-
*/
|
|
428
|
-
export interface Curator {
|
|
429
|
-
address: string;
|
|
430
|
-
bondAmount: string;
|
|
431
|
-
registeredAt: bigint;
|
|
432
|
-
totalReviews: bigint;
|
|
433
|
-
challengedReviews: bigint;
|
|
434
|
-
active: boolean;
|
|
435
|
-
pendingChallenges: number;
|
|
436
|
-
}
|
|
437
|
-
export interface CuratorProtoMsg {
|
|
438
|
-
typeUrl: "/sparkdream.collect.v1.Curator";
|
|
439
|
-
value: Uint8Array;
|
|
440
|
-
}
|
|
441
|
-
/**
|
|
442
|
-
* Curator represents a registered curation reviewer with a bonded stake.
|
|
443
|
-
* @name CuratorAmino
|
|
444
|
-
* @package sparkdream.collect.v1
|
|
445
|
-
* @see proto type: sparkdream.collect.v1.Curator
|
|
446
|
-
*/
|
|
447
|
-
export interface CuratorAmino {
|
|
448
|
-
address?: string;
|
|
449
|
-
bond_amount?: string;
|
|
450
|
-
registered_at?: string;
|
|
451
|
-
total_reviews?: string;
|
|
452
|
-
challenged_reviews?: string;
|
|
453
|
-
active?: boolean;
|
|
454
|
-
pending_challenges?: number;
|
|
455
|
-
}
|
|
456
|
-
export interface CuratorAminoMsg {
|
|
457
|
-
type: "/sparkdream.collect.v1.Curator";
|
|
458
|
-
value: CuratorAmino;
|
|
459
|
-
}
|
|
460
422
|
/**
|
|
461
423
|
* CurationReview records a curator's verdict on a collection.
|
|
462
424
|
* @name CurationReview
|
|
@@ -474,6 +436,13 @@ export interface CurationReview {
|
|
|
474
436
|
challenged: boolean;
|
|
475
437
|
overturned: boolean;
|
|
476
438
|
challenger: string;
|
|
439
|
+
/**
|
|
440
|
+
* committed_slash is the DREAM amount reserved against the curator's bonded
|
|
441
|
+
* role (ROLE_TYPE_COLLECT_CURATOR) when the review was challenged. Set at
|
|
442
|
+
* MsgChallengeReview time and consumed at resolution (SlashBond on uphold,
|
|
443
|
+
* ReleaseBond on reject). Zero / empty when the review is not challenged.
|
|
444
|
+
*/
|
|
445
|
+
committedSlash: string;
|
|
477
446
|
}
|
|
478
447
|
export interface CurationReviewProtoMsg {
|
|
479
448
|
typeUrl: "/sparkdream.collect.v1.CurationReview";
|
|
@@ -496,6 +465,13 @@ export interface CurationReviewAmino {
|
|
|
496
465
|
challenged?: boolean;
|
|
497
466
|
overturned?: boolean;
|
|
498
467
|
challenger?: string;
|
|
468
|
+
/**
|
|
469
|
+
* committed_slash is the DREAM amount reserved against the curator's bonded
|
|
470
|
+
* role (ROLE_TYPE_COLLECT_CURATOR) when the review was challenged. Set at
|
|
471
|
+
* MsgChallengeReview time and consumed at resolution (SlashBond on uphold,
|
|
472
|
+
* ReleaseBond on reject). Zero / empty when the review is not challenged.
|
|
473
|
+
*/
|
|
474
|
+
committed_slash?: string;
|
|
499
475
|
}
|
|
500
476
|
export interface CurationReviewAminoMsg {
|
|
501
477
|
type: "/sparkdream.collect.v1.CurationReview";
|
|
@@ -696,6 +672,12 @@ export interface CollectOperationalParams {
|
|
|
696
672
|
*/
|
|
697
673
|
pinMinTrustLevel: number;
|
|
698
674
|
maxPinsPerDay: number;
|
|
675
|
+
/**
|
|
676
|
+
* --- Curator bonded-role config (flattened) — see Params for rationale ---
|
|
677
|
+
*/
|
|
678
|
+
curatorDemotionCooldown: bigint;
|
|
679
|
+
curatorDemotionThreshold: string;
|
|
680
|
+
curatorOverturnDemotionStreak: bigint;
|
|
699
681
|
}
|
|
700
682
|
export interface CollectOperationalParamsProtoMsg {
|
|
701
683
|
typeUrl: "/sparkdream.collect.v1.CollectOperationalParams";
|
|
@@ -754,6 +736,12 @@ export interface CollectOperationalParamsAmino {
|
|
|
754
736
|
*/
|
|
755
737
|
pin_min_trust_level?: number;
|
|
756
738
|
max_pins_per_day?: number;
|
|
739
|
+
/**
|
|
740
|
+
* --- Curator bonded-role config (flattened) — see Params for rationale ---
|
|
741
|
+
*/
|
|
742
|
+
curator_demotion_cooldown?: string;
|
|
743
|
+
curator_demotion_threshold?: string;
|
|
744
|
+
curator_overturn_demotion_streak?: string;
|
|
757
745
|
}
|
|
758
746
|
export interface CollectOperationalParamsAminoMsg {
|
|
759
747
|
type: "/sparkdream.collect.v1.CollectOperationalParams";
|
|
@@ -1023,24 +1011,6 @@ export declare const Collaborator: {
|
|
|
1023
1011
|
toProto(message: Collaborator): Uint8Array;
|
|
1024
1012
|
toProtoMsg(message: Collaborator): CollaboratorProtoMsg;
|
|
1025
1013
|
};
|
|
1026
|
-
/**
|
|
1027
|
-
* Curator represents a registered curation reviewer with a bonded stake.
|
|
1028
|
-
* @name Curator
|
|
1029
|
-
* @package sparkdream.collect.v1
|
|
1030
|
-
* @see proto type: sparkdream.collect.v1.Curator
|
|
1031
|
-
*/
|
|
1032
|
-
export declare const Curator: {
|
|
1033
|
-
typeUrl: string;
|
|
1034
|
-
encode(message: Curator, writer?: BinaryWriter): BinaryWriter;
|
|
1035
|
-
decode(input: BinaryReader | Uint8Array, length?: number): Curator;
|
|
1036
|
-
fromPartial(object: DeepPartial<Curator>): Curator;
|
|
1037
|
-
fromAmino(object: CuratorAmino): Curator;
|
|
1038
|
-
toAmino(message: Curator): CuratorAmino;
|
|
1039
|
-
fromAminoMsg(object: CuratorAminoMsg): Curator;
|
|
1040
|
-
fromProtoMsg(message: CuratorProtoMsg): Curator;
|
|
1041
|
-
toProto(message: Curator): Uint8Array;
|
|
1042
|
-
toProtoMsg(message: Curator): CuratorProtoMsg;
|
|
1043
|
-
};
|
|
1044
1014
|
/**
|
|
1045
1015
|
* CurationReview records a curator's verdict on a collection.
|
|
1046
1016
|
* @name CurationReview
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.Endorsement = exports.HideRecord = exports.CollectionFlag = exports.CollectOperationalParams = exports.AddItemEntry = exports.SponsorshipRequest = exports.TagCount = exports.CurationSummary = exports.CurationReview = exports.
|
|
3
|
+
exports.Endorsement = exports.HideRecord = exports.CollectionFlag = exports.CollectOperationalParams = exports.AddItemEntry = exports.SponsorshipRequest = exports.TagCount = exports.CurationSummary = exports.CurationReview = exports.Collaborator = exports.CustomReference = exports.OnChainReference = exports.LinkReference = exports.NftReference = exports.KeyValuePair = exports.Item = exports.Collection = exports.FlagTargetTypeAmino = exports.FlagTargetType = exports.ItemStatusAmino = exports.ItemStatus = exports.CollectionStatusAmino = exports.CollectionStatus = exports.CurationVerdictAmino = exports.CurationVerdict = exports.CollaboratorRoleAmino = exports.CollaboratorRole = exports.ReferenceTypeAmino = exports.ReferenceType = exports.VisibilityAmino = exports.Visibility = exports.CollectionTypeAmino = exports.CollectionType = void 0;
|
|
4
4
|
exports.collectionTypeFromJSON = collectionTypeFromJSON;
|
|
5
5
|
exports.collectionTypeToJSON = collectionTypeToJSON;
|
|
6
6
|
exports.visibilityFromJSON = visibilityFromJSON;
|
|
@@ -1621,147 +1621,6 @@ exports.Collaborator = {
|
|
|
1621
1621
|
};
|
|
1622
1622
|
}
|
|
1623
1623
|
};
|
|
1624
|
-
function createBaseCurator() {
|
|
1625
|
-
return {
|
|
1626
|
-
address: "",
|
|
1627
|
-
bondAmount: "",
|
|
1628
|
-
registeredAt: BigInt(0),
|
|
1629
|
-
totalReviews: BigInt(0),
|
|
1630
|
-
challengedReviews: BigInt(0),
|
|
1631
|
-
active: false,
|
|
1632
|
-
pendingChallenges: 0
|
|
1633
|
-
};
|
|
1634
|
-
}
|
|
1635
|
-
/**
|
|
1636
|
-
* Curator represents a registered curation reviewer with a bonded stake.
|
|
1637
|
-
* @name Curator
|
|
1638
|
-
* @package sparkdream.collect.v1
|
|
1639
|
-
* @see proto type: sparkdream.collect.v1.Curator
|
|
1640
|
-
*/
|
|
1641
|
-
exports.Curator = {
|
|
1642
|
-
typeUrl: "/sparkdream.collect.v1.Curator",
|
|
1643
|
-
encode(message, writer = binary_1.BinaryWriter.create()) {
|
|
1644
|
-
if (message.address !== "") {
|
|
1645
|
-
writer.uint32(10).string(message.address);
|
|
1646
|
-
}
|
|
1647
|
-
if (message.bondAmount !== "") {
|
|
1648
|
-
writer.uint32(18).string(message.bondAmount);
|
|
1649
|
-
}
|
|
1650
|
-
if (message.registeredAt !== BigInt(0)) {
|
|
1651
|
-
writer.uint32(24).int64(message.registeredAt);
|
|
1652
|
-
}
|
|
1653
|
-
if (message.totalReviews !== BigInt(0)) {
|
|
1654
|
-
writer.uint32(32).uint64(message.totalReviews);
|
|
1655
|
-
}
|
|
1656
|
-
if (message.challengedReviews !== BigInt(0)) {
|
|
1657
|
-
writer.uint32(40).uint64(message.challengedReviews);
|
|
1658
|
-
}
|
|
1659
|
-
if (message.active === true) {
|
|
1660
|
-
writer.uint32(48).bool(message.active);
|
|
1661
|
-
}
|
|
1662
|
-
if (message.pendingChallenges !== 0) {
|
|
1663
|
-
writer.uint32(56).uint32(message.pendingChallenges);
|
|
1664
|
-
}
|
|
1665
|
-
return writer;
|
|
1666
|
-
},
|
|
1667
|
-
decode(input, length) {
|
|
1668
|
-
const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input);
|
|
1669
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1670
|
-
const message = createBaseCurator();
|
|
1671
|
-
while (reader.pos < end) {
|
|
1672
|
-
const tag = reader.uint32();
|
|
1673
|
-
switch (tag >>> 3) {
|
|
1674
|
-
case 1:
|
|
1675
|
-
message.address = reader.string();
|
|
1676
|
-
break;
|
|
1677
|
-
case 2:
|
|
1678
|
-
message.bondAmount = reader.string();
|
|
1679
|
-
break;
|
|
1680
|
-
case 3:
|
|
1681
|
-
message.registeredAt = reader.int64();
|
|
1682
|
-
break;
|
|
1683
|
-
case 4:
|
|
1684
|
-
message.totalReviews = reader.uint64();
|
|
1685
|
-
break;
|
|
1686
|
-
case 5:
|
|
1687
|
-
message.challengedReviews = reader.uint64();
|
|
1688
|
-
break;
|
|
1689
|
-
case 6:
|
|
1690
|
-
message.active = reader.bool();
|
|
1691
|
-
break;
|
|
1692
|
-
case 7:
|
|
1693
|
-
message.pendingChallenges = reader.uint32();
|
|
1694
|
-
break;
|
|
1695
|
-
default:
|
|
1696
|
-
reader.skipType(tag & 7);
|
|
1697
|
-
break;
|
|
1698
|
-
}
|
|
1699
|
-
}
|
|
1700
|
-
return message;
|
|
1701
|
-
},
|
|
1702
|
-
fromPartial(object) {
|
|
1703
|
-
const message = createBaseCurator();
|
|
1704
|
-
message.address = object.address ?? "";
|
|
1705
|
-
message.bondAmount = object.bondAmount ?? "";
|
|
1706
|
-
message.registeredAt = object.registeredAt !== undefined && object.registeredAt !== null ? BigInt(object.registeredAt.toString()) : BigInt(0);
|
|
1707
|
-
message.totalReviews = object.totalReviews !== undefined && object.totalReviews !== null ? BigInt(object.totalReviews.toString()) : BigInt(0);
|
|
1708
|
-
message.challengedReviews = object.challengedReviews !== undefined && object.challengedReviews !== null ? BigInt(object.challengedReviews.toString()) : BigInt(0);
|
|
1709
|
-
message.active = object.active ?? false;
|
|
1710
|
-
message.pendingChallenges = object.pendingChallenges ?? 0;
|
|
1711
|
-
return message;
|
|
1712
|
-
},
|
|
1713
|
-
fromAmino(object) {
|
|
1714
|
-
const message = createBaseCurator();
|
|
1715
|
-
if (object.address !== undefined && object.address !== null) {
|
|
1716
|
-
message.address = object.address;
|
|
1717
|
-
}
|
|
1718
|
-
if (object.bond_amount !== undefined && object.bond_amount !== null) {
|
|
1719
|
-
message.bondAmount = object.bond_amount;
|
|
1720
|
-
}
|
|
1721
|
-
if (object.registered_at !== undefined && object.registered_at !== null) {
|
|
1722
|
-
message.registeredAt = BigInt(object.registered_at);
|
|
1723
|
-
}
|
|
1724
|
-
if (object.total_reviews !== undefined && object.total_reviews !== null) {
|
|
1725
|
-
message.totalReviews = BigInt(object.total_reviews);
|
|
1726
|
-
}
|
|
1727
|
-
if (object.challenged_reviews !== undefined && object.challenged_reviews !== null) {
|
|
1728
|
-
message.challengedReviews = BigInt(object.challenged_reviews);
|
|
1729
|
-
}
|
|
1730
|
-
if (object.active !== undefined && object.active !== null) {
|
|
1731
|
-
message.active = object.active;
|
|
1732
|
-
}
|
|
1733
|
-
if (object.pending_challenges !== undefined && object.pending_challenges !== null) {
|
|
1734
|
-
message.pendingChallenges = object.pending_challenges;
|
|
1735
|
-
}
|
|
1736
|
-
return message;
|
|
1737
|
-
},
|
|
1738
|
-
toAmino(message) {
|
|
1739
|
-
const obj = {};
|
|
1740
|
-
obj.address = message.address === "" ? undefined : message.address;
|
|
1741
|
-
obj.bond_amount = message.bondAmount === "" ? undefined : message.bondAmount;
|
|
1742
|
-
obj.registered_at = message.registeredAt !== BigInt(0) ? message.registeredAt?.toString() : undefined;
|
|
1743
|
-
obj.total_reviews = message.totalReviews !== BigInt(0) ? message.totalReviews?.toString() : undefined;
|
|
1744
|
-
obj.challenged_reviews = message.challengedReviews !== BigInt(0) ? message.challengedReviews?.toString() : undefined;
|
|
1745
|
-
obj.active = message.active === false ? undefined : message.active;
|
|
1746
|
-
obj.pending_challenges = message.pendingChallenges === 0 ? undefined : message.pendingChallenges;
|
|
1747
|
-
return obj;
|
|
1748
|
-
},
|
|
1749
|
-
fromAminoMsg(object) {
|
|
1750
|
-
return exports.Curator.fromAmino(object.value);
|
|
1751
|
-
},
|
|
1752
|
-
fromProtoMsg(message) {
|
|
1753
|
-
return exports.Curator.decode(message.value);
|
|
1754
|
-
},
|
|
1755
|
-
toProto(message) {
|
|
1756
|
-
return exports.Curator.encode(message).finish();
|
|
1757
|
-
},
|
|
1758
|
-
toProtoMsg(message) {
|
|
1759
|
-
return {
|
|
1760
|
-
typeUrl: "/sparkdream.collect.v1.Curator",
|
|
1761
|
-
value: exports.Curator.encode(message).finish()
|
|
1762
|
-
};
|
|
1763
|
-
}
|
|
1764
|
-
};
|
|
1765
1624
|
function createBaseCurationReview() {
|
|
1766
1625
|
return {
|
|
1767
1626
|
id: BigInt(0),
|
|
@@ -1773,7 +1632,8 @@ function createBaseCurationReview() {
|
|
|
1773
1632
|
createdAt: BigInt(0),
|
|
1774
1633
|
challenged: false,
|
|
1775
1634
|
overturned: false,
|
|
1776
|
-
challenger: ""
|
|
1635
|
+
challenger: "",
|
|
1636
|
+
committedSlash: ""
|
|
1777
1637
|
};
|
|
1778
1638
|
}
|
|
1779
1639
|
/**
|
|
@@ -1815,6 +1675,9 @@ exports.CurationReview = {
|
|
|
1815
1675
|
if (message.challenger !== "") {
|
|
1816
1676
|
writer.uint32(82).string(message.challenger);
|
|
1817
1677
|
}
|
|
1678
|
+
if (message.committedSlash !== "") {
|
|
1679
|
+
writer.uint32(90).string(message.committedSlash);
|
|
1680
|
+
}
|
|
1818
1681
|
return writer;
|
|
1819
1682
|
},
|
|
1820
1683
|
decode(input, length) {
|
|
@@ -1854,6 +1717,9 @@ exports.CurationReview = {
|
|
|
1854
1717
|
case 10:
|
|
1855
1718
|
message.challenger = reader.string();
|
|
1856
1719
|
break;
|
|
1720
|
+
case 11:
|
|
1721
|
+
message.committedSlash = reader.string();
|
|
1722
|
+
break;
|
|
1857
1723
|
default:
|
|
1858
1724
|
reader.skipType(tag & 7);
|
|
1859
1725
|
break;
|
|
@@ -1873,6 +1739,7 @@ exports.CurationReview = {
|
|
|
1873
1739
|
message.challenged = object.challenged ?? false;
|
|
1874
1740
|
message.overturned = object.overturned ?? false;
|
|
1875
1741
|
message.challenger = object.challenger ?? "";
|
|
1742
|
+
message.committedSlash = object.committedSlash ?? "";
|
|
1876
1743
|
return message;
|
|
1877
1744
|
},
|
|
1878
1745
|
fromAmino(object) {
|
|
@@ -1905,6 +1772,9 @@ exports.CurationReview = {
|
|
|
1905
1772
|
if (object.challenger !== undefined && object.challenger !== null) {
|
|
1906
1773
|
message.challenger = object.challenger;
|
|
1907
1774
|
}
|
|
1775
|
+
if (object.committed_slash !== undefined && object.committed_slash !== null) {
|
|
1776
|
+
message.committedSlash = object.committed_slash;
|
|
1777
|
+
}
|
|
1908
1778
|
return message;
|
|
1909
1779
|
},
|
|
1910
1780
|
toAmino(message) {
|
|
@@ -1924,6 +1794,7 @@ exports.CurationReview = {
|
|
|
1924
1794
|
obj.challenged = message.challenged === false ? undefined : message.challenged;
|
|
1925
1795
|
obj.overturned = message.overturned === false ? undefined : message.overturned;
|
|
1926
1796
|
obj.challenger = message.challenger === "" ? undefined : message.challenger;
|
|
1797
|
+
obj.committed_slash = message.committedSlash === "" ? undefined : message.committedSlash;
|
|
1927
1798
|
return obj;
|
|
1928
1799
|
},
|
|
1929
1800
|
fromAminoMsg(object) {
|
|
@@ -2493,7 +2364,10 @@ function createBaseCollectOperationalParams() {
|
|
|
2493
2364
|
convictionRenewalThreshold: "",
|
|
2494
2365
|
convictionRenewalPeriod: BigInt(0),
|
|
2495
2366
|
pinMinTrustLevel: 0,
|
|
2496
|
-
maxPinsPerDay: 0
|
|
2367
|
+
maxPinsPerDay: 0,
|
|
2368
|
+
curatorDemotionCooldown: BigInt(0),
|
|
2369
|
+
curatorDemotionThreshold: "",
|
|
2370
|
+
curatorOverturnDemotionStreak: BigInt(0)
|
|
2497
2371
|
};
|
|
2498
2372
|
}
|
|
2499
2373
|
/**
|
|
@@ -2625,6 +2499,15 @@ exports.CollectOperationalParams = {
|
|
|
2625
2499
|
if (message.maxPinsPerDay !== 0) {
|
|
2626
2500
|
writer.uint32(352).uint32(message.maxPinsPerDay);
|
|
2627
2501
|
}
|
|
2502
|
+
if (message.curatorDemotionCooldown !== BigInt(0)) {
|
|
2503
|
+
writer.uint32(360).int64(message.curatorDemotionCooldown);
|
|
2504
|
+
}
|
|
2505
|
+
if (message.curatorDemotionThreshold !== "") {
|
|
2506
|
+
writer.uint32(370).string(message.curatorDemotionThreshold);
|
|
2507
|
+
}
|
|
2508
|
+
if (message.curatorOverturnDemotionStreak !== BigInt(0)) {
|
|
2509
|
+
writer.uint32(376).uint64(message.curatorOverturnDemotionStreak);
|
|
2510
|
+
}
|
|
2628
2511
|
return writer;
|
|
2629
2512
|
},
|
|
2630
2513
|
decode(input, length) {
|
|
@@ -2754,6 +2637,15 @@ exports.CollectOperationalParams = {
|
|
|
2754
2637
|
case 44:
|
|
2755
2638
|
message.maxPinsPerDay = reader.uint32();
|
|
2756
2639
|
break;
|
|
2640
|
+
case 45:
|
|
2641
|
+
message.curatorDemotionCooldown = reader.int64();
|
|
2642
|
+
break;
|
|
2643
|
+
case 46:
|
|
2644
|
+
message.curatorDemotionThreshold = reader.string();
|
|
2645
|
+
break;
|
|
2646
|
+
case 47:
|
|
2647
|
+
message.curatorOverturnDemotionStreak = reader.uint64();
|
|
2648
|
+
break;
|
|
2757
2649
|
default:
|
|
2758
2650
|
reader.skipType(tag & 7);
|
|
2759
2651
|
break;
|
|
@@ -2803,6 +2695,9 @@ exports.CollectOperationalParams = {
|
|
|
2803
2695
|
message.convictionRenewalPeriod = object.convictionRenewalPeriod !== undefined && object.convictionRenewalPeriod !== null ? BigInt(object.convictionRenewalPeriod.toString()) : BigInt(0);
|
|
2804
2696
|
message.pinMinTrustLevel = object.pinMinTrustLevel ?? 0;
|
|
2805
2697
|
message.maxPinsPerDay = object.maxPinsPerDay ?? 0;
|
|
2698
|
+
message.curatorDemotionCooldown = object.curatorDemotionCooldown !== undefined && object.curatorDemotionCooldown !== null ? BigInt(object.curatorDemotionCooldown.toString()) : BigInt(0);
|
|
2699
|
+
message.curatorDemotionThreshold = object.curatorDemotionThreshold ?? "";
|
|
2700
|
+
message.curatorOverturnDemotionStreak = object.curatorOverturnDemotionStreak !== undefined && object.curatorOverturnDemotionStreak !== null ? BigInt(object.curatorOverturnDemotionStreak.toString()) : BigInt(0);
|
|
2806
2701
|
return message;
|
|
2807
2702
|
},
|
|
2808
2703
|
fromAmino(object) {
|
|
@@ -2927,6 +2822,15 @@ exports.CollectOperationalParams = {
|
|
|
2927
2822
|
if (object.max_pins_per_day !== undefined && object.max_pins_per_day !== null) {
|
|
2928
2823
|
message.maxPinsPerDay = object.max_pins_per_day;
|
|
2929
2824
|
}
|
|
2825
|
+
if (object.curator_demotion_cooldown !== undefined && object.curator_demotion_cooldown !== null) {
|
|
2826
|
+
message.curatorDemotionCooldown = BigInt(object.curator_demotion_cooldown);
|
|
2827
|
+
}
|
|
2828
|
+
if (object.curator_demotion_threshold !== undefined && object.curator_demotion_threshold !== null) {
|
|
2829
|
+
message.curatorDemotionThreshold = object.curator_demotion_threshold;
|
|
2830
|
+
}
|
|
2831
|
+
if (object.curator_overturn_demotion_streak !== undefined && object.curator_overturn_demotion_streak !== null) {
|
|
2832
|
+
message.curatorOverturnDemotionStreak = BigInt(object.curator_overturn_demotion_streak);
|
|
2833
|
+
}
|
|
2930
2834
|
return message;
|
|
2931
2835
|
},
|
|
2932
2836
|
toAmino(message) {
|
|
@@ -2971,6 +2875,9 @@ exports.CollectOperationalParams = {
|
|
|
2971
2875
|
obj.conviction_renewal_period = message.convictionRenewalPeriod !== BigInt(0) ? message.convictionRenewalPeriod?.toString() : undefined;
|
|
2972
2876
|
obj.pin_min_trust_level = message.pinMinTrustLevel === 0 ? undefined : message.pinMinTrustLevel;
|
|
2973
2877
|
obj.max_pins_per_day = message.maxPinsPerDay === 0 ? undefined : message.maxPinsPerDay;
|
|
2878
|
+
obj.curator_demotion_cooldown = message.curatorDemotionCooldown !== BigInt(0) ? message.curatorDemotionCooldown?.toString() : undefined;
|
|
2879
|
+
obj.curator_demotion_threshold = message.curatorDemotionThreshold === "" ? undefined : message.curatorDemotionThreshold;
|
|
2880
|
+
obj.curator_overturn_demotion_streak = message.curatorOverturnDemotionStreak !== BigInt(0) ? message.curatorOverturnDemotionStreak?.toString() : undefined;
|
|
2974
2881
|
return obj;
|
|
2975
2882
|
},
|
|
2976
2883
|
fromAminoMsg(object) {
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { Params, ParamsAmino } from "./params";
|
|
2
|
-
import { Peer, PeerAmino, PeerPolicy, PeerPolicyAmino, BridgeOperator, BridgeOperatorAmino, FederatedContent, FederatedContentAmino, IdentityLink, IdentityLinkAmino, ReputationAttestation, ReputationAttestationAmino, OutboundAttestation, OutboundAttestationAmino,
|
|
2
|
+
import { Peer, PeerAmino, PeerPolicy, PeerPolicyAmino, BridgeOperator, BridgeOperatorAmino, FederatedContent, FederatedContentAmino, IdentityLink, IdentityLinkAmino, ReputationAttestation, ReputationAttestationAmino, OutboundAttestation, OutboundAttestationAmino, VerificationRecord, VerificationRecordAmino } from "./types";
|
|
3
|
+
import { VerifierActivity, VerifierActivityAmino } from "./verifier_activity";
|
|
3
4
|
import { BinaryReader, BinaryWriter } from "../../../binary";
|
|
4
5
|
import { DeepPartial } from "../../../helpers";
|
|
5
6
|
/**
|
|
@@ -21,7 +22,7 @@ export interface GenesisState {
|
|
|
21
22
|
identityLinks: IdentityLink[];
|
|
22
23
|
reputationAttestations: ReputationAttestation[];
|
|
23
24
|
outboundAttestations: OutboundAttestation[];
|
|
24
|
-
|
|
25
|
+
verifierActivities: VerifierActivity[];
|
|
25
26
|
verificationRecords: VerificationRecord[];
|
|
26
27
|
nextContentId: bigint;
|
|
27
28
|
nextOutboundAttestationId: bigint;
|
|
@@ -49,7 +50,7 @@ export interface GenesisStateAmino {
|
|
|
49
50
|
identity_links?: IdentityLinkAmino[];
|
|
50
51
|
reputation_attestations?: ReputationAttestationAmino[];
|
|
51
52
|
outbound_attestations?: OutboundAttestationAmino[];
|
|
52
|
-
|
|
53
|
+
verifier_activities?: VerifierActivityAmino[];
|
|
53
54
|
verification_records?: VerificationRecordAmino[];
|
|
54
55
|
next_content_id?: string;
|
|
55
56
|
next_outbound_attestation_id?: string;
|
|
@@ -4,6 +4,7 @@ exports.GenesisState = void 0;
|
|
|
4
4
|
//@ts-nocheck
|
|
5
5
|
const params_1 = require("./params");
|
|
6
6
|
const types_1 = require("./types");
|
|
7
|
+
const verifier_activity_1 = require("./verifier_activity");
|
|
7
8
|
const binary_1 = require("../../../binary");
|
|
8
9
|
function createBaseGenesisState() {
|
|
9
10
|
return {
|
|
@@ -16,7 +17,7 @@ function createBaseGenesisState() {
|
|
|
16
17
|
identityLinks: [],
|
|
17
18
|
reputationAttestations: [],
|
|
18
19
|
outboundAttestations: [],
|
|
19
|
-
|
|
20
|
+
verifierActivities: [],
|
|
20
21
|
verificationRecords: [],
|
|
21
22
|
nextContentId: BigInt(0),
|
|
22
23
|
nextOutboundAttestationId: BigInt(0)
|
|
@@ -58,8 +59,8 @@ exports.GenesisState = {
|
|
|
58
59
|
for (const v of message.outboundAttestations) {
|
|
59
60
|
types_1.OutboundAttestation.encode(v, writer.uint32(74).fork()).ldelim();
|
|
60
61
|
}
|
|
61
|
-
for (const v of message.
|
|
62
|
-
|
|
62
|
+
for (const v of message.verifierActivities) {
|
|
63
|
+
verifier_activity_1.VerifierActivity.encode(v, writer.uint32(114).fork()).ldelim();
|
|
63
64
|
}
|
|
64
65
|
for (const v of message.verificationRecords) {
|
|
65
66
|
types_1.VerificationRecord.encode(v, writer.uint32(90).fork()).ldelim();
|
|
@@ -106,8 +107,8 @@ exports.GenesisState = {
|
|
|
106
107
|
case 9:
|
|
107
108
|
message.outboundAttestations.push(types_1.OutboundAttestation.decode(reader, reader.uint32()));
|
|
108
109
|
break;
|
|
109
|
-
case
|
|
110
|
-
message.
|
|
110
|
+
case 14:
|
|
111
|
+
message.verifierActivities.push(verifier_activity_1.VerifierActivity.decode(reader, reader.uint32()));
|
|
111
112
|
break;
|
|
112
113
|
case 11:
|
|
113
114
|
message.verificationRecords.push(types_1.VerificationRecord.decode(reader, reader.uint32()));
|
|
@@ -136,7 +137,7 @@ exports.GenesisState = {
|
|
|
136
137
|
message.identityLinks = object.identityLinks?.map(e => types_1.IdentityLink.fromPartial(e)) || [];
|
|
137
138
|
message.reputationAttestations = object.reputationAttestations?.map(e => types_1.ReputationAttestation.fromPartial(e)) || [];
|
|
138
139
|
message.outboundAttestations = object.outboundAttestations?.map(e => types_1.OutboundAttestation.fromPartial(e)) || [];
|
|
139
|
-
message.
|
|
140
|
+
message.verifierActivities = object.verifierActivities?.map(e => verifier_activity_1.VerifierActivity.fromPartial(e)) || [];
|
|
140
141
|
message.verificationRecords = object.verificationRecords?.map(e => types_1.VerificationRecord.fromPartial(e)) || [];
|
|
141
142
|
message.nextContentId = object.nextContentId !== undefined && object.nextContentId !== null ? BigInt(object.nextContentId.toString()) : BigInt(0);
|
|
142
143
|
message.nextOutboundAttestationId = object.nextOutboundAttestationId !== undefined && object.nextOutboundAttestationId !== null ? BigInt(object.nextOutboundAttestationId.toString()) : BigInt(0);
|
|
@@ -157,7 +158,7 @@ exports.GenesisState = {
|
|
|
157
158
|
message.identityLinks = object.identity_links?.map(e => types_1.IdentityLink.fromAmino(e)) || [];
|
|
158
159
|
message.reputationAttestations = object.reputation_attestations?.map(e => types_1.ReputationAttestation.fromAmino(e)) || [];
|
|
159
160
|
message.outboundAttestations = object.outbound_attestations?.map(e => types_1.OutboundAttestation.fromAmino(e)) || [];
|
|
160
|
-
message.
|
|
161
|
+
message.verifierActivities = object.verifier_activities?.map(e => verifier_activity_1.VerifierActivity.fromAmino(e)) || [];
|
|
161
162
|
message.verificationRecords = object.verification_records?.map(e => types_1.VerificationRecord.fromAmino(e)) || [];
|
|
162
163
|
if (object.next_content_id !== undefined && object.next_content_id !== null) {
|
|
163
164
|
message.nextContentId = BigInt(object.next_content_id);
|
|
@@ -213,11 +214,11 @@ exports.GenesisState = {
|
|
|
213
214
|
else {
|
|
214
215
|
obj.outbound_attestations = message.outboundAttestations;
|
|
215
216
|
}
|
|
216
|
-
if (message.
|
|
217
|
-
obj.
|
|
217
|
+
if (message.verifierActivities) {
|
|
218
|
+
obj.verifier_activities = message.verifierActivities.map(e => e ? verifier_activity_1.VerifierActivity.toAmino(e) : undefined);
|
|
218
219
|
}
|
|
219
220
|
else {
|
|
220
|
-
obj.
|
|
221
|
+
obj.verifier_activities = message.verifierActivities;
|
|
221
222
|
}
|
|
222
223
|
if (message.verificationRecords) {
|
|
223
224
|
obj.verification_records = message.verificationRecords.map(e => e ? types_1.VerificationRecord.toAmino(e) : undefined);
|