@sparkdreamnft/sparkdreamjs 0.0.48 → 0.0.50
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/akash/bundle.d.ts +134 -134
- package/akash/bundle.js +150 -150
- package/amino-schema.d.ts +94 -0
- package/amino-schema.js +1 -1
- package/cosmos/bundle.d.ts +160 -160
- package/cosmos/bundle.js +182 -182
- package/esm/akash/bundle.js +150 -150
- package/esm/amino-schema.js +1 -1
- package/esm/cosmos/bundle.js +182 -182
- package/esm/ibc/bundle.js +116 -116
- package/esm/sparkdream/artifact/v1/types.js +25 -1
- package/esm/sparkdream/blog/v1/genesis.js +97 -1
- package/esm/sparkdream/bundle.js +447 -439
- package/esm/sparkdream/collect/v1/genesis.js +308 -3
- package/esm/sparkdream/collect/v1/tx.js +170 -0
- package/esm/sparkdream/collect/v1/tx.registry.js +20 -2
- package/esm/sparkdream/collect/v1/tx.rpc.msg.js +10 -1
- package/esm/sparkdream/collect/v1/types.js +51 -3
- package/esm/sparkdream/commons/v1/genesis.js +756 -27
- package/esm/sparkdream/commons/v1/group.js +130 -2
- package/esm/sparkdream/commons/v1/poll.js +281 -0
- package/esm/sparkdream/commons/v1/poll_vote.js +107 -0
- package/esm/sparkdream/commons/v1/query.js +759 -0
- package/esm/sparkdream/commons/v1/query.lcd.js +46 -0
- package/esm/sparkdream/commons/v1/query.rpc.Query.js +49 -1
- package/esm/sparkdream/commons/v1/tx.js +730 -4
- package/esm/sparkdream/commons/v1/tx.registry.js +74 -2
- package/esm/sparkdream/commons/v1/tx.rpc.msg.js +25 -1
- package/esm/sparkdream/commons/v1/voter_tree.js +208 -0
- package/esm/sparkdream/federation/v1/genesis.js +212 -2
- package/esm/sparkdream/federation/v1/tx.js +365 -0
- package/esm/sparkdream/federation/v1/tx.registry.js +38 -2
- package/esm/sparkdream/federation/v1/tx.rpc.msg.js +14 -1
- package/esm/sparkdream/federation/v1/types.js +194 -2
- package/esm/sparkdream/forum/v1/archive_metadata.js +13 -1
- package/esm/sparkdream/forum/v1/genesis.js +428 -1
- package/esm/sparkdream/forum/v1/params.js +182 -254
- package/esm/sparkdream/forum/v1/query.js +112 -7
- package/esm/sparkdream/forum/v1/user_reaction_limit.js +62 -1
- package/esm/sparkdream/futarchy/v1/market.js +37 -1
- package/esm/sparkdream/futarchy/v1/tx.js +13 -1
- package/esm/sparkdream/name/v1/dispute.js +13 -1
- package/esm/sparkdream/rep/v1/genesis.js +272 -2
- package/esm/sparkdream/rep/v1/initiative_review.js +13 -1
- package/esm/sparkdream/rep/v1/invitation.js +25 -1
- package/esm/sparkdream/rep/v1/member_report.js +335 -1
- package/esm/sparkdream/rep/v1/migration.js +27 -2
- package/esm/sparkdream/rep/v1/params.js +13 -1
- package/esm/sparkdream/rep/v1/stake.js +10 -0
- package/esm/sparkdream/rep/v1/tx.js +372 -14
- package/esm/sparkdream/rep/v1/tx.registry.js +38 -2
- package/esm/sparkdream/rep/v1/tx.rpc.msg.js +16 -2
- package/esm/sparkdream/reveal/v1/types.js +9 -21
- package/esm/sparkdream/season/v1/display_name_moderation.js +40 -1
- package/esm/sparkdream/season/v1/epoch_xp_tracker.js +13 -1
- package/esm/sparkdream/season/v1/genesis.js +125 -1
- package/esm/sparkdream/season/v1/guild_invite.js +13 -1
- package/esm/sparkdream/season/v1/guild_membership.js +13 -1
- package/esm/sparkdream/season/v1/member_profile.js +13 -1
- package/esm/sparkdream/season/v1/member_quest_progress.js +13 -1
- package/esm/sparkdream/season/v1/member_season_snapshot.js +16 -1
- package/esm/sparkdream/season/v1/nomination.js +37 -1
- package/esm/sparkdream/season/v1/query.js +26 -35
- package/esm/sparkdream/season/v1/query.lcd.js +1 -1
- package/esm/sparkdream/season/v1/quest.js +13 -1
- package/esm/sparkdream/season/v1/season.js +13 -1
- package/esm/sparkdream/season/v1/season_stats_counters.js +121 -0
- package/esm/sparkdream/season/v1/season_title_eligibility.js +4 -1
- package/esm/sparkdream/service/v1/genesis.js +126 -1
- package/esm/sparkdream/service/v1/refile_cooldown.js +20 -7
- package/esm/sparkdream/session/v1/genesis.js +303 -1
- package/esm/sparkdream/session/v1/params.js +24 -0
- package/esm/sparkdream/shield/v1/genesis.js +56 -2
- package/esm/sparkdream/shield/v1/params.js +13 -1
- package/esm/sparkdream/shield/v1/types.js +202 -1
- package/esm/sparkdream/vault/v1/genesis.js +25 -1
- package/esm/sparkdream/vault/v1/query.js +15 -2
- package/esm/sparkdream/vault/v1/query.lcd.js +3 -0
- package/esm/sparkdream/vault/v1/tx.js +301 -0
- package/esm/sparkdream/vault/v1/tx.registry.js +38 -2
- package/esm/sparkdream/vault/v1/tx.rpc.msg.js +13 -1
- package/esm/sparkdream/vault/v1/vault_signer.js +15 -2
- package/esm/tendermint/bundle.js +20 -20
- package/ibc/bundle.d.ts +99 -99
- package/ibc/bundle.js +116 -116
- package/package.json +1 -1
- package/sparkdream/artifact/v1/types.d.ts +14 -0
- package/sparkdream/artifact/v1/types.js +25 -1
- package/sparkdream/blog/v1/genesis.d.ts +60 -0
- package/sparkdream/blog/v1/genesis.js +98 -2
- package/sparkdream/bundle.d.ts +17133 -16171
- package/sparkdream/bundle.js +447 -439
- package/sparkdream/collect/v1/genesis.d.ts +186 -0
- package/sparkdream/collect/v1/genesis.js +309 -4
- package/sparkdream/collect/v1/tx.d.ts +100 -0
- package/sparkdream/collect/v1/tx.js +171 -1
- package/sparkdream/collect/v1/tx.registry.d.ts +13 -1
- package/sparkdream/collect/v1/tx.registry.js +19 -1
- package/sparkdream/collect/v1/tx.rpc.msg.d.ts +9 -1
- package/sparkdream/collect/v1/tx.rpc.msg.js +9 -0
- package/sparkdream/collect/v1/types.d.ts +52 -0
- package/sparkdream/collect/v1/types.js +51 -3
- package/sparkdream/commons/v1/genesis.d.ts +443 -22
- package/sparkdream/commons/v1/genesis.js +756 -27
- package/sparkdream/commons/v1/group.d.ts +75 -0
- package/sparkdream/commons/v1/group.js +133 -3
- package/sparkdream/commons/v1/poll.d.ts +135 -0
- package/sparkdream/commons/v1/poll.js +286 -0
- package/sparkdream/commons/v1/poll_vote.d.ts +58 -0
- package/sparkdream/commons/v1/poll_vote.js +110 -0
- package/sparkdream/commons/v1/query.d.ts +465 -0
- package/sparkdream/commons/v1/query.js +760 -1
- package/sparkdream/commons/v1/query.lcd.d.ts +6 -1
- package/sparkdream/commons/v1/query.lcd.js +46 -0
- package/sparkdream/commons/v1/query.rpc.Query.d.ts +30 -1
- package/sparkdream/commons/v1/query.rpc.Query.js +48 -0
- package/sparkdream/commons/v1/tx.d.ts +475 -1
- package/sparkdream/commons/v1/tx.js +731 -4
- package/sparkdream/commons/v1/tx.registry.d.ts +49 -1
- package/sparkdream/commons/v1/tx.registry.js +73 -1
- package/sparkdream/commons/v1/tx.rpc.msg.d.ts +13 -1
- package/sparkdream/commons/v1/tx.rpc.msg.js +24 -0
- package/sparkdream/commons/v1/voter_tree.d.ts +132 -0
- package/sparkdream/commons/v1/voter_tree.js +211 -0
- package/sparkdream/federation/v1/genesis.d.ts +136 -1
- package/sparkdream/federation/v1/genesis.js +212 -2
- package/sparkdream/federation/v1/tx.d.ts +235 -0
- package/sparkdream/federation/v1/tx.js +367 -1
- package/sparkdream/federation/v1/tx.registry.d.ts +25 -1
- package/sparkdream/federation/v1/tx.registry.js +37 -1
- package/sparkdream/federation/v1/tx.rpc.msg.d.ts +9 -1
- package/sparkdream/federation/v1/tx.rpc.msg.js +13 -0
- package/sparkdream/federation/v1/types.d.ts +166 -0
- package/sparkdream/federation/v1/types.js +197 -3
- package/sparkdream/forum/v1/archive_metadata.d.ts +12 -0
- package/sparkdream/forum/v1/archive_metadata.js +13 -1
- package/sparkdream/forum/v1/genesis.d.ts +256 -0
- package/sparkdream/forum/v1/genesis.js +429 -2
- package/sparkdream/forum/v1/params.d.ts +0 -30
- package/sparkdream/forum/v1/params.js +182 -254
- package/sparkdream/forum/v1/query.d.ts +70 -0
- package/sparkdream/forum/v1/query.js +112 -7
- package/sparkdream/forum/v1/user_reaction_limit.d.ts +25 -0
- package/sparkdream/forum/v1/user_reaction_limit.js +65 -2
- package/sparkdream/futarchy/v1/market.d.ts +32 -0
- package/sparkdream/futarchy/v1/market.js +37 -1
- package/sparkdream/futarchy/v1/tx.d.ts +10 -0
- package/sparkdream/futarchy/v1/tx.js +13 -1
- package/sparkdream/name/v1/dispute.d.ts +14 -0
- package/sparkdream/name/v1/dispute.js +13 -1
- package/sparkdream/rep/v1/genesis.d.ts +151 -1
- package/sparkdream/rep/v1/genesis.js +272 -2
- package/sparkdream/rep/v1/initiative_review.d.ts +14 -0
- package/sparkdream/rep/v1/initiative_review.js +13 -1
- package/sparkdream/rep/v1/invitation.d.ts +32 -0
- package/sparkdream/rep/v1/invitation.js +25 -1
- package/sparkdream/rep/v1/member_report.d.ts +215 -0
- package/sparkdream/rep/v1/member_report.js +336 -2
- package/sparkdream/rep/v1/migration.d.ts +34 -1
- package/sparkdream/rep/v1/migration.js +27 -2
- package/sparkdream/rep/v1/params.d.ts +18 -0
- package/sparkdream/rep/v1/params.js +13 -1
- package/sparkdream/rep/v1/stake.d.ts +5 -0
- package/sparkdream/rep/v1/stake.js +10 -0
- package/sparkdream/rep/v1/tx.d.ts +340 -39
- package/sparkdream/rep/v1/tx.js +375 -17
- package/sparkdream/rep/v1/tx.registry.d.ts +25 -1
- package/sparkdream/rep/v1/tx.registry.js +37 -1
- package/sparkdream/rep/v1/tx.rpc.msg.d.ts +12 -2
- package/sparkdream/rep/v1/tx.rpc.msg.js +15 -1
- package/sparkdream/reveal/v1/types.d.ts +0 -8
- package/sparkdream/reveal/v1/types.js +9 -21
- package/sparkdream/rpc.query.d.ts +5 -0
- package/sparkdream/season/v1/display_name_moderation.d.ts +28 -0
- package/sparkdream/season/v1/display_name_moderation.js +40 -1
- package/sparkdream/season/v1/epoch_xp_tracker.d.ts +10 -0
- package/sparkdream/season/v1/epoch_xp_tracker.js +13 -1
- package/sparkdream/season/v1/genesis.d.ts +75 -0
- package/sparkdream/season/v1/genesis.js +126 -2
- package/sparkdream/season/v1/guild_invite.d.ts +10 -0
- package/sparkdream/season/v1/guild_invite.js +13 -1
- package/sparkdream/season/v1/guild_membership.d.ts +12 -0
- package/sparkdream/season/v1/guild_membership.js +13 -1
- package/sparkdream/season/v1/member_profile.d.ts +12 -0
- package/sparkdream/season/v1/member_profile.js +13 -1
- package/sparkdream/season/v1/member_quest_progress.d.ts +8 -0
- package/sparkdream/season/v1/member_quest_progress.js +13 -1
- package/sparkdream/season/v1/member_season_snapshot.d.ts +14 -0
- package/sparkdream/season/v1/member_season_snapshot.js +16 -1
- package/sparkdream/season/v1/nomination.d.ts +32 -0
- package/sparkdream/season/v1/nomination.js +37 -1
- package/sparkdream/season/v1/query.d.ts +10 -6
- package/sparkdream/season/v1/query.js +26 -35
- package/sparkdream/season/v1/query.lcd.js +1 -1
- package/sparkdream/season/v1/quest.d.ts +12 -0
- package/sparkdream/season/v1/quest.js +13 -1
- package/sparkdream/season/v1/season.d.ts +12 -0
- package/sparkdream/season/v1/season.js +13 -1
- package/sparkdream/season/v1/season_stats_counters.d.ts +86 -0
- package/sparkdream/season/v1/season_stats_counters.js +124 -0
- package/sparkdream/season/v1/season_title_eligibility.d.ts +12 -3
- package/sparkdream/season/v1/season_title_eligibility.js +4 -1
- package/sparkdream/service/v1/genesis.d.ts +71 -0
- package/sparkdream/service/v1/genesis.js +127 -2
- package/sparkdream/service/v1/refile_cooldown.d.ts +35 -22
- package/sparkdream/service/v1/refile_cooldown.js +20 -7
- package/sparkdream/session/v1/genesis.d.ts +190 -0
- package/sparkdream/session/v1/genesis.js +304 -2
- package/sparkdream/session/v1/params.d.ts +18 -0
- package/sparkdream/session/v1/params.js +24 -0
- package/sparkdream/shield/v1/genesis.d.ts +37 -1
- package/sparkdream/shield/v1/genesis.js +55 -1
- package/sparkdream/shield/v1/params.d.ts +26 -2
- package/sparkdream/shield/v1/params.js +13 -1
- package/sparkdream/shield/v1/types.d.ts +122 -0
- package/sparkdream/shield/v1/types.js +203 -2
- package/sparkdream/vault/v1/genesis.d.ts +14 -0
- package/sparkdream/vault/v1/genesis.js +25 -1
- package/sparkdream/vault/v1/query.d.ts +16 -3
- package/sparkdream/vault/v1/query.js +15 -2
- package/sparkdream/vault/v1/query.lcd.js +3 -0
- package/sparkdream/vault/v1/tx.d.ts +219 -0
- package/sparkdream/vault/v1/tx.js +302 -1
- package/sparkdream/vault/v1/tx.registry.d.ts +25 -1
- package/sparkdream/vault/v1/tx.registry.js +37 -1
- package/sparkdream/vault/v1/tx.rpc.msg.d.ts +7 -1
- package/sparkdream/vault/v1/tx.rpc.msg.js +12 -0
- package/sparkdream/vault/v1/vault_signer.d.ts +22 -3
- package/sparkdream/vault/v1/vault_signer.js +15 -2
- package/tendermint/bundle.d.ts +844 -844
- package/tendermint/bundle.js +20 -20
|
@@ -1,14 +1,66 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.UserReactionLimit = void 0;
|
|
3
|
+
exports.UserReactionLimit = exports.ReactionLimitKindAmino = exports.ReactionLimitKind = void 0;
|
|
4
|
+
exports.reactionLimitKindFromJSON = reactionLimitKindFromJSON;
|
|
5
|
+
exports.reactionLimitKindToJSON = reactionLimitKindToJSON;
|
|
4
6
|
//@ts-nocheck
|
|
5
7
|
const binary_1 = require("../../../binary");
|
|
8
|
+
/**
|
|
9
|
+
* ReactionLimitKind names the daily budget a UserReactionLimit tracks. Each
|
|
10
|
+
* kind is stored under its own key (see UserReactionLimitKey).
|
|
11
|
+
*/
|
|
12
|
+
var ReactionLimitKind;
|
|
13
|
+
(function (ReactionLimitKind) {
|
|
14
|
+
/** REACTION_LIMIT_KIND_REACTION - Upvotes and the shared reaction budget, keyed by the bare address. */
|
|
15
|
+
ReactionLimitKind[ReactionLimitKind["REACTION_LIMIT_KIND_REACTION"] = 0] = "REACTION_LIMIT_KIND_REACTION";
|
|
16
|
+
ReactionLimitKind[ReactionLimitKind["REACTION_LIMIT_KIND_FLAG"] = 1] = "REACTION_LIMIT_KIND_FLAG";
|
|
17
|
+
ReactionLimitKind[ReactionLimitKind["REACTION_LIMIT_KIND_DOWNVOTE"] = 2] = "REACTION_LIMIT_KIND_DOWNVOTE";
|
|
18
|
+
ReactionLimitKind[ReactionLimitKind["REACTION_LIMIT_KIND_FOLLOW"] = 3] = "REACTION_LIMIT_KIND_FOLLOW";
|
|
19
|
+
ReactionLimitKind[ReactionLimitKind["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
|
|
20
|
+
})(ReactionLimitKind || (exports.ReactionLimitKind = ReactionLimitKind = {}));
|
|
21
|
+
exports.ReactionLimitKindAmino = ReactionLimitKind;
|
|
22
|
+
function reactionLimitKindFromJSON(object) {
|
|
23
|
+
switch (object) {
|
|
24
|
+
case 0:
|
|
25
|
+
case "REACTION_LIMIT_KIND_REACTION":
|
|
26
|
+
return ReactionLimitKind.REACTION_LIMIT_KIND_REACTION;
|
|
27
|
+
case 1:
|
|
28
|
+
case "REACTION_LIMIT_KIND_FLAG":
|
|
29
|
+
return ReactionLimitKind.REACTION_LIMIT_KIND_FLAG;
|
|
30
|
+
case 2:
|
|
31
|
+
case "REACTION_LIMIT_KIND_DOWNVOTE":
|
|
32
|
+
return ReactionLimitKind.REACTION_LIMIT_KIND_DOWNVOTE;
|
|
33
|
+
case 3:
|
|
34
|
+
case "REACTION_LIMIT_KIND_FOLLOW":
|
|
35
|
+
return ReactionLimitKind.REACTION_LIMIT_KIND_FOLLOW;
|
|
36
|
+
case -1:
|
|
37
|
+
case "UNRECOGNIZED":
|
|
38
|
+
default:
|
|
39
|
+
return ReactionLimitKind.UNRECOGNIZED;
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
function reactionLimitKindToJSON(object) {
|
|
43
|
+
switch (object) {
|
|
44
|
+
case ReactionLimitKind.REACTION_LIMIT_KIND_REACTION:
|
|
45
|
+
return "REACTION_LIMIT_KIND_REACTION";
|
|
46
|
+
case ReactionLimitKind.REACTION_LIMIT_KIND_FLAG:
|
|
47
|
+
return "REACTION_LIMIT_KIND_FLAG";
|
|
48
|
+
case ReactionLimitKind.REACTION_LIMIT_KIND_DOWNVOTE:
|
|
49
|
+
return "REACTION_LIMIT_KIND_DOWNVOTE";
|
|
50
|
+
case ReactionLimitKind.REACTION_LIMIT_KIND_FOLLOW:
|
|
51
|
+
return "REACTION_LIMIT_KIND_FOLLOW";
|
|
52
|
+
case ReactionLimitKind.UNRECOGNIZED:
|
|
53
|
+
default:
|
|
54
|
+
return "UNRECOGNIZED";
|
|
55
|
+
}
|
|
56
|
+
}
|
|
6
57
|
function createBaseUserReactionLimit() {
|
|
7
58
|
return {
|
|
8
59
|
userAddress: "",
|
|
9
60
|
currentDayCount: BigInt(0),
|
|
10
61
|
previousDayCount: BigInt(0),
|
|
11
|
-
currentDayStart: BigInt(0)
|
|
62
|
+
currentDayStart: BigInt(0),
|
|
63
|
+
kind: 0
|
|
12
64
|
};
|
|
13
65
|
}
|
|
14
66
|
/**
|
|
@@ -32,6 +84,9 @@ exports.UserReactionLimit = {
|
|
|
32
84
|
if (message.currentDayStart !== BigInt(0)) {
|
|
33
85
|
writer.uint32(32).int64(message.currentDayStart);
|
|
34
86
|
}
|
|
87
|
+
if (message.kind !== 0) {
|
|
88
|
+
writer.uint32(40).int32(message.kind);
|
|
89
|
+
}
|
|
35
90
|
return writer;
|
|
36
91
|
},
|
|
37
92
|
decode(input, length) {
|
|
@@ -53,6 +108,9 @@ exports.UserReactionLimit = {
|
|
|
53
108
|
case 4:
|
|
54
109
|
message.currentDayStart = reader.int64();
|
|
55
110
|
break;
|
|
111
|
+
case 5:
|
|
112
|
+
message.kind = reader.int32();
|
|
113
|
+
break;
|
|
56
114
|
default:
|
|
57
115
|
reader.skipType(tag & 7);
|
|
58
116
|
break;
|
|
@@ -66,6 +124,7 @@ exports.UserReactionLimit = {
|
|
|
66
124
|
message.currentDayCount = object.currentDayCount !== undefined && object.currentDayCount !== null ? BigInt(object.currentDayCount.toString()) : BigInt(0);
|
|
67
125
|
message.previousDayCount = object.previousDayCount !== undefined && object.previousDayCount !== null ? BigInt(object.previousDayCount.toString()) : BigInt(0);
|
|
68
126
|
message.currentDayStart = object.currentDayStart !== undefined && object.currentDayStart !== null ? BigInt(object.currentDayStart.toString()) : BigInt(0);
|
|
127
|
+
message.kind = object.kind ?? 0;
|
|
69
128
|
return message;
|
|
70
129
|
},
|
|
71
130
|
fromAmino(object) {
|
|
@@ -82,6 +141,9 @@ exports.UserReactionLimit = {
|
|
|
82
141
|
if (object.current_day_start !== undefined && object.current_day_start !== null) {
|
|
83
142
|
message.currentDayStart = BigInt(object.current_day_start);
|
|
84
143
|
}
|
|
144
|
+
if (object.kind !== undefined && object.kind !== null) {
|
|
145
|
+
message.kind = object.kind;
|
|
146
|
+
}
|
|
85
147
|
return message;
|
|
86
148
|
},
|
|
87
149
|
toAmino(message) {
|
|
@@ -90,6 +152,7 @@ exports.UserReactionLimit = {
|
|
|
90
152
|
obj.current_day_count = message.currentDayCount !== BigInt(0) ? message.currentDayCount?.toString() : undefined;
|
|
91
153
|
obj.previous_day_count = message.previousDayCount !== BigInt(0) ? message.previousDayCount?.toString() : undefined;
|
|
92
154
|
obj.current_day_start = message.currentDayStart !== BigInt(0) ? message.currentDayStart?.toString() : undefined;
|
|
155
|
+
obj.kind = message.kind === 0 ? undefined : message.kind;
|
|
93
156
|
return obj;
|
|
94
157
|
},
|
|
95
158
|
fromAminoMsg(object) {
|
|
@@ -44,6 +44,22 @@ export interface Market {
|
|
|
44
44
|
* spark. Empty for ACTIVE or RESOLVED_YES/NO markets.
|
|
45
45
|
*/
|
|
46
46
|
settlementPriceYes: string;
|
|
47
|
+
/**
|
|
48
|
+
* Time-weighted price accumulator (FUT-01). Sum over blocks of the LMSR
|
|
49
|
+
* YES price in effect during that block: each trade first adds
|
|
50
|
+
* p_yes * (height - twap_last_height) and only then moves the pools. The
|
|
51
|
+
* market resolves on twap_accumulator / (end_block - start_height), not on
|
|
52
|
+
* the final pool state, so a trade in the last blocks cannot decide it.
|
|
53
|
+
*/
|
|
54
|
+
twapAccumulator: string;
|
|
55
|
+
/**
|
|
56
|
+
* Height up to which twap_accumulator has been accumulated.
|
|
57
|
+
*/
|
|
58
|
+
twapLastHeight: bigint;
|
|
59
|
+
/**
|
|
60
|
+
* Height at which the market was created (start of the TWAP window).
|
|
61
|
+
*/
|
|
62
|
+
startHeight: bigint;
|
|
47
63
|
}
|
|
48
64
|
export interface MarketProtoMsg {
|
|
49
65
|
typeUrl: "/sparkdream.futarchy.v1.Market";
|
|
@@ -93,6 +109,22 @@ export interface MarketAmino {
|
|
|
93
109
|
* spark. Empty for ACTIVE or RESOLVED_YES/NO markets.
|
|
94
110
|
*/
|
|
95
111
|
settlement_price_yes?: string;
|
|
112
|
+
/**
|
|
113
|
+
* Time-weighted price accumulator (FUT-01). Sum over blocks of the LMSR
|
|
114
|
+
* YES price in effect during that block: each trade first adds
|
|
115
|
+
* p_yes * (height - twap_last_height) and only then moves the pools. The
|
|
116
|
+
* market resolves on twap_accumulator / (end_block - start_height), not on
|
|
117
|
+
* the final pool state, so a trade in the last blocks cannot decide it.
|
|
118
|
+
*/
|
|
119
|
+
twap_accumulator?: string;
|
|
120
|
+
/**
|
|
121
|
+
* Height up to which twap_accumulator has been accumulated.
|
|
122
|
+
*/
|
|
123
|
+
twap_last_height?: string;
|
|
124
|
+
/**
|
|
125
|
+
* Height at which the market was created (start of the TWAP window).
|
|
126
|
+
*/
|
|
127
|
+
start_height?: string;
|
|
96
128
|
}
|
|
97
129
|
export interface MarketAminoMsg {
|
|
98
130
|
type: "/sparkdream.futarchy.v1.Market";
|
|
@@ -21,7 +21,10 @@ function createBaseMarket() {
|
|
|
21
21
|
poolNo: "",
|
|
22
22
|
initialLiquidity: "",
|
|
23
23
|
liquidityWithdrawn: "",
|
|
24
|
-
settlementPriceYes: ""
|
|
24
|
+
settlementPriceYes: "",
|
|
25
|
+
twapAccumulator: "",
|
|
26
|
+
twapLastHeight: BigInt(0),
|
|
27
|
+
startHeight: BigInt(0)
|
|
25
28
|
};
|
|
26
29
|
}
|
|
27
30
|
/**
|
|
@@ -81,6 +84,15 @@ exports.Market = {
|
|
|
81
84
|
if (message.settlementPriceYes !== "") {
|
|
82
85
|
writer.uint32(130).string(math_1.Decimal.fromUserInput(message.settlementPriceYes, 18).atomics);
|
|
83
86
|
}
|
|
87
|
+
if (message.twapAccumulator !== "") {
|
|
88
|
+
writer.uint32(138).string(math_1.Decimal.fromUserInput(message.twapAccumulator, 18).atomics);
|
|
89
|
+
}
|
|
90
|
+
if (message.twapLastHeight !== BigInt(0)) {
|
|
91
|
+
writer.uint32(144).int64(message.twapLastHeight);
|
|
92
|
+
}
|
|
93
|
+
if (message.startHeight !== BigInt(0)) {
|
|
94
|
+
writer.uint32(152).int64(message.startHeight);
|
|
95
|
+
}
|
|
84
96
|
return writer;
|
|
85
97
|
},
|
|
86
98
|
decode(input, length) {
|
|
@@ -138,6 +150,15 @@ exports.Market = {
|
|
|
138
150
|
case 16:
|
|
139
151
|
message.settlementPriceYes = math_1.Decimal.fromAtomics(reader.string(), 18).toString();
|
|
140
152
|
break;
|
|
153
|
+
case 17:
|
|
154
|
+
message.twapAccumulator = math_1.Decimal.fromAtomics(reader.string(), 18).toString();
|
|
155
|
+
break;
|
|
156
|
+
case 18:
|
|
157
|
+
message.twapLastHeight = reader.int64();
|
|
158
|
+
break;
|
|
159
|
+
case 19:
|
|
160
|
+
message.startHeight = reader.int64();
|
|
161
|
+
break;
|
|
141
162
|
default:
|
|
142
163
|
reader.skipType(tag & 7);
|
|
143
164
|
break;
|
|
@@ -163,6 +184,9 @@ exports.Market = {
|
|
|
163
184
|
message.initialLiquidity = object.initialLiquidity ?? "";
|
|
164
185
|
message.liquidityWithdrawn = object.liquidityWithdrawn ?? "";
|
|
165
186
|
message.settlementPriceYes = object.settlementPriceYes ?? "";
|
|
187
|
+
message.twapAccumulator = object.twapAccumulator ?? "";
|
|
188
|
+
message.twapLastHeight = object.twapLastHeight !== undefined && object.twapLastHeight !== null ? BigInt(object.twapLastHeight.toString()) : BigInt(0);
|
|
189
|
+
message.startHeight = object.startHeight !== undefined && object.startHeight !== null ? BigInt(object.startHeight.toString()) : BigInt(0);
|
|
166
190
|
return message;
|
|
167
191
|
},
|
|
168
192
|
fromAmino(object) {
|
|
@@ -215,6 +239,15 @@ exports.Market = {
|
|
|
215
239
|
if (object.settlement_price_yes !== undefined && object.settlement_price_yes !== null) {
|
|
216
240
|
message.settlementPriceYes = object.settlement_price_yes;
|
|
217
241
|
}
|
|
242
|
+
if (object.twap_accumulator !== undefined && object.twap_accumulator !== null) {
|
|
243
|
+
message.twapAccumulator = object.twap_accumulator;
|
|
244
|
+
}
|
|
245
|
+
if (object.twap_last_height !== undefined && object.twap_last_height !== null) {
|
|
246
|
+
message.twapLastHeight = BigInt(object.twap_last_height);
|
|
247
|
+
}
|
|
248
|
+
if (object.start_height !== undefined && object.start_height !== null) {
|
|
249
|
+
message.startHeight = BigInt(object.start_height);
|
|
250
|
+
}
|
|
218
251
|
return message;
|
|
219
252
|
},
|
|
220
253
|
toAmino(message) {
|
|
@@ -235,6 +268,9 @@ exports.Market = {
|
|
|
235
268
|
obj.initial_liquidity = message.initialLiquidity === "" ? undefined : message.initialLiquidity;
|
|
236
269
|
obj.liquidity_withdrawn = message.liquidityWithdrawn === "" ? undefined : message.liquidityWithdrawn;
|
|
237
270
|
obj.settlement_price_yes = message.settlementPriceYes === "" ? undefined : message.settlementPriceYes;
|
|
271
|
+
obj.twap_accumulator = message.twapAccumulator === "" ? undefined : message.twapAccumulator;
|
|
272
|
+
obj.twap_last_height = message.twapLastHeight !== BigInt(0) ? message.twapLastHeight?.toString() : undefined;
|
|
273
|
+
obj.start_height = message.startHeight !== BigInt(0) ? message.startHeight?.toString() : undefined;
|
|
238
274
|
return obj;
|
|
239
275
|
},
|
|
240
276
|
fromAminoMsg(object) {
|
|
@@ -212,6 +212,11 @@ export interface MsgTrade {
|
|
|
212
212
|
marketId: bigint;
|
|
213
213
|
isYes: boolean;
|
|
214
214
|
amountIn: string;
|
|
215
|
+
/**
|
|
216
|
+
* Optional slippage bound: the trade fails if it would mint fewer shares.
|
|
217
|
+
* Empty or zero means no bound.
|
|
218
|
+
*/
|
|
219
|
+
minSharesOut: string;
|
|
215
220
|
}
|
|
216
221
|
export interface MsgTradeProtoMsg {
|
|
217
222
|
typeUrl: "/sparkdream.futarchy.v1.MsgTrade";
|
|
@@ -228,6 +233,11 @@ export interface MsgTradeAmino {
|
|
|
228
233
|
market_id?: string;
|
|
229
234
|
is_yes?: boolean;
|
|
230
235
|
amount_in?: string;
|
|
236
|
+
/**
|
|
237
|
+
* Optional slippage bound: the trade fails if it would mint fewer shares.
|
|
238
|
+
* Empty or zero means no bound.
|
|
239
|
+
*/
|
|
240
|
+
min_shares_out?: string;
|
|
231
241
|
}
|
|
232
242
|
export interface MsgTradeAminoMsg {
|
|
233
243
|
type: "sparkdream/x/futarchy/MsgTrade";
|
|
@@ -493,7 +493,8 @@ function createBaseMsgTrade() {
|
|
|
493
493
|
creator: "",
|
|
494
494
|
marketId: BigInt(0),
|
|
495
495
|
isYes: false,
|
|
496
|
-
amountIn: ""
|
|
496
|
+
amountIn: "",
|
|
497
|
+
minSharesOut: ""
|
|
497
498
|
};
|
|
498
499
|
}
|
|
499
500
|
/**
|
|
@@ -518,6 +519,9 @@ exports.MsgTrade = {
|
|
|
518
519
|
if (message.amountIn !== "") {
|
|
519
520
|
writer.uint32(34).string(message.amountIn);
|
|
520
521
|
}
|
|
522
|
+
if (message.minSharesOut !== "") {
|
|
523
|
+
writer.uint32(42).string(message.minSharesOut);
|
|
524
|
+
}
|
|
521
525
|
return writer;
|
|
522
526
|
},
|
|
523
527
|
decode(input, length) {
|
|
@@ -539,6 +543,9 @@ exports.MsgTrade = {
|
|
|
539
543
|
case 4:
|
|
540
544
|
message.amountIn = reader.string();
|
|
541
545
|
break;
|
|
546
|
+
case 5:
|
|
547
|
+
message.minSharesOut = reader.string();
|
|
548
|
+
break;
|
|
542
549
|
default:
|
|
543
550
|
reader.skipType(tag & 7);
|
|
544
551
|
break;
|
|
@@ -552,6 +559,7 @@ exports.MsgTrade = {
|
|
|
552
559
|
message.marketId = object.marketId !== undefined && object.marketId !== null ? BigInt(object.marketId.toString()) : BigInt(0);
|
|
553
560
|
message.isYes = object.isYes ?? false;
|
|
554
561
|
message.amountIn = object.amountIn ?? "";
|
|
562
|
+
message.minSharesOut = object.minSharesOut ?? "";
|
|
555
563
|
return message;
|
|
556
564
|
},
|
|
557
565
|
fromAmino(object) {
|
|
@@ -568,6 +576,9 @@ exports.MsgTrade = {
|
|
|
568
576
|
if (object.amount_in !== undefined && object.amount_in !== null) {
|
|
569
577
|
message.amountIn = object.amount_in;
|
|
570
578
|
}
|
|
579
|
+
if (object.min_shares_out !== undefined && object.min_shares_out !== null) {
|
|
580
|
+
message.minSharesOut = object.min_shares_out;
|
|
581
|
+
}
|
|
571
582
|
return message;
|
|
572
583
|
},
|
|
573
584
|
toAmino(message) {
|
|
@@ -576,6 +587,7 @@ exports.MsgTrade = {
|
|
|
576
587
|
obj.market_id = message.marketId !== BigInt(0) ? message.marketId?.toString() : undefined;
|
|
577
588
|
obj.is_yes = message.isYes === false ? undefined : message.isYes;
|
|
578
589
|
obj.amount_in = message.amountIn === "" ? undefined : message.amountIn;
|
|
590
|
+
obj.min_shares_out = message.minSharesOut === "" ? undefined : message.minSharesOut;
|
|
579
591
|
return obj;
|
|
580
592
|
},
|
|
581
593
|
fromAminoMsg(object) {
|
|
@@ -33,6 +33,13 @@ export interface Dispute {
|
|
|
33
33
|
* Jury verdict: did owner's contest win?
|
|
34
34
|
*/
|
|
35
35
|
contestSucceeded: boolean;
|
|
36
|
+
/**
|
|
37
|
+
* Set when the BeginBlocker leaves an uncontested dispute to council
|
|
38
|
+
* review (the owner is still active, or auto-resolution failed). The
|
|
39
|
+
* dispute stays active but out of the auto-resolution queue, and a genesis
|
|
40
|
+
* import keeps it out.
|
|
41
|
+
*/
|
|
42
|
+
awaitingReview: boolean;
|
|
36
43
|
}
|
|
37
44
|
export interface DisputeProtoMsg {
|
|
38
45
|
typeUrl: "/sparkdream.name.v1.Dispute";
|
|
@@ -71,6 +78,13 @@ export interface DisputeAmino {
|
|
|
71
78
|
* Jury verdict: did owner's contest win?
|
|
72
79
|
*/
|
|
73
80
|
contest_succeeded?: boolean;
|
|
81
|
+
/**
|
|
82
|
+
* Set when the BeginBlocker leaves an uncontested dispute to council
|
|
83
|
+
* review (the owner is still active, or auto-resolution failed). The
|
|
84
|
+
* dispute stays active but out of the auto-resolution queue, and a genesis
|
|
85
|
+
* import keeps it out.
|
|
86
|
+
*/
|
|
87
|
+
awaiting_review?: boolean;
|
|
74
88
|
}
|
|
75
89
|
export interface DisputeAminoMsg {
|
|
76
90
|
type: "/sparkdream.name.v1.Dispute";
|
|
@@ -12,7 +12,8 @@ function createBaseDispute() {
|
|
|
12
12
|
active: false,
|
|
13
13
|
contestChallengeId: "",
|
|
14
14
|
contestedAt: BigInt(0),
|
|
15
|
-
contestSucceeded: false
|
|
15
|
+
contestSucceeded: false,
|
|
16
|
+
awaitingReview: false
|
|
16
17
|
};
|
|
17
18
|
}
|
|
18
19
|
/**
|
|
@@ -48,6 +49,9 @@ exports.Dispute = {
|
|
|
48
49
|
if (message.contestSucceeded === true) {
|
|
49
50
|
writer.uint32(64).bool(message.contestSucceeded);
|
|
50
51
|
}
|
|
52
|
+
if (message.awaitingReview === true) {
|
|
53
|
+
writer.uint32(72).bool(message.awaitingReview);
|
|
54
|
+
}
|
|
51
55
|
return writer;
|
|
52
56
|
},
|
|
53
57
|
decode(input, length) {
|
|
@@ -81,6 +85,9 @@ exports.Dispute = {
|
|
|
81
85
|
case 8:
|
|
82
86
|
message.contestSucceeded = reader.bool();
|
|
83
87
|
break;
|
|
88
|
+
case 9:
|
|
89
|
+
message.awaitingReview = reader.bool();
|
|
90
|
+
break;
|
|
84
91
|
default:
|
|
85
92
|
reader.skipType(tag & 7);
|
|
86
93
|
break;
|
|
@@ -98,6 +105,7 @@ exports.Dispute = {
|
|
|
98
105
|
message.contestChallengeId = object.contestChallengeId ?? "";
|
|
99
106
|
message.contestedAt = object.contestedAt !== undefined && object.contestedAt !== null ? BigInt(object.contestedAt.toString()) : BigInt(0);
|
|
100
107
|
message.contestSucceeded = object.contestSucceeded ?? false;
|
|
108
|
+
message.awaitingReview = object.awaitingReview ?? false;
|
|
101
109
|
return message;
|
|
102
110
|
},
|
|
103
111
|
fromAmino(object) {
|
|
@@ -126,6 +134,9 @@ exports.Dispute = {
|
|
|
126
134
|
if (object.contest_succeeded !== undefined && object.contest_succeeded !== null) {
|
|
127
135
|
message.contestSucceeded = object.contest_succeeded;
|
|
128
136
|
}
|
|
137
|
+
if (object.awaiting_review !== undefined && object.awaiting_review !== null) {
|
|
138
|
+
message.awaitingReview = object.awaiting_review;
|
|
139
|
+
}
|
|
129
140
|
return message;
|
|
130
141
|
},
|
|
131
142
|
toAmino(message) {
|
|
@@ -138,6 +149,7 @@ exports.Dispute = {
|
|
|
138
149
|
obj.contest_challenge_id = message.contestChallengeId === "" ? undefined : message.contestChallengeId;
|
|
139
150
|
obj.contested_at = message.contestedAt !== BigInt(0) ? message.contestedAt?.toString() : undefined;
|
|
140
151
|
obj.contest_succeeded = message.contestSucceeded === false ? undefined : message.contestSucceeded;
|
|
152
|
+
obj.awaiting_review = message.awaitingReview === false ? undefined : message.awaitingReview;
|
|
141
153
|
return obj;
|
|
142
154
|
},
|
|
143
155
|
fromAminoMsg(object) {
|
|
@@ -14,7 +14,7 @@ import { TagReport, TagReportAmino } from "./tag_report";
|
|
|
14
14
|
import { TagBudget, TagBudgetAmino } from "./tag_budget";
|
|
15
15
|
import { TagBudgetAward, TagBudgetAwardAmino } from "./tag_budget_award";
|
|
16
16
|
import { JuryParticipation, JuryParticipationAmino } from "./jury_participation";
|
|
17
|
-
import { MemberReport, MemberReportAmino } from "./member_report";
|
|
17
|
+
import { MemberReport, MemberReportAmino, MemberActionRestoration, MemberActionRestorationAmino } from "./member_report";
|
|
18
18
|
import { MemberWarning, MemberWarningAmino } from "./member_warning";
|
|
19
19
|
import { GovActionAppeal, GovActionAppealAmino } from "./gov_action_appeal";
|
|
20
20
|
import { BondedRole, BondedRoleAmino, BondedRoleConfig, BondedRoleConfigAmino } from "./bonded_role";
|
|
@@ -149,6 +149,29 @@ export interface GenesisState {
|
|
|
149
149
|
memberMigrationCount: bigint;
|
|
150
150
|
recoveryCommitmentList: RecoveryCommitmentEntry[];
|
|
151
151
|
recoveryCommitList: RecoveryCommit[];
|
|
152
|
+
/**
|
|
153
|
+
* Restoration records of appealable member actions. The filing-window
|
|
154
|
+
* expiry index is derived from these at InitGenesis.
|
|
155
|
+
*/
|
|
156
|
+
memberActionRestorationList: MemberActionRestoration[];
|
|
157
|
+
/**
|
|
158
|
+
* Jury reviews deliberately kept out of the verdict index (content-challenge
|
|
159
|
+
* and appeal reviews, which have their own timeout paths). InitGenesis
|
|
160
|
+
* indexes every other review, so a hand-written genesis that omits this
|
|
161
|
+
* list indexes them all.
|
|
162
|
+
*/
|
|
163
|
+
juryReviewsOutsideVerdictIndex: bigint[];
|
|
164
|
+
/**
|
|
165
|
+
* The per-(budget, post) award cooldown heights. An award without an entry
|
|
166
|
+
* here restarts its cooldown at the import height.
|
|
167
|
+
*/
|
|
168
|
+
tagBudgetAwardCooldownList: TagBudgetAwardCooldown[];
|
|
169
|
+
/**
|
|
170
|
+
* What each awarder has awarded from a budget in an epoch (the per-awarder
|
|
171
|
+
* epoch cap ledger). Without it an import inside an epoch would reset every
|
|
172
|
+
* awarder's cap for that epoch.
|
|
173
|
+
*/
|
|
174
|
+
tagBudgetAwarderEpochList: TagBudgetAwarderEpochSpend[];
|
|
152
175
|
}
|
|
153
176
|
export interface GenesisStateProtoMsg {
|
|
154
177
|
typeUrl: "/sparkdream.rep.v1.GenesisState";
|
|
@@ -278,11 +301,100 @@ export interface GenesisStateAmino {
|
|
|
278
301
|
member_migration_count?: string;
|
|
279
302
|
recovery_commitment_list?: RecoveryCommitmentEntryAmino[];
|
|
280
303
|
recovery_commit_list?: RecoveryCommitAmino[];
|
|
304
|
+
/**
|
|
305
|
+
* Restoration records of appealable member actions. The filing-window
|
|
306
|
+
* expiry index is derived from these at InitGenesis.
|
|
307
|
+
*/
|
|
308
|
+
member_action_restoration_list?: MemberActionRestorationAmino[];
|
|
309
|
+
/**
|
|
310
|
+
* Jury reviews deliberately kept out of the verdict index (content-challenge
|
|
311
|
+
* and appeal reviews, which have their own timeout paths). InitGenesis
|
|
312
|
+
* indexes every other review, so a hand-written genesis that omits this
|
|
313
|
+
* list indexes them all.
|
|
314
|
+
*/
|
|
315
|
+
jury_reviews_outside_verdict_index?: string[];
|
|
316
|
+
/**
|
|
317
|
+
* The per-(budget, post) award cooldown heights. An award without an entry
|
|
318
|
+
* here restarts its cooldown at the import height.
|
|
319
|
+
*/
|
|
320
|
+
tag_budget_award_cooldown_list?: TagBudgetAwardCooldownAmino[];
|
|
321
|
+
/**
|
|
322
|
+
* What each awarder has awarded from a budget in an epoch (the per-awarder
|
|
323
|
+
* epoch cap ledger). Without it an import inside an epoch would reset every
|
|
324
|
+
* awarder's cap for that epoch.
|
|
325
|
+
*/
|
|
326
|
+
tag_budget_awarder_epoch_list?: TagBudgetAwarderEpochSpendAmino[];
|
|
281
327
|
}
|
|
282
328
|
export interface GenesisStateAminoMsg {
|
|
283
329
|
type: "/sparkdream.rep.v1.GenesisState";
|
|
284
330
|
value: GenesisStateAmino;
|
|
285
331
|
}
|
|
332
|
+
/**
|
|
333
|
+
* TagBudgetAwarderEpochSpend is the amount awarder awarded from budget_id in
|
|
334
|
+
* epoch.
|
|
335
|
+
* @name TagBudgetAwarderEpochSpend
|
|
336
|
+
* @package sparkdream.rep.v1
|
|
337
|
+
* @see proto type: sparkdream.rep.v1.TagBudgetAwarderEpochSpend
|
|
338
|
+
*/
|
|
339
|
+
export interface TagBudgetAwarderEpochSpend {
|
|
340
|
+
budgetId: bigint;
|
|
341
|
+
awarder: string;
|
|
342
|
+
epoch: bigint;
|
|
343
|
+
amount: string;
|
|
344
|
+
}
|
|
345
|
+
export interface TagBudgetAwarderEpochSpendProtoMsg {
|
|
346
|
+
typeUrl: "/sparkdream.rep.v1.TagBudgetAwarderEpochSpend";
|
|
347
|
+
value: Uint8Array;
|
|
348
|
+
}
|
|
349
|
+
/**
|
|
350
|
+
* TagBudgetAwarderEpochSpend is the amount awarder awarded from budget_id in
|
|
351
|
+
* epoch.
|
|
352
|
+
* @name TagBudgetAwarderEpochSpendAmino
|
|
353
|
+
* @package sparkdream.rep.v1
|
|
354
|
+
* @see proto type: sparkdream.rep.v1.TagBudgetAwarderEpochSpend
|
|
355
|
+
*/
|
|
356
|
+
export interface TagBudgetAwarderEpochSpendAmino {
|
|
357
|
+
budget_id?: string;
|
|
358
|
+
awarder?: string;
|
|
359
|
+
epoch?: string;
|
|
360
|
+
amount?: string;
|
|
361
|
+
}
|
|
362
|
+
export interface TagBudgetAwarderEpochSpendAminoMsg {
|
|
363
|
+
type: "/sparkdream.rep.v1.TagBudgetAwarderEpochSpend";
|
|
364
|
+
value: TagBudgetAwarderEpochSpendAmino;
|
|
365
|
+
}
|
|
366
|
+
/**
|
|
367
|
+
* TagBudgetAwardCooldown is the height of the latest award from budget_id to
|
|
368
|
+
* post_id, the start of that pair's award cooldown.
|
|
369
|
+
* @name TagBudgetAwardCooldown
|
|
370
|
+
* @package sparkdream.rep.v1
|
|
371
|
+
* @see proto type: sparkdream.rep.v1.TagBudgetAwardCooldown
|
|
372
|
+
*/
|
|
373
|
+
export interface TagBudgetAwardCooldown {
|
|
374
|
+
budgetId: bigint;
|
|
375
|
+
postId: bigint;
|
|
376
|
+
height: bigint;
|
|
377
|
+
}
|
|
378
|
+
export interface TagBudgetAwardCooldownProtoMsg {
|
|
379
|
+
typeUrl: "/sparkdream.rep.v1.TagBudgetAwardCooldown";
|
|
380
|
+
value: Uint8Array;
|
|
381
|
+
}
|
|
382
|
+
/**
|
|
383
|
+
* TagBudgetAwardCooldown is the height of the latest award from budget_id to
|
|
384
|
+
* post_id, the start of that pair's award cooldown.
|
|
385
|
+
* @name TagBudgetAwardCooldownAmino
|
|
386
|
+
* @package sparkdream.rep.v1
|
|
387
|
+
* @see proto type: sparkdream.rep.v1.TagBudgetAwardCooldown
|
|
388
|
+
*/
|
|
389
|
+
export interface TagBudgetAwardCooldownAmino {
|
|
390
|
+
budget_id?: string;
|
|
391
|
+
post_id?: string;
|
|
392
|
+
height?: string;
|
|
393
|
+
}
|
|
394
|
+
export interface TagBudgetAwardCooldownAminoMsg {
|
|
395
|
+
type: "/sparkdream.rep.v1.TagBudgetAwardCooldown";
|
|
396
|
+
value: TagBudgetAwardCooldownAmino;
|
|
397
|
+
}
|
|
286
398
|
/**
|
|
287
399
|
* EconomicState carries x/rep's token ledger across a genesis round trip.
|
|
288
400
|
* Int and Dec values travel as strings so an absent field reads as zero rather
|
|
@@ -475,6 +587,44 @@ export declare const GenesisState: {
|
|
|
475
587
|
toProto(message: GenesisState): Uint8Array;
|
|
476
588
|
toProtoMsg(message: GenesisState): GenesisStateProtoMsg;
|
|
477
589
|
};
|
|
590
|
+
/**
|
|
591
|
+
* TagBudgetAwarderEpochSpend is the amount awarder awarded from budget_id in
|
|
592
|
+
* epoch.
|
|
593
|
+
* @name TagBudgetAwarderEpochSpend
|
|
594
|
+
* @package sparkdream.rep.v1
|
|
595
|
+
* @see proto type: sparkdream.rep.v1.TagBudgetAwarderEpochSpend
|
|
596
|
+
*/
|
|
597
|
+
export declare const TagBudgetAwarderEpochSpend: {
|
|
598
|
+
typeUrl: string;
|
|
599
|
+
encode(message: TagBudgetAwarderEpochSpend, writer?: BinaryWriter): BinaryWriter;
|
|
600
|
+
decode(input: BinaryReader | Uint8Array, length?: number): TagBudgetAwarderEpochSpend;
|
|
601
|
+
fromPartial(object: DeepPartial<TagBudgetAwarderEpochSpend>): TagBudgetAwarderEpochSpend;
|
|
602
|
+
fromAmino(object: TagBudgetAwarderEpochSpendAmino): TagBudgetAwarderEpochSpend;
|
|
603
|
+
toAmino(message: TagBudgetAwarderEpochSpend): TagBudgetAwarderEpochSpendAmino;
|
|
604
|
+
fromAminoMsg(object: TagBudgetAwarderEpochSpendAminoMsg): TagBudgetAwarderEpochSpend;
|
|
605
|
+
fromProtoMsg(message: TagBudgetAwarderEpochSpendProtoMsg): TagBudgetAwarderEpochSpend;
|
|
606
|
+
toProto(message: TagBudgetAwarderEpochSpend): Uint8Array;
|
|
607
|
+
toProtoMsg(message: TagBudgetAwarderEpochSpend): TagBudgetAwarderEpochSpendProtoMsg;
|
|
608
|
+
};
|
|
609
|
+
/**
|
|
610
|
+
* TagBudgetAwardCooldown is the height of the latest award from budget_id to
|
|
611
|
+
* post_id, the start of that pair's award cooldown.
|
|
612
|
+
* @name TagBudgetAwardCooldown
|
|
613
|
+
* @package sparkdream.rep.v1
|
|
614
|
+
* @see proto type: sparkdream.rep.v1.TagBudgetAwardCooldown
|
|
615
|
+
*/
|
|
616
|
+
export declare const TagBudgetAwardCooldown: {
|
|
617
|
+
typeUrl: string;
|
|
618
|
+
encode(message: TagBudgetAwardCooldown, writer?: BinaryWriter): BinaryWriter;
|
|
619
|
+
decode(input: BinaryReader | Uint8Array, length?: number): TagBudgetAwardCooldown;
|
|
620
|
+
fromPartial(object: DeepPartial<TagBudgetAwardCooldown>): TagBudgetAwardCooldown;
|
|
621
|
+
fromAmino(object: TagBudgetAwardCooldownAmino): TagBudgetAwardCooldown;
|
|
622
|
+
toAmino(message: TagBudgetAwardCooldown): TagBudgetAwardCooldownAmino;
|
|
623
|
+
fromAminoMsg(object: TagBudgetAwardCooldownAminoMsg): TagBudgetAwardCooldown;
|
|
624
|
+
fromProtoMsg(message: TagBudgetAwardCooldownProtoMsg): TagBudgetAwardCooldown;
|
|
625
|
+
toProto(message: TagBudgetAwardCooldown): Uint8Array;
|
|
626
|
+
toProtoMsg(message: TagBudgetAwardCooldown): TagBudgetAwardCooldownProtoMsg;
|
|
627
|
+
};
|
|
478
628
|
/**
|
|
479
629
|
* EconomicState carries x/rep's token ledger across a genesis round trip.
|
|
480
630
|
* Int and Dec values travel as strings so an absent field reads as zero rather
|