@sparkdreamnft/sparkdreamjs 0.0.8 → 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 +76 -76
- 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 +367 -327
- package/esm/sparkdream/client.js +4 -1
- 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/{forum → commons}/v1/category.js +7 -5
- package/esm/sparkdream/commons/v1/genesis.js +29 -1
- package/esm/sparkdream/commons/v1/query.js +292 -0
- package/esm/sparkdream/commons/v1/query.lcd.js +18 -0
- package/esm/sparkdream/commons/v1/query.rpc.Query.js +21 -1
- package/esm/sparkdream/commons/v1/tx.amino.js +6 -1
- package/esm/sparkdream/commons/v1/tx.js +193 -0
- package/esm/sparkdream/commons/v1/tx.registry.js +20 -2
- package/esm/sparkdream/commons/v1/tx.rpc.msg.js +8 -1
- package/esm/sparkdream/federation/module/v1/module.js +71 -0
- package/esm/sparkdream/federation/v1/genesis.js +245 -0
- package/esm/sparkdream/federation/v1/packet.js +810 -0
- package/esm/sparkdream/federation/v1/params.js +789 -0
- package/esm/sparkdream/federation/v1/query.js +2479 -0
- package/esm/sparkdream/federation/v1/query.lcd.js +142 -0
- package/esm/sparkdream/federation/v1/query.rpc.Query.js +181 -0
- package/esm/sparkdream/federation/v1/tx.amino.js +129 -0
- package/esm/sparkdream/federation/v1/tx.js +3929 -0
- package/esm/sparkdream/federation/v1/tx.registry.js +465 -0
- package/esm/sparkdream/federation/v1/tx.rpc.msg.js +163 -0
- package/esm/sparkdream/federation/v1/types.js +2266 -0
- package/esm/sparkdream/federation/v1/verifier_activity.js +194 -0
- package/esm/sparkdream/forum/v1/genesis.js +26 -250
- package/esm/sparkdream/forum/v1/params.js +146 -2
- package/esm/sparkdream/forum/v1/query.js +2084 -7387
- package/esm/sparkdream/forum/v1/query.lcd.js +0 -310
- package/esm/sparkdream/forum/v1/query.rpc.Query.js +1 -339
- package/esm/sparkdream/forum/v1/sentinel_activity.js +46 -139
- package/esm/sparkdream/forum/v1/tx.amino.js +1 -76
- package/esm/sparkdream/forum/v1/tx.js +333 -2628
- package/esm/sparkdream/forum/v1/tx.registry.js +2 -272
- package/esm/sparkdream/forum/v1/tx.rpc.msg.js +1 -91
- package/esm/sparkdream/forum/v1/types.js +0 -216
- package/esm/sparkdream/futarchy/v1/market.js +13 -1
- package/esm/sparkdream/lcd.js +5 -0
- package/esm/sparkdream/rep/v1/accountability.js +172 -0
- package/esm/sparkdream/rep/v1/bonded_role.js +446 -0
- package/esm/sparkdream/rep/v1/genesis.js +224 -1
- package/esm/sparkdream/{forum → rep}/v1/gov_action_appeal.js +4 -4
- package/esm/sparkdream/{forum → rep}/v1/jury_participation.js +4 -4
- package/esm/sparkdream/rep/v1/member.js +25 -1
- package/esm/sparkdream/{forum → rep}/v1/member_report.js +102 -5
- package/esm/sparkdream/{forum → rep}/v1/member_warning.js +4 -4
- package/esm/sparkdream/rep/v1/params.js +782 -254
- package/esm/sparkdream/rep/v1/project.js +13 -1
- package/esm/sparkdream/rep/v1/query.js +5251 -0
- package/esm/sparkdream/rep/v1/query.lcd.js +293 -0
- package/esm/sparkdream/rep/v1/query.rpc.Query.js +334 -1
- package/esm/sparkdream/{common → rep}/v1/reserved_tag.js +5 -5
- package/esm/sparkdream/{common → rep}/v1/tag.js +6 -6
- package/esm/sparkdream/{forum → rep}/v1/tag_budget.js +4 -4
- package/esm/sparkdream/{forum → rep}/v1/tag_budget_award.js +4 -4
- package/esm/sparkdream/{forum → rep}/v1/tag_report.js +4 -4
- package/esm/sparkdream/rep/v1/tx.amino.js +81 -1
- package/esm/sparkdream/rep/v1/tx.js +2467 -0
- package/esm/sparkdream/rep/v1/tx.registry.js +290 -2
- package/esm/sparkdream/rep/v1/tx.rpc.msg.js +104 -1
- package/esm/sparkdream/rpc.query.js +3 -0
- package/esm/sparkdream/rpc.tx.js +3 -0
- package/esm/sparkdream/season/v1/enums.js +10 -0
- package/esm/sparkdream/season/v1/params.js +94 -46
- package/esm/sparkdream/shield/v1/types.js +47 -5
- package/esm/tendermint/bundle.js +20 -20
- package/ibc/bundle.d.ts +90 -90
- package/ibc/bundle.js +76 -76
- 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 +14529 -12577
- package/sparkdream/bundle.js +367 -327
- package/sparkdream/client.d.ts +192 -67
- package/sparkdream/client.js +4 -1
- 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/{forum → commons}/v1/category.d.ts +17 -11
- package/sparkdream/{forum → commons}/v1/category.js +7 -5
- package/sparkdream/commons/v1/genesis.d.ts +17 -0
- package/sparkdream/commons/v1/genesis.js +29 -1
- package/sparkdream/commons/v1/query.d.ts +179 -0
- package/sparkdream/commons/v1/query.js +293 -1
- package/sparkdream/commons/v1/query.lcd.d.ts +3 -1
- package/sparkdream/commons/v1/query.lcd.js +18 -0
- package/sparkdream/commons/v1/query.rpc.Query.d.ts +9 -1
- package/sparkdream/commons/v1/query.rpc.Query.js +20 -0
- package/sparkdream/commons/v1/tx.amino.d.ts +6 -1
- package/sparkdream/commons/v1/tx.amino.js +5 -0
- package/sparkdream/commons/v1/tx.d.ts +98 -0
- package/sparkdream/commons/v1/tx.js +194 -1
- package/sparkdream/commons/v1/tx.registry.d.ts +13 -1
- package/sparkdream/commons/v1/tx.registry.js +19 -1
- package/sparkdream/commons/v1/tx.rpc.msg.d.ts +7 -1
- package/sparkdream/commons/v1/tx.rpc.msg.js +7 -0
- package/sparkdream/federation/module/v1/module.d.ts +54 -0
- package/sparkdream/federation/module/v1/module.js +74 -0
- package/sparkdream/federation/v1/genesis.d.ts +79 -0
- package/sparkdream/federation/v1/genesis.js +248 -0
- package/sparkdream/federation/v1/packet.d.ts +397 -0
- package/sparkdream/federation/v1/packet.js +813 -0
- package/sparkdream/federation/v1/params.d.ts +272 -0
- package/sparkdream/federation/v1/params.js +792 -0
- package/sparkdream/federation/v1/query.d.ts +1458 -0
- package/sparkdream/federation/v1/query.js +2482 -0
- package/sparkdream/federation/v1/query.lcd.d.ts +25 -0
- package/sparkdream/federation/v1/query.lcd.js +146 -0
- package/sparkdream/federation/v1/query.rpc.Query.d.ts +69 -0
- package/sparkdream/federation/v1/query.rpc.Query.js +186 -0
- package/sparkdream/federation/v1/tx.amino.d.ts +128 -0
- package/sparkdream/federation/v1/tx.amino.js +132 -0
- package/sparkdream/federation/v1/tx.d.ts +2147 -0
- package/sparkdream/federation/v1/tx.js +3932 -0
- package/sparkdream/federation/v1/tx.registry.d.ts +313 -0
- package/sparkdream/federation/v1/tx.registry.js +469 -0
- package/sparkdream/federation/v1/tx.rpc.msg.d.ts +65 -0
- package/sparkdream/federation/v1/tx.rpc.msg.js +168 -0
- package/sparkdream/federation/v1/types.d.ts +810 -0
- package/sparkdream/federation/v1/types.js +2281 -0
- package/sparkdream/federation/v1/verifier_activity.d.ts +113 -0
- package/sparkdream/federation/v1/verifier_activity.js +197 -0
- package/sparkdream/forum/v1/genesis.d.ts +0 -41
- package/sparkdream/forum/v1/genesis.js +26 -250
- package/sparkdream/forum/v1/params.d.ts +112 -0
- package/sparkdream/forum/v1/params.js +146 -2
- package/sparkdream/forum/v1/query.d.ts +65 -3164
- package/sparkdream/forum/v1/query.js +2086 -7391
- package/sparkdream/forum/v1/query.lcd.d.ts +1 -35
- package/sparkdream/forum/v1/query.lcd.js +0 -310
- package/sparkdream/forum/v1/query.rpc.Query.d.ts +1 -137
- package/sparkdream/forum/v1/query.rpc.Query.js +0 -338
- package/sparkdream/forum/v1/sentinel_activity.d.ts +9 -20
- package/sparkdream/forum/v1/sentinel_activity.js +46 -139
- package/sparkdream/forum/v1/tx.amino.d.ts +1 -76
- package/sparkdream/forum/v1/tx.amino.js +0 -75
- package/sparkdream/forum/v1/tx.d.ts +85 -1445
- package/sparkdream/forum/v1/tx.js +335 -2630
- package/sparkdream/forum/v1/tx.registry.d.ts +1 -181
- package/sparkdream/forum/v1/tx.registry.js +1 -271
- package/sparkdream/forum/v1/tx.rpc.msg.d.ts +1 -46
- package/sparkdream/forum/v1/tx.rpc.msg.js +0 -90
- package/sparkdream/forum/v1/types.d.ts +0 -50
- package/sparkdream/forum/v1/types.js +1 -225
- package/sparkdream/futarchy/v1/market.d.ts +14 -0
- package/sparkdream/futarchy/v1/market.js +13 -1
- package/sparkdream/lcd.d.ts +3 -0
- package/sparkdream/lcd.js +5 -0
- package/sparkdream/rep/v1/accountability.d.ts +39 -0
- package/sparkdream/rep/v1/accountability.js +181 -0
- package/sparkdream/rep/v1/bonded_role.d.ts +330 -0
- package/sparkdream/rep/v1/bonded_role.js +453 -0
- package/sparkdream/rep/v1/genesis.d.ts +70 -0
- package/sparkdream/rep/v1/genesis.js +224 -1
- package/sparkdream/{forum → rep}/v1/gov_action_appeal.d.ts +9 -9
- package/sparkdream/{forum → rep}/v1/gov_action_appeal.js +4 -4
- package/sparkdream/{forum → rep}/v1/jury_participation.d.ts +8 -8
- package/sparkdream/{forum → rep}/v1/jury_participation.js +4 -4
- package/sparkdream/rep/v1/member.d.ts +16 -0
- package/sparkdream/rep/v1/member.js +25 -1
- package/sparkdream/rep/v1/member_report.d.ts +128 -0
- package/sparkdream/{forum → rep}/v1/member_report.js +103 -6
- package/sparkdream/{forum → rep}/v1/member_warning.d.ts +8 -8
- package/sparkdream/{forum → rep}/v1/member_warning.js +4 -4
- package/sparkdream/rep/v1/params.d.ts +352 -8
- package/sparkdream/rep/v1/params.js +782 -254
- package/sparkdream/rep/v1/project.d.ts +10 -0
- package/sparkdream/rep/v1/project.js +13 -1
- package/sparkdream/rep/v1/query.d.ts +4222 -1156
- package/sparkdream/rep/v1/query.js +5254 -1
- package/sparkdream/rep/v1/query.lcd.d.ts +35 -1
- package/sparkdream/rep/v1/query.lcd.js +293 -0
- package/sparkdream/rep/v1/query.rpc.Query.d.ts +140 -1
- package/sparkdream/rep/v1/query.rpc.Query.js +333 -0
- package/sparkdream/{common → rep}/v1/reserved_tag.d.ts +11 -11
- package/sparkdream/{common → rep}/v1/reserved_tag.js +5 -5
- package/sparkdream/{common → rep}/v1/tag.d.ts +14 -14
- package/sparkdream/{common → rep}/v1/tag.js +6 -6
- package/sparkdream/{forum → rep}/v1/tag_budget.d.ts +8 -8
- package/sparkdream/{forum → rep}/v1/tag_budget.js +4 -4
- package/sparkdream/{forum → rep}/v1/tag_budget_award.d.ts +8 -8
- package/sparkdream/{forum → rep}/v1/tag_budget_award.js +4 -4
- package/sparkdream/{forum → rep}/v1/tag_report.d.ts +8 -8
- package/sparkdream/{forum → rep}/v1/tag_report.js +4 -4
- package/sparkdream/rep/v1/tx.amino.d.ts +81 -1
- package/sparkdream/rep/v1/tx.amino.js +80 -0
- package/sparkdream/rep/v1/tx.d.ts +1484 -0
- package/sparkdream/rep/v1/tx.js +2468 -1
- package/sparkdream/rep/v1/tx.registry.d.ts +193 -1
- package/sparkdream/rep/v1/tx.registry.js +289 -1
- package/sparkdream/rep/v1/tx.rpc.msg.d.ts +64 -1
- package/sparkdream/rep/v1/tx.rpc.msg.js +103 -0
- package/sparkdream/rpc.query.d.ts +60 -36
- package/sparkdream/rpc.query.js +3 -0
- package/sparkdream/rpc.tx.d.ts +3 -0
- package/sparkdream/rpc.tx.js +3 -0
- package/sparkdream/season/v1/enums.d.ts +5 -0
- package/sparkdream/season/v1/enums.js +10 -0
- package/sparkdream/season/v1/params.d.ts +36 -4
- package/sparkdream/season/v1/params.js +94 -46
- package/sparkdream/shield/v1/types.d.ts +28 -0
- package/sparkdream/shield/v1/types.js +47 -5
- package/tendermint/bundle.d.ts +844 -844
- package/tendermint/bundle.js +20 -20
- package/esm/sparkdream/forum/v1/member_salvation_status.js +0 -119
- package/sparkdream/forum/v1/member_report.d.ts +0 -67
- package/sparkdream/forum/v1/member_salvation_status.d.ts +0 -54
- package/sparkdream/forum/v1/member_salvation_status.js +0 -122
package/esm/sparkdream/client.js
CHANGED
|
@@ -5,6 +5,7 @@ import * as sparkdreamBlogV1TxRegistry from "./blog/v1/tx.registry";
|
|
|
5
5
|
import * as sparkdreamCollectV1TxRegistry from "./collect/v1/tx.registry";
|
|
6
6
|
import * as sparkdreamCommonsV1TxRegistry from "./commons/v1/tx.registry";
|
|
7
7
|
import * as sparkdreamEcosystemV1TxRegistry from "./ecosystem/v1/tx.registry";
|
|
8
|
+
import * as sparkdreamFederationV1TxRegistry from "./federation/v1/tx.registry";
|
|
8
9
|
import * as sparkdreamForumV1TxRegistry from "./forum/v1/tx.registry";
|
|
9
10
|
import * as sparkdreamFutarchyV1TxRegistry from "./futarchy/v1/tx.registry";
|
|
10
11
|
import * as sparkdreamNameV1TxRegistry from "./name/v1/tx.registry";
|
|
@@ -19,6 +20,7 @@ import * as sparkdreamBlogV1TxAmino from "./blog/v1/tx.amino";
|
|
|
19
20
|
import * as sparkdreamCollectV1TxAmino from "./collect/v1/tx.amino";
|
|
20
21
|
import * as sparkdreamCommonsV1TxAmino from "./commons/v1/tx.amino";
|
|
21
22
|
import * as sparkdreamEcosystemV1TxAmino from "./ecosystem/v1/tx.amino";
|
|
23
|
+
import * as sparkdreamFederationV1TxAmino from "./federation/v1/tx.amino";
|
|
22
24
|
import * as sparkdreamForumV1TxAmino from "./forum/v1/tx.amino";
|
|
23
25
|
import * as sparkdreamFutarchyV1TxAmino from "./futarchy/v1/tx.amino";
|
|
24
26
|
import * as sparkdreamNameV1TxAmino from "./name/v1/tx.amino";
|
|
@@ -34,6 +36,7 @@ export const sparkdreamAminoConverters = {
|
|
|
34
36
|
...sparkdreamCollectV1TxAmino.AminoConverter,
|
|
35
37
|
...sparkdreamCommonsV1TxAmino.AminoConverter,
|
|
36
38
|
...sparkdreamEcosystemV1TxAmino.AminoConverter,
|
|
39
|
+
...sparkdreamFederationV1TxAmino.AminoConverter,
|
|
37
40
|
...sparkdreamForumV1TxAmino.AminoConverter,
|
|
38
41
|
...sparkdreamFutarchyV1TxAmino.AminoConverter,
|
|
39
42
|
...sparkdreamNameV1TxAmino.AminoConverter,
|
|
@@ -45,7 +48,7 @@ export const sparkdreamAminoConverters = {
|
|
|
45
48
|
...sparkdreamSparkdreamV1TxAmino.AminoConverter,
|
|
46
49
|
...sparkdreamSplitV1TxAmino.AminoConverter
|
|
47
50
|
};
|
|
48
|
-
export const sparkdreamProtoRegistry = [...sparkdreamBlogV1TxRegistry.registry, ...sparkdreamCollectV1TxRegistry.registry, ...sparkdreamCommonsV1TxRegistry.registry, ...sparkdreamEcosystemV1TxRegistry.registry, ...sparkdreamForumV1TxRegistry.registry, ...sparkdreamFutarchyV1TxRegistry.registry, ...sparkdreamNameV1TxRegistry.registry, ...sparkdreamRepV1TxRegistry.registry, ...sparkdreamRevealV1TxRegistry.registry, ...sparkdreamSeasonV1TxRegistry.registry, ...sparkdreamSessionV1TxRegistry.registry, ...sparkdreamShieldV1TxRegistry.registry, ...sparkdreamSparkdreamV1TxRegistry.registry, ...sparkdreamSplitV1TxRegistry.registry];
|
|
51
|
+
export const sparkdreamProtoRegistry = [...sparkdreamBlogV1TxRegistry.registry, ...sparkdreamCollectV1TxRegistry.registry, ...sparkdreamCommonsV1TxRegistry.registry, ...sparkdreamEcosystemV1TxRegistry.registry, ...sparkdreamFederationV1TxRegistry.registry, ...sparkdreamForumV1TxRegistry.registry, ...sparkdreamFutarchyV1TxRegistry.registry, ...sparkdreamNameV1TxRegistry.registry, ...sparkdreamRepV1TxRegistry.registry, ...sparkdreamRevealV1TxRegistry.registry, ...sparkdreamSeasonV1TxRegistry.registry, ...sparkdreamSessionV1TxRegistry.registry, ...sparkdreamShieldV1TxRegistry.registry, ...sparkdreamSparkdreamV1TxRegistry.registry, ...sparkdreamSplitV1TxRegistry.registry];
|
|
49
52
|
export const getSigningSparkdreamClientOptions = ({ defaultTypes = defaultRegistryTypes } = {}) => {
|
|
50
53
|
const registry = new Registry([...defaultTypes, ...sparkdreamProtoRegistry]);
|
|
51
54
|
const aminoTypes = new AminoTypes({
|
|
@@ -0,0 +1,158 @@
|
|
|
1
|
+
//@ts-nocheck
|
|
2
|
+
import { BinaryReader, BinaryWriter } from "../../../binary";
|
|
3
|
+
function createBaseCuratorActivity() {
|
|
4
|
+
return {
|
|
5
|
+
address: "",
|
|
6
|
+
totalReviews: BigInt(0),
|
|
7
|
+
challengedReviews: BigInt(0),
|
|
8
|
+
upheldReviews: BigInt(0),
|
|
9
|
+
overturnedReviews: BigInt(0),
|
|
10
|
+
consecutiveOverturns: BigInt(0),
|
|
11
|
+
consecutiveUpheld: BigInt(0),
|
|
12
|
+
epochReviews: BigInt(0)
|
|
13
|
+
};
|
|
14
|
+
}
|
|
15
|
+
/**
|
|
16
|
+
* CuratorActivity holds collect-specific per-curator counters. The generic
|
|
17
|
+
* bond/status/activity record lives in x/rep as BondedRole
|
|
18
|
+
* (ROLE_TYPE_COLLECT_CURATOR) — this proto only tracks what's collect-specific:
|
|
19
|
+
* review counts and dispute outcomes.
|
|
20
|
+
* @name CuratorActivity
|
|
21
|
+
* @package sparkdream.collect.v1
|
|
22
|
+
* @see proto type: sparkdream.collect.v1.CuratorActivity
|
|
23
|
+
*/
|
|
24
|
+
export const CuratorActivity = {
|
|
25
|
+
typeUrl: "/sparkdream.collect.v1.CuratorActivity",
|
|
26
|
+
encode(message, writer = BinaryWriter.create()) {
|
|
27
|
+
if (message.address !== "") {
|
|
28
|
+
writer.uint32(10).string(message.address);
|
|
29
|
+
}
|
|
30
|
+
if (message.totalReviews !== BigInt(0)) {
|
|
31
|
+
writer.uint32(16).uint64(message.totalReviews);
|
|
32
|
+
}
|
|
33
|
+
if (message.challengedReviews !== BigInt(0)) {
|
|
34
|
+
writer.uint32(24).uint64(message.challengedReviews);
|
|
35
|
+
}
|
|
36
|
+
if (message.upheldReviews !== BigInt(0)) {
|
|
37
|
+
writer.uint32(32).uint64(message.upheldReviews);
|
|
38
|
+
}
|
|
39
|
+
if (message.overturnedReviews !== BigInt(0)) {
|
|
40
|
+
writer.uint32(40).uint64(message.overturnedReviews);
|
|
41
|
+
}
|
|
42
|
+
if (message.consecutiveOverturns !== BigInt(0)) {
|
|
43
|
+
writer.uint32(48).uint64(message.consecutiveOverturns);
|
|
44
|
+
}
|
|
45
|
+
if (message.consecutiveUpheld !== BigInt(0)) {
|
|
46
|
+
writer.uint32(56).uint64(message.consecutiveUpheld);
|
|
47
|
+
}
|
|
48
|
+
if (message.epochReviews !== BigInt(0)) {
|
|
49
|
+
writer.uint32(64).uint64(message.epochReviews);
|
|
50
|
+
}
|
|
51
|
+
return writer;
|
|
52
|
+
},
|
|
53
|
+
decode(input, length) {
|
|
54
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
55
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
56
|
+
const message = createBaseCuratorActivity();
|
|
57
|
+
while (reader.pos < end) {
|
|
58
|
+
const tag = reader.uint32();
|
|
59
|
+
switch (tag >>> 3) {
|
|
60
|
+
case 1:
|
|
61
|
+
message.address = reader.string();
|
|
62
|
+
break;
|
|
63
|
+
case 2:
|
|
64
|
+
message.totalReviews = reader.uint64();
|
|
65
|
+
break;
|
|
66
|
+
case 3:
|
|
67
|
+
message.challengedReviews = reader.uint64();
|
|
68
|
+
break;
|
|
69
|
+
case 4:
|
|
70
|
+
message.upheldReviews = reader.uint64();
|
|
71
|
+
break;
|
|
72
|
+
case 5:
|
|
73
|
+
message.overturnedReviews = reader.uint64();
|
|
74
|
+
break;
|
|
75
|
+
case 6:
|
|
76
|
+
message.consecutiveOverturns = reader.uint64();
|
|
77
|
+
break;
|
|
78
|
+
case 7:
|
|
79
|
+
message.consecutiveUpheld = reader.uint64();
|
|
80
|
+
break;
|
|
81
|
+
case 8:
|
|
82
|
+
message.epochReviews = reader.uint64();
|
|
83
|
+
break;
|
|
84
|
+
default:
|
|
85
|
+
reader.skipType(tag & 7);
|
|
86
|
+
break;
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
return message;
|
|
90
|
+
},
|
|
91
|
+
fromPartial(object) {
|
|
92
|
+
const message = createBaseCuratorActivity();
|
|
93
|
+
message.address = object.address ?? "";
|
|
94
|
+
message.totalReviews = object.totalReviews !== undefined && object.totalReviews !== null ? BigInt(object.totalReviews.toString()) : BigInt(0);
|
|
95
|
+
message.challengedReviews = object.challengedReviews !== undefined && object.challengedReviews !== null ? BigInt(object.challengedReviews.toString()) : BigInt(0);
|
|
96
|
+
message.upheldReviews = object.upheldReviews !== undefined && object.upheldReviews !== null ? BigInt(object.upheldReviews.toString()) : BigInt(0);
|
|
97
|
+
message.overturnedReviews = object.overturnedReviews !== undefined && object.overturnedReviews !== null ? BigInt(object.overturnedReviews.toString()) : BigInt(0);
|
|
98
|
+
message.consecutiveOverturns = object.consecutiveOverturns !== undefined && object.consecutiveOverturns !== null ? BigInt(object.consecutiveOverturns.toString()) : BigInt(0);
|
|
99
|
+
message.consecutiveUpheld = object.consecutiveUpheld !== undefined && object.consecutiveUpheld !== null ? BigInt(object.consecutiveUpheld.toString()) : BigInt(0);
|
|
100
|
+
message.epochReviews = object.epochReviews !== undefined && object.epochReviews !== null ? BigInt(object.epochReviews.toString()) : BigInt(0);
|
|
101
|
+
return message;
|
|
102
|
+
},
|
|
103
|
+
fromAmino(object) {
|
|
104
|
+
const message = createBaseCuratorActivity();
|
|
105
|
+
if (object.address !== undefined && object.address !== null) {
|
|
106
|
+
message.address = object.address;
|
|
107
|
+
}
|
|
108
|
+
if (object.total_reviews !== undefined && object.total_reviews !== null) {
|
|
109
|
+
message.totalReviews = BigInt(object.total_reviews);
|
|
110
|
+
}
|
|
111
|
+
if (object.challenged_reviews !== undefined && object.challenged_reviews !== null) {
|
|
112
|
+
message.challengedReviews = BigInt(object.challenged_reviews);
|
|
113
|
+
}
|
|
114
|
+
if (object.upheld_reviews !== undefined && object.upheld_reviews !== null) {
|
|
115
|
+
message.upheldReviews = BigInt(object.upheld_reviews);
|
|
116
|
+
}
|
|
117
|
+
if (object.overturned_reviews !== undefined && object.overturned_reviews !== null) {
|
|
118
|
+
message.overturnedReviews = BigInt(object.overturned_reviews);
|
|
119
|
+
}
|
|
120
|
+
if (object.consecutive_overturns !== undefined && object.consecutive_overturns !== null) {
|
|
121
|
+
message.consecutiveOverturns = BigInt(object.consecutive_overturns);
|
|
122
|
+
}
|
|
123
|
+
if (object.consecutive_upheld !== undefined && object.consecutive_upheld !== null) {
|
|
124
|
+
message.consecutiveUpheld = BigInt(object.consecutive_upheld);
|
|
125
|
+
}
|
|
126
|
+
if (object.epoch_reviews !== undefined && object.epoch_reviews !== null) {
|
|
127
|
+
message.epochReviews = BigInt(object.epoch_reviews);
|
|
128
|
+
}
|
|
129
|
+
return message;
|
|
130
|
+
},
|
|
131
|
+
toAmino(message) {
|
|
132
|
+
const obj = {};
|
|
133
|
+
obj.address = message.address === "" ? undefined : message.address;
|
|
134
|
+
obj.total_reviews = message.totalReviews !== BigInt(0) ? message.totalReviews?.toString() : undefined;
|
|
135
|
+
obj.challenged_reviews = message.challengedReviews !== BigInt(0) ? message.challengedReviews?.toString() : undefined;
|
|
136
|
+
obj.upheld_reviews = message.upheldReviews !== BigInt(0) ? message.upheldReviews?.toString() : undefined;
|
|
137
|
+
obj.overturned_reviews = message.overturnedReviews !== BigInt(0) ? message.overturnedReviews?.toString() : undefined;
|
|
138
|
+
obj.consecutive_overturns = message.consecutiveOverturns !== BigInt(0) ? message.consecutiveOverturns?.toString() : undefined;
|
|
139
|
+
obj.consecutive_upheld = message.consecutiveUpheld !== BigInt(0) ? message.consecutiveUpheld?.toString() : undefined;
|
|
140
|
+
obj.epoch_reviews = message.epochReviews !== BigInt(0) ? message.epochReviews?.toString() : undefined;
|
|
141
|
+
return obj;
|
|
142
|
+
},
|
|
143
|
+
fromAminoMsg(object) {
|
|
144
|
+
return CuratorActivity.fromAmino(object.value);
|
|
145
|
+
},
|
|
146
|
+
fromProtoMsg(message) {
|
|
147
|
+
return CuratorActivity.decode(message.value);
|
|
148
|
+
},
|
|
149
|
+
toProto(message) {
|
|
150
|
+
return CuratorActivity.encode(message).finish();
|
|
151
|
+
},
|
|
152
|
+
toProtoMsg(message) {
|
|
153
|
+
return {
|
|
154
|
+
typeUrl: "/sparkdream.collect.v1.CuratorActivity",
|
|
155
|
+
value: CuratorActivity.encode(message).finish()
|
|
156
|
+
};
|
|
157
|
+
}
|
|
158
|
+
};
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
//@ts-nocheck
|
|
2
2
|
import { Params } from "./params";
|
|
3
|
-
import { Collection, Item, Collaborator,
|
|
3
|
+
import { Collection, Item, Collaborator, CurationReview, CurationSummary, SponsorshipRequest, CollectionFlag, HideRecord, Endorsement } from "./types";
|
|
4
|
+
import { CuratorActivity } from "./curator_activity";
|
|
4
5
|
import { BinaryReader, BinaryWriter } from "../../../binary";
|
|
5
6
|
function createBaseGenesisState() {
|
|
6
7
|
return {
|
|
@@ -10,7 +11,7 @@ function createBaseGenesisState() {
|
|
|
10
11
|
items: [],
|
|
11
12
|
itemCount: BigInt(0),
|
|
12
13
|
collaborators: [],
|
|
13
|
-
|
|
14
|
+
curatorActivities: [],
|
|
14
15
|
curationReviews: [],
|
|
15
16
|
curationReviewCount: BigInt(0),
|
|
16
17
|
curationSummaries: [],
|
|
@@ -48,8 +49,8 @@ export const GenesisState = {
|
|
|
48
49
|
for (const v of message.collaborators) {
|
|
49
50
|
Collaborator.encode(v, writer.uint32(50).fork()).ldelim();
|
|
50
51
|
}
|
|
51
|
-
for (const v of message.
|
|
52
|
-
|
|
52
|
+
for (const v of message.curatorActivities) {
|
|
53
|
+
CuratorActivity.encode(v, writer.uint32(130).fork()).ldelim();
|
|
53
54
|
}
|
|
54
55
|
for (const v of message.curationReviews) {
|
|
55
56
|
CurationReview.encode(v, writer.uint32(66).fork()).ldelim();
|
|
@@ -102,8 +103,8 @@ export const GenesisState = {
|
|
|
102
103
|
case 6:
|
|
103
104
|
message.collaborators.push(Collaborator.decode(reader, reader.uint32()));
|
|
104
105
|
break;
|
|
105
|
-
case
|
|
106
|
-
message.
|
|
106
|
+
case 16:
|
|
107
|
+
message.curatorActivities.push(CuratorActivity.decode(reader, reader.uint32()));
|
|
107
108
|
break;
|
|
108
109
|
case 8:
|
|
109
110
|
message.curationReviews.push(CurationReview.decode(reader, reader.uint32()));
|
|
@@ -144,7 +145,7 @@ export const GenesisState = {
|
|
|
144
145
|
message.items = object.items?.map(e => Item.fromPartial(e)) || [];
|
|
145
146
|
message.itemCount = object.itemCount !== undefined && object.itemCount !== null ? BigInt(object.itemCount.toString()) : BigInt(0);
|
|
146
147
|
message.collaborators = object.collaborators?.map(e => Collaborator.fromPartial(e)) || [];
|
|
147
|
-
message.
|
|
148
|
+
message.curatorActivities = object.curatorActivities?.map(e => CuratorActivity.fromPartial(e)) || [];
|
|
148
149
|
message.curationReviews = object.curationReviews?.map(e => CurationReview.fromPartial(e)) || [];
|
|
149
150
|
message.curationReviewCount = object.curationReviewCount !== undefined && object.curationReviewCount !== null ? BigInt(object.curationReviewCount.toString()) : BigInt(0);
|
|
150
151
|
message.curationSummaries = object.curationSummaries?.map(e => CurationSummary.fromPartial(e)) || [];
|
|
@@ -169,7 +170,7 @@ export const GenesisState = {
|
|
|
169
170
|
message.itemCount = BigInt(object.item_count);
|
|
170
171
|
}
|
|
171
172
|
message.collaborators = object.collaborators?.map(e => Collaborator.fromAmino(e)) || [];
|
|
172
|
-
message.
|
|
173
|
+
message.curatorActivities = object.curator_activities?.map(e => CuratorActivity.fromAmino(e)) || [];
|
|
173
174
|
message.curationReviews = object.curation_reviews?.map(e => CurationReview.fromAmino(e)) || [];
|
|
174
175
|
if (object.curation_review_count !== undefined && object.curation_review_count !== null) {
|
|
175
176
|
message.curationReviewCount = BigInt(object.curation_review_count);
|
|
@@ -207,11 +208,11 @@ export const GenesisState = {
|
|
|
207
208
|
else {
|
|
208
209
|
obj.collaborators = message.collaborators;
|
|
209
210
|
}
|
|
210
|
-
if (message.
|
|
211
|
-
obj.
|
|
211
|
+
if (message.curatorActivities) {
|
|
212
|
+
obj.curator_activities = message.curatorActivities.map(e => e ? CuratorActivity.toAmino(e) : undefined);
|
|
212
213
|
}
|
|
213
214
|
else {
|
|
214
|
-
obj.
|
|
215
|
+
obj.curator_activities = message.curatorActivities;
|
|
215
216
|
}
|
|
216
217
|
if (message.curationReviews) {
|
|
217
218
|
obj.curation_reviews = message.curationReviews.map(e => e ? CurationReview.toAmino(e) : undefined);
|
|
@@ -60,7 +60,10 @@ function createBaseParams() {
|
|
|
60
60
|
convictionRenewalThreshold: "",
|
|
61
61
|
convictionRenewalPeriod: BigInt(0),
|
|
62
62
|
pinMinTrustLevel: 0,
|
|
63
|
-
maxPinsPerDay: 0
|
|
63
|
+
maxPinsPerDay: 0,
|
|
64
|
+
curatorDemotionCooldown: BigInt(0),
|
|
65
|
+
curatorDemotionThreshold: "",
|
|
66
|
+
curatorOverturnDemotionStreak: BigInt(0)
|
|
64
67
|
};
|
|
65
68
|
}
|
|
66
69
|
/**
|
|
@@ -247,6 +250,15 @@ export const Params = {
|
|
|
247
250
|
if (message.maxPinsPerDay !== 0) {
|
|
248
251
|
writer.uint32(496).uint32(message.maxPinsPerDay);
|
|
249
252
|
}
|
|
253
|
+
if (message.curatorDemotionCooldown !== BigInt(0)) {
|
|
254
|
+
writer.uint32(504).int64(message.curatorDemotionCooldown);
|
|
255
|
+
}
|
|
256
|
+
if (message.curatorDemotionThreshold !== "") {
|
|
257
|
+
writer.uint32(514).string(message.curatorDemotionThreshold);
|
|
258
|
+
}
|
|
259
|
+
if (message.curatorOverturnDemotionStreak !== BigInt(0)) {
|
|
260
|
+
writer.uint32(520).uint64(message.curatorOverturnDemotionStreak);
|
|
261
|
+
}
|
|
250
262
|
return writer;
|
|
251
263
|
},
|
|
252
264
|
decode(input, length) {
|
|
@@ -430,6 +442,15 @@ export const Params = {
|
|
|
430
442
|
case 62:
|
|
431
443
|
message.maxPinsPerDay = reader.uint32();
|
|
432
444
|
break;
|
|
445
|
+
case 63:
|
|
446
|
+
message.curatorDemotionCooldown = reader.int64();
|
|
447
|
+
break;
|
|
448
|
+
case 64:
|
|
449
|
+
message.curatorDemotionThreshold = reader.string();
|
|
450
|
+
break;
|
|
451
|
+
case 65:
|
|
452
|
+
message.curatorOverturnDemotionStreak = reader.uint64();
|
|
453
|
+
break;
|
|
433
454
|
default:
|
|
434
455
|
reader.skipType(tag & 7);
|
|
435
456
|
break;
|
|
@@ -497,6 +518,9 @@ export const Params = {
|
|
|
497
518
|
message.convictionRenewalPeriod = object.convictionRenewalPeriod !== undefined && object.convictionRenewalPeriod !== null ? BigInt(object.convictionRenewalPeriod.toString()) : BigInt(0);
|
|
498
519
|
message.pinMinTrustLevel = object.pinMinTrustLevel ?? 0;
|
|
499
520
|
message.maxPinsPerDay = object.maxPinsPerDay ?? 0;
|
|
521
|
+
message.curatorDemotionCooldown = object.curatorDemotionCooldown !== undefined && object.curatorDemotionCooldown !== null ? BigInt(object.curatorDemotionCooldown.toString()) : BigInt(0);
|
|
522
|
+
message.curatorDemotionThreshold = object.curatorDemotionThreshold ?? "";
|
|
523
|
+
message.curatorOverturnDemotionStreak = object.curatorOverturnDemotionStreak !== undefined && object.curatorOverturnDemotionStreak !== null ? BigInt(object.curatorOverturnDemotionStreak.toString()) : BigInt(0);
|
|
500
524
|
return message;
|
|
501
525
|
},
|
|
502
526
|
fromAmino(object) {
|
|
@@ -675,6 +699,15 @@ export const Params = {
|
|
|
675
699
|
if (object.max_pins_per_day !== undefined && object.max_pins_per_day !== null) {
|
|
676
700
|
message.maxPinsPerDay = object.max_pins_per_day;
|
|
677
701
|
}
|
|
702
|
+
if (object.curator_demotion_cooldown !== undefined && object.curator_demotion_cooldown !== null) {
|
|
703
|
+
message.curatorDemotionCooldown = BigInt(object.curator_demotion_cooldown);
|
|
704
|
+
}
|
|
705
|
+
if (object.curator_demotion_threshold !== undefined && object.curator_demotion_threshold !== null) {
|
|
706
|
+
message.curatorDemotionThreshold = object.curator_demotion_threshold;
|
|
707
|
+
}
|
|
708
|
+
if (object.curator_overturn_demotion_streak !== undefined && object.curator_overturn_demotion_streak !== null) {
|
|
709
|
+
message.curatorOverturnDemotionStreak = BigInt(object.curator_overturn_demotion_streak);
|
|
710
|
+
}
|
|
678
711
|
return message;
|
|
679
712
|
},
|
|
680
713
|
toAmino(message) {
|
|
@@ -737,6 +770,9 @@ export const Params = {
|
|
|
737
770
|
obj.conviction_renewal_period = message.convictionRenewalPeriod !== BigInt(0) ? message.convictionRenewalPeriod?.toString() : undefined;
|
|
738
771
|
obj.pin_min_trust_level = message.pinMinTrustLevel === 0 ? undefined : message.pinMinTrustLevel;
|
|
739
772
|
obj.max_pins_per_day = message.maxPinsPerDay === 0 ? undefined : message.maxPinsPerDay;
|
|
773
|
+
obj.curator_demotion_cooldown = message.curatorDemotionCooldown !== BigInt(0) ? message.curatorDemotionCooldown?.toString() : undefined;
|
|
774
|
+
obj.curator_demotion_threshold = message.curatorDemotionThreshold === "" ? undefined : message.curatorDemotionThreshold;
|
|
775
|
+
obj.curator_overturn_demotion_streak = message.curatorOverturnDemotionStreak !== BigInt(0) ? message.curatorOverturnDemotionStreak?.toString() : undefined;
|
|
740
776
|
return obj;
|
|
741
777
|
},
|
|
742
778
|
fromAminoMsg(object) {
|