@sparkdreamnft/sparkdreamjs 0.0.13 → 0.0.15
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/esm/sparkdream/commons/v1/tx.js +147 -0
- package/esm/sparkdream/commons/v1/tx.registry.js +20 -2
- package/esm/sparkdream/commons/v1/tx.rpc.msg.js +7 -1
- package/esm/sparkdream/forum/v1/hide_record.js +19 -1
- package/esm/sparkdream/forum/v1/params.js +26 -2
- package/esm/sparkdream/forum/v1/tx.amino.js +6 -1
- package/esm/sparkdream/forum/v1/tx.js +144 -0
- package/esm/sparkdream/forum/v1/tx.registry.js +20 -2
- package/esm/sparkdream/forum/v1/tx.rpc.msg.js +12 -1
- package/esm/sparkdream/rep/v1/params.js +74 -2
- package/esm/sparkdream/rep/v1/project.js +24 -1
- package/esm/sparkdream/session/v1/params.js +26 -2
- package/package.json +1 -1
- package/sparkdream/bundle.d.ts +81 -0
- package/sparkdream/client.d.ts +5 -0
- package/sparkdream/commons/v1/tx.d.ts +99 -0
- package/sparkdream/commons/v1/tx.js +148 -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 +3 -1
- package/sparkdream/commons/v1/tx.rpc.msg.js +6 -0
- package/sparkdream/forum/v1/hide_record.d.ts +50 -0
- package/sparkdream/forum/v1/hide_record.js +19 -1
- package/sparkdream/forum/v1/params.d.ts +28 -0
- package/sparkdream/forum/v1/params.js +26 -2
- package/sparkdream/forum/v1/tx.amino.d.ts +6 -1
- package/sparkdream/forum/v1/tx.amino.js +5 -0
- package/sparkdream/forum/v1/tx.d.ts +90 -0
- package/sparkdream/forum/v1/tx.js +146 -2
- package/sparkdream/forum/v1/tx.registry.d.ts +13 -1
- package/sparkdream/forum/v1/tx.registry.js +19 -1
- package/sparkdream/forum/v1/tx.rpc.msg.d.ts +11 -1
- package/sparkdream/forum/v1/tx.rpc.msg.js +11 -0
- package/sparkdream/rep/v1/params.d.ts +52 -0
- package/sparkdream/rep/v1/params.js +74 -2
- package/sparkdream/rep/v1/project.d.ts +22 -0
- package/sparkdream/rep/v1/project.js +24 -1
- package/sparkdream/session/v1/params.d.ts +12 -0
- package/sparkdream/session/v1/params.js +26 -2
|
@@ -1068,6 +1068,58 @@ export interface MsgHidePostResponseAminoMsg {
|
|
|
1068
1068
|
type: "/sparkdream.forum.v1.MsgHidePostResponse";
|
|
1069
1069
|
value: MsgHidePostResponseAmino;
|
|
1070
1070
|
}
|
|
1071
|
+
/**
|
|
1072
|
+
* MsgUnhidePost reverses MsgHidePost.
|
|
1073
|
+
* @name MsgUnhidePost
|
|
1074
|
+
* @package sparkdream.forum.v1
|
|
1075
|
+
* @see proto type: sparkdream.forum.v1.MsgUnhidePost
|
|
1076
|
+
*/
|
|
1077
|
+
export interface MsgUnhidePost {
|
|
1078
|
+
creator: string;
|
|
1079
|
+
postId: bigint;
|
|
1080
|
+
}
|
|
1081
|
+
export interface MsgUnhidePostProtoMsg {
|
|
1082
|
+
typeUrl: "/sparkdream.forum.v1.MsgUnhidePost";
|
|
1083
|
+
value: Uint8Array;
|
|
1084
|
+
}
|
|
1085
|
+
/**
|
|
1086
|
+
* MsgUnhidePost reverses MsgHidePost.
|
|
1087
|
+
* @name MsgUnhidePostAmino
|
|
1088
|
+
* @package sparkdream.forum.v1
|
|
1089
|
+
* @see proto type: sparkdream.forum.v1.MsgUnhidePost
|
|
1090
|
+
*/
|
|
1091
|
+
export interface MsgUnhidePostAmino {
|
|
1092
|
+
creator?: string;
|
|
1093
|
+
post_id?: string;
|
|
1094
|
+
}
|
|
1095
|
+
export interface MsgUnhidePostAminoMsg {
|
|
1096
|
+
type: "sparkdream/x/forum/MsgUnhidePost";
|
|
1097
|
+
value: MsgUnhidePostAmino;
|
|
1098
|
+
}
|
|
1099
|
+
/**
|
|
1100
|
+
* MsgUnhidePostResponse defines the MsgUnhidePostResponse message.
|
|
1101
|
+
* @name MsgUnhidePostResponse
|
|
1102
|
+
* @package sparkdream.forum.v1
|
|
1103
|
+
* @see proto type: sparkdream.forum.v1.MsgUnhidePostResponse
|
|
1104
|
+
*/
|
|
1105
|
+
export interface MsgUnhidePostResponse {
|
|
1106
|
+
}
|
|
1107
|
+
export interface MsgUnhidePostResponseProtoMsg {
|
|
1108
|
+
typeUrl: "/sparkdream.forum.v1.MsgUnhidePostResponse";
|
|
1109
|
+
value: Uint8Array;
|
|
1110
|
+
}
|
|
1111
|
+
/**
|
|
1112
|
+
* MsgUnhidePostResponse defines the MsgUnhidePostResponse message.
|
|
1113
|
+
* @name MsgUnhidePostResponseAmino
|
|
1114
|
+
* @package sparkdream.forum.v1
|
|
1115
|
+
* @see proto type: sparkdream.forum.v1.MsgUnhidePostResponse
|
|
1116
|
+
*/
|
|
1117
|
+
export interface MsgUnhidePostResponseAmino {
|
|
1118
|
+
}
|
|
1119
|
+
export interface MsgUnhidePostResponseAminoMsg {
|
|
1120
|
+
type: "/sparkdream.forum.v1.MsgUnhidePostResponse";
|
|
1121
|
+
value: MsgUnhidePostResponseAmino;
|
|
1122
|
+
}
|
|
1071
1123
|
/**
|
|
1072
1124
|
* MsgAppealPost defines the MsgAppealPost message.
|
|
1073
1125
|
* @name MsgAppealPost
|
|
@@ -2647,6 +2699,44 @@ export declare const MsgHidePostResponse: {
|
|
|
2647
2699
|
toProto(message: MsgHidePostResponse): Uint8Array;
|
|
2648
2700
|
toProtoMsg(message: MsgHidePostResponse): MsgHidePostResponseProtoMsg;
|
|
2649
2701
|
};
|
|
2702
|
+
/**
|
|
2703
|
+
* MsgUnhidePost reverses MsgHidePost.
|
|
2704
|
+
* @name MsgUnhidePost
|
|
2705
|
+
* @package sparkdream.forum.v1
|
|
2706
|
+
* @see proto type: sparkdream.forum.v1.MsgUnhidePost
|
|
2707
|
+
*/
|
|
2708
|
+
export declare const MsgUnhidePost: {
|
|
2709
|
+
typeUrl: string;
|
|
2710
|
+
aminoType: string;
|
|
2711
|
+
encode(message: MsgUnhidePost, writer?: BinaryWriter): BinaryWriter;
|
|
2712
|
+
decode(input: BinaryReader | Uint8Array, length?: number): MsgUnhidePost;
|
|
2713
|
+
fromPartial(object: DeepPartial<MsgUnhidePost>): MsgUnhidePost;
|
|
2714
|
+
fromAmino(object: MsgUnhidePostAmino): MsgUnhidePost;
|
|
2715
|
+
toAmino(message: MsgUnhidePost): MsgUnhidePostAmino;
|
|
2716
|
+
fromAminoMsg(object: MsgUnhidePostAminoMsg): MsgUnhidePost;
|
|
2717
|
+
toAminoMsg(message: MsgUnhidePost): MsgUnhidePostAminoMsg;
|
|
2718
|
+
fromProtoMsg(message: MsgUnhidePostProtoMsg): MsgUnhidePost;
|
|
2719
|
+
toProto(message: MsgUnhidePost): Uint8Array;
|
|
2720
|
+
toProtoMsg(message: MsgUnhidePost): MsgUnhidePostProtoMsg;
|
|
2721
|
+
};
|
|
2722
|
+
/**
|
|
2723
|
+
* MsgUnhidePostResponse defines the MsgUnhidePostResponse message.
|
|
2724
|
+
* @name MsgUnhidePostResponse
|
|
2725
|
+
* @package sparkdream.forum.v1
|
|
2726
|
+
* @see proto type: sparkdream.forum.v1.MsgUnhidePostResponse
|
|
2727
|
+
*/
|
|
2728
|
+
export declare const MsgUnhidePostResponse: {
|
|
2729
|
+
typeUrl: string;
|
|
2730
|
+
encode(_: MsgUnhidePostResponse, writer?: BinaryWriter): BinaryWriter;
|
|
2731
|
+
decode(input: BinaryReader | Uint8Array, length?: number): MsgUnhidePostResponse;
|
|
2732
|
+
fromPartial(_: DeepPartial<MsgUnhidePostResponse>): MsgUnhidePostResponse;
|
|
2733
|
+
fromAmino(_: MsgUnhidePostResponseAmino): MsgUnhidePostResponse;
|
|
2734
|
+
toAmino(_: MsgUnhidePostResponse): MsgUnhidePostResponseAmino;
|
|
2735
|
+
fromAminoMsg(object: MsgUnhidePostResponseAminoMsg): MsgUnhidePostResponse;
|
|
2736
|
+
fromProtoMsg(message: MsgUnhidePostResponseProtoMsg): MsgUnhidePostResponse;
|
|
2737
|
+
toProto(message: MsgUnhidePostResponse): Uint8Array;
|
|
2738
|
+
toProtoMsg(message: MsgUnhidePostResponse): MsgUnhidePostResponseProtoMsg;
|
|
2739
|
+
};
|
|
2650
2740
|
/**
|
|
2651
2741
|
* MsgAppealPost defines the MsgAppealPost message.
|
|
2652
2742
|
* @name MsgAppealPost
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
4
|
-
exports.MsgSetModerationPausedResponse = exports.MsgSetModerationPaused = exports.MsgSetForumPausedResponse = exports.MsgSetForumPaused = exports.MsgRejectProposedReplyResponse = exports.MsgRejectProposedReply = exports.MsgConfirmProposedReplyResponse = exports.MsgConfirmProposedReply = exports.MsgMarkAcceptedReplyResponse = exports.MsgMarkAcceptedReply = exports.MsgDisputePinResponse = exports.MsgDisputePin = exports.MsgUnpinReplyResponse = exports.MsgUnpinReply = exports.MsgPinReplyResponse = exports.MsgPinReply = exports.MsgAssignBountyToReplyResponse = exports.MsgAssignBountyToReply = exports.MsgCancelBountyResponse = exports.MsgCancelBounty = void 0;
|
|
3
|
+
exports.MsgAwardBountyResponse = exports.MsgAwardBounty = exports.MsgCreateBountyResponse = exports.MsgCreateBounty = exports.MsgAppealThreadMoveResponse = exports.MsgAppealThreadMove = exports.MsgAppealThreadLockResponse = exports.MsgAppealThreadLock = exports.MsgAppealPostResponse = exports.MsgAppealPost = exports.MsgUnhidePostResponse = exports.MsgUnhidePost = exports.MsgHidePostResponse = exports.MsgHidePost = exports.MsgDismissFlagsResponse = exports.MsgDismissFlags = exports.MsgFlagPostResponse = exports.MsgFlagPost = exports.MsgDownvotePostResponse = exports.MsgDownvotePost = exports.MsgUpvotePostResponse = exports.MsgUpvotePost = exports.MsgUnfollowThreadResponse = exports.MsgUnfollowThread = exports.MsgFollowThreadResponse = exports.MsgFollowThread = exports.MsgMoveThreadResponse = exports.MsgMoveThread = exports.MsgUnlockThreadResponse = exports.MsgUnlockThread = exports.MsgLockThreadResponse = exports.MsgLockThread = exports.MsgUnpinPostResponse = exports.MsgUnpinPost = exports.MsgPinPostResponse = exports.MsgPinPost = exports.MsgUnarchiveThreadResponse = exports.MsgUnarchiveThread = exports.MsgFreezeThreadResponse = exports.MsgFreezeThread = exports.MsgDeletePostResponse = exports.MsgDeletePost = exports.MsgEditPostResponse = exports.MsgEditPost = exports.MsgCreatePostResponse = exports.MsgCreatePost = exports.MsgUpdateOperationalParamsResponse = exports.MsgUpdateOperationalParams = exports.MsgUpdateParamsResponse = exports.MsgUpdateParams = void 0;
|
|
4
|
+
exports.MsgSetModerationPausedResponse = exports.MsgSetModerationPaused = exports.MsgSetForumPausedResponse = exports.MsgSetForumPaused = exports.MsgRejectProposedReplyResponse = exports.MsgRejectProposedReply = exports.MsgConfirmProposedReplyResponse = exports.MsgConfirmProposedReply = exports.MsgMarkAcceptedReplyResponse = exports.MsgMarkAcceptedReply = exports.MsgDisputePinResponse = exports.MsgDisputePin = exports.MsgUnpinReplyResponse = exports.MsgUnpinReply = exports.MsgPinReplyResponse = exports.MsgPinReply = exports.MsgAssignBountyToReplyResponse = exports.MsgAssignBountyToReply = exports.MsgCancelBountyResponse = exports.MsgCancelBounty = exports.MsgIncreaseBountyResponse = exports.MsgIncreaseBounty = void 0;
|
|
5
5
|
//@ts-nocheck
|
|
6
6
|
const params_1 = require("./params");
|
|
7
7
|
const binary_1 = require("../../../binary");
|
|
@@ -2966,6 +2966,150 @@ exports.MsgHidePostResponse = {
|
|
|
2966
2966
|
};
|
|
2967
2967
|
}
|
|
2968
2968
|
};
|
|
2969
|
+
function createBaseMsgUnhidePost() {
|
|
2970
|
+
return {
|
|
2971
|
+
creator: "",
|
|
2972
|
+
postId: BigInt(0)
|
|
2973
|
+
};
|
|
2974
|
+
}
|
|
2975
|
+
/**
|
|
2976
|
+
* MsgUnhidePost reverses MsgHidePost.
|
|
2977
|
+
* @name MsgUnhidePost
|
|
2978
|
+
* @package sparkdream.forum.v1
|
|
2979
|
+
* @see proto type: sparkdream.forum.v1.MsgUnhidePost
|
|
2980
|
+
*/
|
|
2981
|
+
exports.MsgUnhidePost = {
|
|
2982
|
+
typeUrl: "/sparkdream.forum.v1.MsgUnhidePost",
|
|
2983
|
+
aminoType: "sparkdream/x/forum/MsgUnhidePost",
|
|
2984
|
+
encode(message, writer = binary_1.BinaryWriter.create()) {
|
|
2985
|
+
if (message.creator !== "") {
|
|
2986
|
+
writer.uint32(10).string(message.creator);
|
|
2987
|
+
}
|
|
2988
|
+
if (message.postId !== BigInt(0)) {
|
|
2989
|
+
writer.uint32(16).uint64(message.postId);
|
|
2990
|
+
}
|
|
2991
|
+
return writer;
|
|
2992
|
+
},
|
|
2993
|
+
decode(input, length) {
|
|
2994
|
+
const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input);
|
|
2995
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
2996
|
+
const message = createBaseMsgUnhidePost();
|
|
2997
|
+
while (reader.pos < end) {
|
|
2998
|
+
const tag = reader.uint32();
|
|
2999
|
+
switch (tag >>> 3) {
|
|
3000
|
+
case 1:
|
|
3001
|
+
message.creator = reader.string();
|
|
3002
|
+
break;
|
|
3003
|
+
case 2:
|
|
3004
|
+
message.postId = reader.uint64();
|
|
3005
|
+
break;
|
|
3006
|
+
default:
|
|
3007
|
+
reader.skipType(tag & 7);
|
|
3008
|
+
break;
|
|
3009
|
+
}
|
|
3010
|
+
}
|
|
3011
|
+
return message;
|
|
3012
|
+
},
|
|
3013
|
+
fromPartial(object) {
|
|
3014
|
+
const message = createBaseMsgUnhidePost();
|
|
3015
|
+
message.creator = object.creator ?? "";
|
|
3016
|
+
message.postId = object.postId !== undefined && object.postId !== null ? BigInt(object.postId.toString()) : BigInt(0);
|
|
3017
|
+
return message;
|
|
3018
|
+
},
|
|
3019
|
+
fromAmino(object) {
|
|
3020
|
+
const message = createBaseMsgUnhidePost();
|
|
3021
|
+
if (object.creator !== undefined && object.creator !== null) {
|
|
3022
|
+
message.creator = object.creator;
|
|
3023
|
+
}
|
|
3024
|
+
if (object.post_id !== undefined && object.post_id !== null) {
|
|
3025
|
+
message.postId = BigInt(object.post_id);
|
|
3026
|
+
}
|
|
3027
|
+
return message;
|
|
3028
|
+
},
|
|
3029
|
+
toAmino(message) {
|
|
3030
|
+
const obj = {};
|
|
3031
|
+
obj.creator = message.creator === "" ? undefined : message.creator;
|
|
3032
|
+
obj.post_id = message.postId !== BigInt(0) ? message.postId?.toString() : undefined;
|
|
3033
|
+
return obj;
|
|
3034
|
+
},
|
|
3035
|
+
fromAminoMsg(object) {
|
|
3036
|
+
return exports.MsgUnhidePost.fromAmino(object.value);
|
|
3037
|
+
},
|
|
3038
|
+
toAminoMsg(message) {
|
|
3039
|
+
return {
|
|
3040
|
+
type: "sparkdream/x/forum/MsgUnhidePost",
|
|
3041
|
+
value: exports.MsgUnhidePost.toAmino(message)
|
|
3042
|
+
};
|
|
3043
|
+
},
|
|
3044
|
+
fromProtoMsg(message) {
|
|
3045
|
+
return exports.MsgUnhidePost.decode(message.value);
|
|
3046
|
+
},
|
|
3047
|
+
toProto(message) {
|
|
3048
|
+
return exports.MsgUnhidePost.encode(message).finish();
|
|
3049
|
+
},
|
|
3050
|
+
toProtoMsg(message) {
|
|
3051
|
+
return {
|
|
3052
|
+
typeUrl: "/sparkdream.forum.v1.MsgUnhidePost",
|
|
3053
|
+
value: exports.MsgUnhidePost.encode(message).finish()
|
|
3054
|
+
};
|
|
3055
|
+
}
|
|
3056
|
+
};
|
|
3057
|
+
function createBaseMsgUnhidePostResponse() {
|
|
3058
|
+
return {};
|
|
3059
|
+
}
|
|
3060
|
+
/**
|
|
3061
|
+
* MsgUnhidePostResponse defines the MsgUnhidePostResponse message.
|
|
3062
|
+
* @name MsgUnhidePostResponse
|
|
3063
|
+
* @package sparkdream.forum.v1
|
|
3064
|
+
* @see proto type: sparkdream.forum.v1.MsgUnhidePostResponse
|
|
3065
|
+
*/
|
|
3066
|
+
exports.MsgUnhidePostResponse = {
|
|
3067
|
+
typeUrl: "/sparkdream.forum.v1.MsgUnhidePostResponse",
|
|
3068
|
+
encode(_, writer = binary_1.BinaryWriter.create()) {
|
|
3069
|
+
return writer;
|
|
3070
|
+
},
|
|
3071
|
+
decode(input, length) {
|
|
3072
|
+
const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input);
|
|
3073
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
3074
|
+
const message = createBaseMsgUnhidePostResponse();
|
|
3075
|
+
while (reader.pos < end) {
|
|
3076
|
+
const tag = reader.uint32();
|
|
3077
|
+
switch (tag >>> 3) {
|
|
3078
|
+
default:
|
|
3079
|
+
reader.skipType(tag & 7);
|
|
3080
|
+
break;
|
|
3081
|
+
}
|
|
3082
|
+
}
|
|
3083
|
+
return message;
|
|
3084
|
+
},
|
|
3085
|
+
fromPartial(_) {
|
|
3086
|
+
const message = createBaseMsgUnhidePostResponse();
|
|
3087
|
+
return message;
|
|
3088
|
+
},
|
|
3089
|
+
fromAmino(_) {
|
|
3090
|
+
const message = createBaseMsgUnhidePostResponse();
|
|
3091
|
+
return message;
|
|
3092
|
+
},
|
|
3093
|
+
toAmino(_) {
|
|
3094
|
+
const obj = {};
|
|
3095
|
+
return obj;
|
|
3096
|
+
},
|
|
3097
|
+
fromAminoMsg(object) {
|
|
3098
|
+
return exports.MsgUnhidePostResponse.fromAmino(object.value);
|
|
3099
|
+
},
|
|
3100
|
+
fromProtoMsg(message) {
|
|
3101
|
+
return exports.MsgUnhidePostResponse.decode(message.value);
|
|
3102
|
+
},
|
|
3103
|
+
toProto(message) {
|
|
3104
|
+
return exports.MsgUnhidePostResponse.encode(message).finish();
|
|
3105
|
+
},
|
|
3106
|
+
toProtoMsg(message) {
|
|
3107
|
+
return {
|
|
3108
|
+
typeUrl: "/sparkdream.forum.v1.MsgUnhidePostResponse",
|
|
3109
|
+
value: exports.MsgUnhidePostResponse.encode(message).finish()
|
|
3110
|
+
};
|
|
3111
|
+
}
|
|
3112
|
+
};
|
|
2969
3113
|
function createBaseMsgAppealPost() {
|
|
2970
3114
|
return {
|
|
2971
3115
|
creator: "",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { TelescopeGeneratedType } from "../../../types";
|
|
2
2
|
import { Registry } from "@cosmjs/proto-signing";
|
|
3
|
-
import { MsgUpdateParams, MsgUpdateOperationalParams, MsgCreatePost, MsgEditPost, MsgDeletePost, MsgFreezeThread, MsgUnarchiveThread, MsgPinPost, MsgUnpinPost, MsgLockThread, MsgUnlockThread, MsgMoveThread, MsgFollowThread, MsgUnfollowThread, MsgUpvotePost, MsgDownvotePost, MsgFlagPost, MsgDismissFlags, MsgHidePost, MsgAppealPost, MsgAppealThreadLock, MsgAppealThreadMove, MsgCreateBounty, MsgAwardBounty, MsgIncreaseBounty, MsgCancelBounty, MsgAssignBountyToReply, MsgPinReply, MsgUnpinReply, MsgDisputePin, MsgMarkAcceptedReply, MsgConfirmProposedReply, MsgRejectProposedReply, MsgSetForumPaused, MsgSetModerationPaused } from "./tx";
|
|
3
|
+
import { MsgUpdateParams, MsgUpdateOperationalParams, MsgCreatePost, MsgEditPost, MsgDeletePost, MsgFreezeThread, MsgUnarchiveThread, MsgPinPost, MsgUnpinPost, MsgLockThread, MsgUnlockThread, MsgMoveThread, MsgFollowThread, MsgUnfollowThread, MsgUpvotePost, MsgDownvotePost, MsgFlagPost, MsgDismissFlags, MsgHidePost, MsgUnhidePost, MsgAppealPost, MsgAppealThreadLock, MsgAppealThreadMove, MsgCreateBounty, MsgAwardBounty, MsgIncreaseBounty, MsgCancelBounty, MsgAssignBountyToReply, MsgPinReply, MsgUnpinReply, MsgDisputePin, MsgMarkAcceptedReply, MsgConfirmProposedReply, MsgRejectProposedReply, MsgSetForumPaused, MsgSetModerationPaused } from "./tx";
|
|
4
4
|
export declare const registry: ReadonlyArray<[string, TelescopeGeneratedType<any, any, any>]>;
|
|
5
5
|
export declare const load: (protoRegistry: Registry) => void;
|
|
6
6
|
export declare const MessageComposer: {
|
|
@@ -81,6 +81,10 @@ export declare const MessageComposer: {
|
|
|
81
81
|
typeUrl: string;
|
|
82
82
|
value: Uint8Array<ArrayBufferLike>;
|
|
83
83
|
};
|
|
84
|
+
unhidePost(value: MsgUnhidePost): {
|
|
85
|
+
typeUrl: string;
|
|
86
|
+
value: Uint8Array<ArrayBufferLike>;
|
|
87
|
+
};
|
|
84
88
|
appealPost(value: MsgAppealPost): {
|
|
85
89
|
typeUrl: string;
|
|
86
90
|
value: Uint8Array<ArrayBufferLike>;
|
|
@@ -223,6 +227,10 @@ export declare const MessageComposer: {
|
|
|
223
227
|
typeUrl: string;
|
|
224
228
|
value: MsgHidePost;
|
|
225
229
|
};
|
|
230
|
+
unhidePost(value: MsgUnhidePost): {
|
|
231
|
+
typeUrl: string;
|
|
232
|
+
value: MsgUnhidePost;
|
|
233
|
+
};
|
|
226
234
|
appealPost(value: MsgAppealPost): {
|
|
227
235
|
typeUrl: string;
|
|
228
236
|
value: MsgAppealPost;
|
|
@@ -365,6 +373,10 @@ export declare const MessageComposer: {
|
|
|
365
373
|
typeUrl: string;
|
|
366
374
|
value: MsgHidePost;
|
|
367
375
|
};
|
|
376
|
+
unhidePost(value: MsgUnhidePost): {
|
|
377
|
+
typeUrl: string;
|
|
378
|
+
value: MsgUnhidePost;
|
|
379
|
+
};
|
|
368
380
|
appealPost(value: MsgAppealPost): {
|
|
369
381
|
typeUrl: string;
|
|
370
382
|
value: MsgAppealPost;
|
|
@@ -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.forum.v1.MsgUpdateParams", tx_1.MsgUpdateParams], ["/sparkdream.forum.v1.MsgUpdateOperationalParams", tx_1.MsgUpdateOperationalParams], ["/sparkdream.forum.v1.MsgCreatePost", tx_1.MsgCreatePost], ["/sparkdream.forum.v1.MsgEditPost", tx_1.MsgEditPost], ["/sparkdream.forum.v1.MsgDeletePost", tx_1.MsgDeletePost], ["/sparkdream.forum.v1.MsgFreezeThread", tx_1.MsgFreezeThread], ["/sparkdream.forum.v1.MsgUnarchiveThread", tx_1.MsgUnarchiveThread], ["/sparkdream.forum.v1.MsgPinPost", tx_1.MsgPinPost], ["/sparkdream.forum.v1.MsgUnpinPost", tx_1.MsgUnpinPost], ["/sparkdream.forum.v1.MsgLockThread", tx_1.MsgLockThread], ["/sparkdream.forum.v1.MsgUnlockThread", tx_1.MsgUnlockThread], ["/sparkdream.forum.v1.MsgMoveThread", tx_1.MsgMoveThread], ["/sparkdream.forum.v1.MsgFollowThread", tx_1.MsgFollowThread], ["/sparkdream.forum.v1.MsgUnfollowThread", tx_1.MsgUnfollowThread], ["/sparkdream.forum.v1.MsgUpvotePost", tx_1.MsgUpvotePost], ["/sparkdream.forum.v1.MsgDownvotePost", tx_1.MsgDownvotePost], ["/sparkdream.forum.v1.MsgFlagPost", tx_1.MsgFlagPost], ["/sparkdream.forum.v1.MsgDismissFlags", tx_1.MsgDismissFlags], ["/sparkdream.forum.v1.MsgHidePost", tx_1.MsgHidePost], ["/sparkdream.forum.v1.MsgAppealPost", tx_1.MsgAppealPost], ["/sparkdream.forum.v1.MsgAppealThreadLock", tx_1.MsgAppealThreadLock], ["/sparkdream.forum.v1.MsgAppealThreadMove", tx_1.MsgAppealThreadMove], ["/sparkdream.forum.v1.MsgCreateBounty", tx_1.MsgCreateBounty], ["/sparkdream.forum.v1.MsgAwardBounty", tx_1.MsgAwardBounty], ["/sparkdream.forum.v1.MsgIncreaseBounty", tx_1.MsgIncreaseBounty], ["/sparkdream.forum.v1.MsgCancelBounty", tx_1.MsgCancelBounty], ["/sparkdream.forum.v1.MsgAssignBountyToReply", tx_1.MsgAssignBountyToReply], ["/sparkdream.forum.v1.MsgPinReply", tx_1.MsgPinReply], ["/sparkdream.forum.v1.MsgUnpinReply", tx_1.MsgUnpinReply], ["/sparkdream.forum.v1.MsgDisputePin", tx_1.MsgDisputePin], ["/sparkdream.forum.v1.MsgMarkAcceptedReply", tx_1.MsgMarkAcceptedReply], ["/sparkdream.forum.v1.MsgConfirmProposedReply", tx_1.MsgConfirmProposedReply], ["/sparkdream.forum.v1.MsgRejectProposedReply", tx_1.MsgRejectProposedReply], ["/sparkdream.forum.v1.MsgSetForumPaused", tx_1.MsgSetForumPaused], ["/sparkdream.forum.v1.MsgSetModerationPaused", tx_1.MsgSetModerationPaused]];
|
|
5
|
+
exports.registry = [["/sparkdream.forum.v1.MsgUpdateParams", tx_1.MsgUpdateParams], ["/sparkdream.forum.v1.MsgUpdateOperationalParams", tx_1.MsgUpdateOperationalParams], ["/sparkdream.forum.v1.MsgCreatePost", tx_1.MsgCreatePost], ["/sparkdream.forum.v1.MsgEditPost", tx_1.MsgEditPost], ["/sparkdream.forum.v1.MsgDeletePost", tx_1.MsgDeletePost], ["/sparkdream.forum.v1.MsgFreezeThread", tx_1.MsgFreezeThread], ["/sparkdream.forum.v1.MsgUnarchiveThread", tx_1.MsgUnarchiveThread], ["/sparkdream.forum.v1.MsgPinPost", tx_1.MsgPinPost], ["/sparkdream.forum.v1.MsgUnpinPost", tx_1.MsgUnpinPost], ["/sparkdream.forum.v1.MsgLockThread", tx_1.MsgLockThread], ["/sparkdream.forum.v1.MsgUnlockThread", tx_1.MsgUnlockThread], ["/sparkdream.forum.v1.MsgMoveThread", tx_1.MsgMoveThread], ["/sparkdream.forum.v1.MsgFollowThread", tx_1.MsgFollowThread], ["/sparkdream.forum.v1.MsgUnfollowThread", tx_1.MsgUnfollowThread], ["/sparkdream.forum.v1.MsgUpvotePost", tx_1.MsgUpvotePost], ["/sparkdream.forum.v1.MsgDownvotePost", tx_1.MsgDownvotePost], ["/sparkdream.forum.v1.MsgFlagPost", tx_1.MsgFlagPost], ["/sparkdream.forum.v1.MsgDismissFlags", tx_1.MsgDismissFlags], ["/sparkdream.forum.v1.MsgHidePost", tx_1.MsgHidePost], ["/sparkdream.forum.v1.MsgUnhidePost", tx_1.MsgUnhidePost], ["/sparkdream.forum.v1.MsgAppealPost", tx_1.MsgAppealPost], ["/sparkdream.forum.v1.MsgAppealThreadLock", tx_1.MsgAppealThreadLock], ["/sparkdream.forum.v1.MsgAppealThreadMove", tx_1.MsgAppealThreadMove], ["/sparkdream.forum.v1.MsgCreateBounty", tx_1.MsgCreateBounty], ["/sparkdream.forum.v1.MsgAwardBounty", tx_1.MsgAwardBounty], ["/sparkdream.forum.v1.MsgIncreaseBounty", tx_1.MsgIncreaseBounty], ["/sparkdream.forum.v1.MsgCancelBounty", tx_1.MsgCancelBounty], ["/sparkdream.forum.v1.MsgAssignBountyToReply", tx_1.MsgAssignBountyToReply], ["/sparkdream.forum.v1.MsgPinReply", tx_1.MsgPinReply], ["/sparkdream.forum.v1.MsgUnpinReply", tx_1.MsgUnpinReply], ["/sparkdream.forum.v1.MsgDisputePin", tx_1.MsgDisputePin], ["/sparkdream.forum.v1.MsgMarkAcceptedReply", tx_1.MsgMarkAcceptedReply], ["/sparkdream.forum.v1.MsgConfirmProposedReply", tx_1.MsgConfirmProposedReply], ["/sparkdream.forum.v1.MsgRejectProposedReply", tx_1.MsgRejectProposedReply], ["/sparkdream.forum.v1.MsgSetForumPaused", tx_1.MsgSetForumPaused], ["/sparkdream.forum.v1.MsgSetModerationPaused", tx_1.MsgSetModerationPaused]];
|
|
6
6
|
const load = (protoRegistry) => {
|
|
7
7
|
exports.registry.forEach(([typeUrl, mod]) => {
|
|
8
8
|
protoRegistry.register(typeUrl, mod);
|
|
@@ -125,6 +125,12 @@ exports.MessageComposer = {
|
|
|
125
125
|
value: tx_1.MsgHidePost.encode(value).finish()
|
|
126
126
|
};
|
|
127
127
|
},
|
|
128
|
+
unhidePost(value) {
|
|
129
|
+
return {
|
|
130
|
+
typeUrl: "/sparkdream.forum.v1.MsgUnhidePost",
|
|
131
|
+
value: tx_1.MsgUnhidePost.encode(value).finish()
|
|
132
|
+
};
|
|
133
|
+
},
|
|
128
134
|
appealPost(value) {
|
|
129
135
|
return {
|
|
130
136
|
typeUrl: "/sparkdream.forum.v1.MsgAppealPost",
|
|
@@ -337,6 +343,12 @@ exports.MessageComposer = {
|
|
|
337
343
|
value
|
|
338
344
|
};
|
|
339
345
|
},
|
|
346
|
+
unhidePost(value) {
|
|
347
|
+
return {
|
|
348
|
+
typeUrl: "/sparkdream.forum.v1.MsgUnhidePost",
|
|
349
|
+
value
|
|
350
|
+
};
|
|
351
|
+
},
|
|
340
352
|
appealPost(value) {
|
|
341
353
|
return {
|
|
342
354
|
typeUrl: "/sparkdream.forum.v1.MsgAppealPost",
|
|
@@ -549,6 +561,12 @@ exports.MessageComposer = {
|
|
|
549
561
|
value: tx_1.MsgHidePost.fromPartial(value)
|
|
550
562
|
};
|
|
551
563
|
},
|
|
564
|
+
unhidePost(value) {
|
|
565
|
+
return {
|
|
566
|
+
typeUrl: "/sparkdream.forum.v1.MsgUnhidePost",
|
|
567
|
+
value: tx_1.MsgUnhidePost.fromPartial(value)
|
|
568
|
+
};
|
|
569
|
+
},
|
|
552
570
|
appealPost(value) {
|
|
553
571
|
return {
|
|
554
572
|
typeUrl: "/sparkdream.forum.v1.MsgAppealPost",
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { TxRpc } from "../../../types";
|
|
2
|
-
import { MsgUpdateParams, MsgUpdateParamsResponse, MsgUpdateOperationalParams, MsgUpdateOperationalParamsResponse, MsgCreatePost, MsgCreatePostResponse, MsgEditPost, MsgEditPostResponse, MsgDeletePost, MsgDeletePostResponse, MsgFreezeThread, MsgFreezeThreadResponse, MsgUnarchiveThread, MsgUnarchiveThreadResponse, MsgPinPost, MsgPinPostResponse, MsgUnpinPost, MsgUnpinPostResponse, MsgLockThread, MsgLockThreadResponse, MsgUnlockThread, MsgUnlockThreadResponse, MsgMoveThread, MsgMoveThreadResponse, MsgFollowThread, MsgFollowThreadResponse, MsgUnfollowThread, MsgUnfollowThreadResponse, MsgUpvotePost, MsgUpvotePostResponse, MsgDownvotePost, MsgDownvotePostResponse, MsgFlagPost, MsgFlagPostResponse, MsgDismissFlags, MsgDismissFlagsResponse, MsgHidePost, MsgHidePostResponse, MsgAppealPost, MsgAppealPostResponse, MsgAppealThreadLock, MsgAppealThreadLockResponse, MsgAppealThreadMove, MsgAppealThreadMoveResponse, MsgCreateBounty, MsgCreateBountyResponse, MsgAwardBounty, MsgAwardBountyResponse, MsgIncreaseBounty, MsgIncreaseBountyResponse, MsgCancelBounty, MsgCancelBountyResponse, MsgAssignBountyToReply, MsgAssignBountyToReplyResponse, MsgPinReply, MsgPinReplyResponse, MsgUnpinReply, MsgUnpinReplyResponse, MsgDisputePin, MsgDisputePinResponse, MsgMarkAcceptedReply, MsgMarkAcceptedReplyResponse, MsgConfirmProposedReply, MsgConfirmProposedReplyResponse, MsgRejectProposedReply, MsgRejectProposedReplyResponse, MsgSetForumPaused, MsgSetForumPausedResponse, MsgSetModerationPaused, MsgSetModerationPausedResponse } from "./tx";
|
|
2
|
+
import { MsgUpdateParams, MsgUpdateParamsResponse, MsgUpdateOperationalParams, MsgUpdateOperationalParamsResponse, MsgCreatePost, MsgCreatePostResponse, MsgEditPost, MsgEditPostResponse, MsgDeletePost, MsgDeletePostResponse, MsgFreezeThread, MsgFreezeThreadResponse, MsgUnarchiveThread, MsgUnarchiveThreadResponse, MsgPinPost, MsgPinPostResponse, MsgUnpinPost, MsgUnpinPostResponse, MsgLockThread, MsgLockThreadResponse, MsgUnlockThread, MsgUnlockThreadResponse, MsgMoveThread, MsgMoveThreadResponse, MsgFollowThread, MsgFollowThreadResponse, MsgUnfollowThread, MsgUnfollowThreadResponse, MsgUpvotePost, MsgUpvotePostResponse, MsgDownvotePost, MsgDownvotePostResponse, MsgFlagPost, MsgFlagPostResponse, MsgDismissFlags, MsgDismissFlagsResponse, MsgHidePost, MsgHidePostResponse, MsgUnhidePost, MsgUnhidePostResponse, MsgAppealPost, MsgAppealPostResponse, MsgAppealThreadLock, MsgAppealThreadLockResponse, MsgAppealThreadMove, MsgAppealThreadMoveResponse, MsgCreateBounty, MsgCreateBountyResponse, MsgAwardBounty, MsgAwardBountyResponse, MsgIncreaseBounty, MsgIncreaseBountyResponse, MsgCancelBounty, MsgCancelBountyResponse, MsgAssignBountyToReply, MsgAssignBountyToReplyResponse, MsgPinReply, MsgPinReplyResponse, MsgUnpinReply, MsgUnpinReplyResponse, MsgDisputePin, MsgDisputePinResponse, MsgMarkAcceptedReply, MsgMarkAcceptedReplyResponse, MsgConfirmProposedReply, MsgConfirmProposedReplyResponse, MsgRejectProposedReply, MsgRejectProposedReplyResponse, MsgSetForumPaused, MsgSetForumPausedResponse, MsgSetModerationPaused, MsgSetModerationPausedResponse } from "./tx";
|
|
3
3
|
/** Msg defines the Msg service. */
|
|
4
4
|
export interface Msg {
|
|
5
5
|
/**
|
|
@@ -46,6 +46,15 @@ export interface Msg {
|
|
|
46
46
|
dismissFlags(request: MsgDismissFlags): Promise<MsgDismissFlagsResponse>;
|
|
47
47
|
/** HidePost defines the HidePost RPC. */
|
|
48
48
|
hidePost(request: MsgHidePost): Promise<MsgHidePostResponse>;
|
|
49
|
+
/**
|
|
50
|
+
* UnhidePost reverses a prior MsgHidePost. Authorized for (a) the sentinel
|
|
51
|
+
* who originally hid the post, but only within sentinel_unhide_window
|
|
52
|
+
* seconds of the hide (self-correction grace window analogous to the
|
|
53
|
+
* edit_max_window for authors); and (b) the Commons Operations Committee
|
|
54
|
+
* / governance at any time (council override). Refuses if the post's
|
|
55
|
+
* parent category has since been deleted (dangling reference guard).
|
|
56
|
+
*/
|
|
57
|
+
unhidePost(request: MsgUnhidePost): Promise<MsgUnhidePostResponse>;
|
|
49
58
|
/** AppealPost defines the AppealPost RPC. */
|
|
50
59
|
appealPost(request: MsgAppealPost): Promise<MsgAppealPostResponse>;
|
|
51
60
|
/** AppealThreadLock defines the AppealThreadLock RPC. */
|
|
@@ -101,6 +110,7 @@ export declare class MsgClientImpl implements Msg {
|
|
|
101
110
|
flagPost: (request: MsgFlagPost) => Promise<MsgFlagPostResponse>;
|
|
102
111
|
dismissFlags: (request: MsgDismissFlags) => Promise<MsgDismissFlagsResponse>;
|
|
103
112
|
hidePost: (request: MsgHidePost) => Promise<MsgHidePostResponse>;
|
|
113
|
+
unhidePost: (request: MsgUnhidePost) => Promise<MsgUnhidePostResponse>;
|
|
104
114
|
appealPost: (request: MsgAppealPost) => Promise<MsgAppealPostResponse>;
|
|
105
115
|
appealThreadLock: (request: MsgAppealThreadLock) => Promise<MsgAppealThreadLockResponse>;
|
|
106
116
|
appealThreadMove: (request: MsgAppealThreadMove) => Promise<MsgAppealThreadMoveResponse>;
|
|
@@ -124,6 +124,17 @@ class MsgClientImpl {
|
|
|
124
124
|
const promise = this.rpc.request("sparkdream.forum.v1.Msg", "HidePost", data);
|
|
125
125
|
return promise.then(data => tx_1.MsgHidePostResponse.decode(new binary_1.BinaryReader(data)));
|
|
126
126
|
};
|
|
127
|
+
/* UnhidePost reverses a prior MsgHidePost. Authorized for (a) the sentinel
|
|
128
|
+
who originally hid the post, but only within sentinel_unhide_window
|
|
129
|
+
seconds of the hide (self-correction grace window analogous to the
|
|
130
|
+
edit_max_window for authors); and (b) the Commons Operations Committee
|
|
131
|
+
/ governance at any time (council override). Refuses if the post's
|
|
132
|
+
parent category has since been deleted (dangling reference guard). */
|
|
133
|
+
unhidePost = async (request) => {
|
|
134
|
+
const data = tx_1.MsgUnhidePost.encode(request).finish();
|
|
135
|
+
const promise = this.rpc.request("sparkdream.forum.v1.Msg", "UnhidePost", data);
|
|
136
|
+
return promise.then(data => tx_1.MsgUnhidePostResponse.decode(new binary_1.BinaryReader(data)));
|
|
137
|
+
};
|
|
127
138
|
/* AppealPost defines the AppealPost RPC. */
|
|
128
139
|
appealPost = async (request) => {
|
|
129
140
|
const data = tx_1.MsgAppealPost.encode(request).finish();
|
|
@@ -349,6 +349,25 @@ export interface Params {
|
|
|
349
349
|
* resets at the first MintDREAM of each new epoch. 0 = unbounded.
|
|
350
350
|
*/
|
|
351
351
|
maxDreamMintPerEpoch: string;
|
|
352
|
+
/**
|
|
353
|
+
* Absolute upper bound on requested_budget at proposal time. Distinct from
|
|
354
|
+
* large_project_budget_threshold (which is an approval-time routing rule):
|
|
355
|
+
* this is a hard cap that rejects nonsense values (e.g. 10^30 DREAM) and
|
|
356
|
+
* keeps state clean. Set well above any legitimate project size so council-
|
|
357
|
+
* gated large proposals are not blocked. Must be positive.
|
|
358
|
+
*/
|
|
359
|
+
maxProjectRequestedBudget: string;
|
|
360
|
+
/**
|
|
361
|
+
* Absolute upper bound on requested_spark at proposal time. Same role as
|
|
362
|
+
* max_project_requested_budget but for SPARK (uspark). Must be positive.
|
|
363
|
+
*/
|
|
364
|
+
maxProjectRequestedSpark: string;
|
|
365
|
+
/**
|
|
366
|
+
* Number of blocks a PROPOSED (non-permissionless) project stays open before
|
|
367
|
+
* the EndBlocker transitions it to PROJECT_STATUS_EXPIRED. Prevents state
|
|
368
|
+
* pollution by stale unapproved proposals. Must be positive.
|
|
369
|
+
*/
|
|
370
|
+
proposedProjectExpiryBlocks: bigint;
|
|
352
371
|
}
|
|
353
372
|
export interface ParamsProtoMsg {
|
|
354
373
|
typeUrl: "/sparkdream.rep.v1.Params";
|
|
@@ -613,6 +632,25 @@ export interface ParamsAmino {
|
|
|
613
632
|
* resets at the first MintDREAM of each new epoch. 0 = unbounded.
|
|
614
633
|
*/
|
|
615
634
|
max_dream_mint_per_epoch?: string;
|
|
635
|
+
/**
|
|
636
|
+
* Absolute upper bound on requested_budget at proposal time. Distinct from
|
|
637
|
+
* large_project_budget_threshold (which is an approval-time routing rule):
|
|
638
|
+
* this is a hard cap that rejects nonsense values (e.g. 10^30 DREAM) and
|
|
639
|
+
* keeps state clean. Set well above any legitimate project size so council-
|
|
640
|
+
* gated large proposals are not blocked. Must be positive.
|
|
641
|
+
*/
|
|
642
|
+
max_project_requested_budget?: string;
|
|
643
|
+
/**
|
|
644
|
+
* Absolute upper bound on requested_spark at proposal time. Same role as
|
|
645
|
+
* max_project_requested_budget but for SPARK (uspark). Must be positive.
|
|
646
|
+
*/
|
|
647
|
+
max_project_requested_spark?: string;
|
|
648
|
+
/**
|
|
649
|
+
* Number of blocks a PROPOSED (non-permissionless) project stays open before
|
|
650
|
+
* the EndBlocker transitions it to PROJECT_STATUS_EXPIRED. Prevents state
|
|
651
|
+
* pollution by stale unapproved proposals. Must be positive.
|
|
652
|
+
*/
|
|
653
|
+
proposed_project_expiry_blocks?: string;
|
|
616
654
|
}
|
|
617
655
|
export interface ParamsAminoMsg {
|
|
618
656
|
type: "sparkdream/x/rep/Params";
|
|
@@ -801,6 +839,13 @@ export interface RepOperationalParams {
|
|
|
801
839
|
* Global per-epoch DREAM minting cap (mirrors Params.max_dream_mint_per_epoch). 0 = unbounded.
|
|
802
840
|
*/
|
|
803
841
|
maxDreamMintPerEpoch: string;
|
|
842
|
+
/**
|
|
843
|
+
* Proposal-time hard caps and expiry (mirror Params.max_project_requested_*
|
|
844
|
+
* and Params.proposed_project_expiry_blocks).
|
|
845
|
+
*/
|
|
846
|
+
maxProjectRequestedBudget: string;
|
|
847
|
+
maxProjectRequestedSpark: string;
|
|
848
|
+
proposedProjectExpiryBlocks: bigint;
|
|
804
849
|
}
|
|
805
850
|
export interface RepOperationalParamsProtoMsg {
|
|
806
851
|
typeUrl: "/sparkdream.rep.v1.RepOperationalParams";
|
|
@@ -989,6 +1034,13 @@ export interface RepOperationalParamsAmino {
|
|
|
989
1034
|
* Global per-epoch DREAM minting cap (mirrors Params.max_dream_mint_per_epoch). 0 = unbounded.
|
|
990
1035
|
*/
|
|
991
1036
|
max_dream_mint_per_epoch?: string;
|
|
1037
|
+
/**
|
|
1038
|
+
* Proposal-time hard caps and expiry (mirror Params.max_project_requested_*
|
|
1039
|
+
* and Params.proposed_project_expiry_blocks).
|
|
1040
|
+
*/
|
|
1041
|
+
max_project_requested_budget?: string;
|
|
1042
|
+
max_project_requested_spark?: string;
|
|
1043
|
+
proposed_project_expiry_blocks?: string;
|
|
992
1044
|
}
|
|
993
1045
|
export interface RepOperationalParamsAminoMsg {
|
|
994
1046
|
type: "sparkdream/x/rep/RepOperationalParams";
|
|
@@ -410,7 +410,10 @@ function createBaseParams() {
|
|
|
410
410
|
minAppealRate: "",
|
|
411
411
|
maxActiveInitiativesPerMember: 0,
|
|
412
412
|
maxActiveInterimsPerMember: 0,
|
|
413
|
-
maxDreamMintPerEpoch: ""
|
|
413
|
+
maxDreamMintPerEpoch: "",
|
|
414
|
+
maxProjectRequestedBudget: "",
|
|
415
|
+
maxProjectRequestedSpark: "",
|
|
416
|
+
proposedProjectExpiryBlocks: BigInt(0)
|
|
414
417
|
};
|
|
415
418
|
}
|
|
416
419
|
/**
|
|
@@ -684,6 +687,15 @@ exports.Params = {
|
|
|
684
687
|
if (message.maxDreamMintPerEpoch !== "") {
|
|
685
688
|
writer.uint32(698).string(message.maxDreamMintPerEpoch);
|
|
686
689
|
}
|
|
690
|
+
if (message.maxProjectRequestedBudget !== "") {
|
|
691
|
+
writer.uint32(706).string(message.maxProjectRequestedBudget);
|
|
692
|
+
}
|
|
693
|
+
if (message.maxProjectRequestedSpark !== "") {
|
|
694
|
+
writer.uint32(714).string(message.maxProjectRequestedSpark);
|
|
695
|
+
}
|
|
696
|
+
if (message.proposedProjectExpiryBlocks !== BigInt(0)) {
|
|
697
|
+
writer.uint32(720).int64(message.proposedProjectExpiryBlocks);
|
|
698
|
+
}
|
|
687
699
|
return writer;
|
|
688
700
|
},
|
|
689
701
|
decode(input, length) {
|
|
@@ -954,6 +966,15 @@ exports.Params = {
|
|
|
954
966
|
case 87:
|
|
955
967
|
message.maxDreamMintPerEpoch = reader.string();
|
|
956
968
|
break;
|
|
969
|
+
case 88:
|
|
970
|
+
message.maxProjectRequestedBudget = reader.string();
|
|
971
|
+
break;
|
|
972
|
+
case 89:
|
|
973
|
+
message.maxProjectRequestedSpark = reader.string();
|
|
974
|
+
break;
|
|
975
|
+
case 90:
|
|
976
|
+
message.proposedProjectExpiryBlocks = reader.int64();
|
|
977
|
+
break;
|
|
957
978
|
default:
|
|
958
979
|
reader.skipType(tag & 7);
|
|
959
980
|
break;
|
|
@@ -1050,6 +1071,9 @@ exports.Params = {
|
|
|
1050
1071
|
message.maxActiveInitiativesPerMember = object.maxActiveInitiativesPerMember ?? 0;
|
|
1051
1072
|
message.maxActiveInterimsPerMember = object.maxActiveInterimsPerMember ?? 0;
|
|
1052
1073
|
message.maxDreamMintPerEpoch = object.maxDreamMintPerEpoch ?? "";
|
|
1074
|
+
message.maxProjectRequestedBudget = object.maxProjectRequestedBudget ?? "";
|
|
1075
|
+
message.maxProjectRequestedSpark = object.maxProjectRequestedSpark ?? "";
|
|
1076
|
+
message.proposedProjectExpiryBlocks = object.proposedProjectExpiryBlocks !== undefined && object.proposedProjectExpiryBlocks !== null ? BigInt(object.proposedProjectExpiryBlocks.toString()) : BigInt(0);
|
|
1053
1077
|
return message;
|
|
1054
1078
|
},
|
|
1055
1079
|
fromAmino(object) {
|
|
@@ -1315,6 +1339,15 @@ exports.Params = {
|
|
|
1315
1339
|
if (object.max_dream_mint_per_epoch !== undefined && object.max_dream_mint_per_epoch !== null) {
|
|
1316
1340
|
message.maxDreamMintPerEpoch = object.max_dream_mint_per_epoch;
|
|
1317
1341
|
}
|
|
1342
|
+
if (object.max_project_requested_budget !== undefined && object.max_project_requested_budget !== null) {
|
|
1343
|
+
message.maxProjectRequestedBudget = object.max_project_requested_budget;
|
|
1344
|
+
}
|
|
1345
|
+
if (object.max_project_requested_spark !== undefined && object.max_project_requested_spark !== null) {
|
|
1346
|
+
message.maxProjectRequestedSpark = object.max_project_requested_spark;
|
|
1347
|
+
}
|
|
1348
|
+
if (object.proposed_project_expiry_blocks !== undefined && object.proposed_project_expiry_blocks !== null) {
|
|
1349
|
+
message.proposedProjectExpiryBlocks = BigInt(object.proposed_project_expiry_blocks);
|
|
1350
|
+
}
|
|
1318
1351
|
return message;
|
|
1319
1352
|
},
|
|
1320
1353
|
toAmino(message) {
|
|
@@ -1406,6 +1439,9 @@ exports.Params = {
|
|
|
1406
1439
|
obj.max_active_initiatives_per_member = message.maxActiveInitiativesPerMember === 0 ? undefined : message.maxActiveInitiativesPerMember;
|
|
1407
1440
|
obj.max_active_interims_per_member = message.maxActiveInterimsPerMember === 0 ? undefined : message.maxActiveInterimsPerMember;
|
|
1408
1441
|
obj.max_dream_mint_per_epoch = message.maxDreamMintPerEpoch === "" ? undefined : message.maxDreamMintPerEpoch;
|
|
1442
|
+
obj.max_project_requested_budget = message.maxProjectRequestedBudget === "" ? undefined : message.maxProjectRequestedBudget;
|
|
1443
|
+
obj.max_project_requested_spark = message.maxProjectRequestedSpark === "" ? undefined : message.maxProjectRequestedSpark;
|
|
1444
|
+
obj.proposed_project_expiry_blocks = message.proposedProjectExpiryBlocks !== BigInt(0) ? message.proposedProjectExpiryBlocks?.toString() : undefined;
|
|
1409
1445
|
return obj;
|
|
1410
1446
|
},
|
|
1411
1447
|
fromAminoMsg(object) {
|
|
@@ -1502,7 +1538,10 @@ function createBaseRepOperationalParams() {
|
|
|
1502
1538
|
minAppealRate: "",
|
|
1503
1539
|
maxActiveInitiativesPerMember: 0,
|
|
1504
1540
|
maxActiveInterimsPerMember: 0,
|
|
1505
|
-
maxDreamMintPerEpoch: ""
|
|
1541
|
+
maxDreamMintPerEpoch: "",
|
|
1542
|
+
maxProjectRequestedBudget: "",
|
|
1543
|
+
maxProjectRequestedSpark: "",
|
|
1544
|
+
proposedProjectExpiryBlocks: BigInt(0)
|
|
1506
1545
|
};
|
|
1507
1546
|
}
|
|
1508
1547
|
/**
|
|
@@ -1730,6 +1769,15 @@ exports.RepOperationalParams = {
|
|
|
1730
1769
|
if (message.maxDreamMintPerEpoch !== "") {
|
|
1731
1770
|
writer.uint32(570).string(message.maxDreamMintPerEpoch);
|
|
1732
1771
|
}
|
|
1772
|
+
if (message.maxProjectRequestedBudget !== "") {
|
|
1773
|
+
writer.uint32(578).string(message.maxProjectRequestedBudget);
|
|
1774
|
+
}
|
|
1775
|
+
if (message.maxProjectRequestedSpark !== "") {
|
|
1776
|
+
writer.uint32(586).string(message.maxProjectRequestedSpark);
|
|
1777
|
+
}
|
|
1778
|
+
if (message.proposedProjectExpiryBlocks !== BigInt(0)) {
|
|
1779
|
+
writer.uint32(592).int64(message.proposedProjectExpiryBlocks);
|
|
1780
|
+
}
|
|
1733
1781
|
return writer;
|
|
1734
1782
|
},
|
|
1735
1783
|
decode(input, length) {
|
|
@@ -1952,6 +2000,15 @@ exports.RepOperationalParams = {
|
|
|
1952
2000
|
case 71:
|
|
1953
2001
|
message.maxDreamMintPerEpoch = reader.string();
|
|
1954
2002
|
break;
|
|
2003
|
+
case 72:
|
|
2004
|
+
message.maxProjectRequestedBudget = reader.string();
|
|
2005
|
+
break;
|
|
2006
|
+
case 73:
|
|
2007
|
+
message.maxProjectRequestedSpark = reader.string();
|
|
2008
|
+
break;
|
|
2009
|
+
case 74:
|
|
2010
|
+
message.proposedProjectExpiryBlocks = reader.int64();
|
|
2011
|
+
break;
|
|
1955
2012
|
default:
|
|
1956
2013
|
reader.skipType(tag & 7);
|
|
1957
2014
|
break;
|
|
@@ -2032,6 +2089,9 @@ exports.RepOperationalParams = {
|
|
|
2032
2089
|
message.maxActiveInitiativesPerMember = object.maxActiveInitiativesPerMember ?? 0;
|
|
2033
2090
|
message.maxActiveInterimsPerMember = object.maxActiveInterimsPerMember ?? 0;
|
|
2034
2091
|
message.maxDreamMintPerEpoch = object.maxDreamMintPerEpoch ?? "";
|
|
2092
|
+
message.maxProjectRequestedBudget = object.maxProjectRequestedBudget ?? "";
|
|
2093
|
+
message.maxProjectRequestedSpark = object.maxProjectRequestedSpark ?? "";
|
|
2094
|
+
message.proposedProjectExpiryBlocks = object.proposedProjectExpiryBlocks !== undefined && object.proposedProjectExpiryBlocks !== null ? BigInt(object.proposedProjectExpiryBlocks.toString()) : BigInt(0);
|
|
2035
2095
|
return message;
|
|
2036
2096
|
},
|
|
2037
2097
|
fromAmino(object) {
|
|
@@ -2249,6 +2309,15 @@ exports.RepOperationalParams = {
|
|
|
2249
2309
|
if (object.max_dream_mint_per_epoch !== undefined && object.max_dream_mint_per_epoch !== null) {
|
|
2250
2310
|
message.maxDreamMintPerEpoch = object.max_dream_mint_per_epoch;
|
|
2251
2311
|
}
|
|
2312
|
+
if (object.max_project_requested_budget !== undefined && object.max_project_requested_budget !== null) {
|
|
2313
|
+
message.maxProjectRequestedBudget = object.max_project_requested_budget;
|
|
2314
|
+
}
|
|
2315
|
+
if (object.max_project_requested_spark !== undefined && object.max_project_requested_spark !== null) {
|
|
2316
|
+
message.maxProjectRequestedSpark = object.max_project_requested_spark;
|
|
2317
|
+
}
|
|
2318
|
+
if (object.proposed_project_expiry_blocks !== undefined && object.proposed_project_expiry_blocks !== null) {
|
|
2319
|
+
message.proposedProjectExpiryBlocks = BigInt(object.proposed_project_expiry_blocks);
|
|
2320
|
+
}
|
|
2252
2321
|
return message;
|
|
2253
2322
|
},
|
|
2254
2323
|
toAmino(message) {
|
|
@@ -2324,6 +2393,9 @@ exports.RepOperationalParams = {
|
|
|
2324
2393
|
obj.max_active_initiatives_per_member = message.maxActiveInitiativesPerMember === 0 ? undefined : message.maxActiveInitiativesPerMember;
|
|
2325
2394
|
obj.max_active_interims_per_member = message.maxActiveInterimsPerMember === 0 ? undefined : message.maxActiveInterimsPerMember;
|
|
2326
2395
|
obj.max_dream_mint_per_epoch = message.maxDreamMintPerEpoch === "" ? undefined : message.maxDreamMintPerEpoch;
|
|
2396
|
+
obj.max_project_requested_budget = message.maxProjectRequestedBudget === "" ? undefined : message.maxProjectRequestedBudget;
|
|
2397
|
+
obj.max_project_requested_spark = message.maxProjectRequestedSpark === "" ? undefined : message.maxProjectRequestedSpark;
|
|
2398
|
+
obj.proposed_project_expiry_blocks = message.proposedProjectExpiryBlocks !== BigInt(0) ? message.proposedProjectExpiryBlocks?.toString() : undefined;
|
|
2327
2399
|
return obj;
|
|
2328
2400
|
},
|
|
2329
2401
|
fromAminoMsg(object) {
|