@sparkdreamnft/sparkdreamjs 0.0.43 → 0.0.44
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/cosmos/bundle.d.ts +160 -160
- package/cosmos/bundle.js +182 -182
- package/esm/akash/bundle.js +150 -150
- package/esm/cosmos/bundle.js +182 -182
- package/esm/ibc/bundle.js +116 -116
- package/esm/sparkdream/artifact/module/v1/module.js +71 -0
- package/esm/sparkdream/artifact/v1/genesis.js +279 -0
- package/esm/sparkdream/artifact/v1/params.js +645 -0
- package/esm/sparkdream/artifact/v1/query.js +3415 -0
- package/esm/sparkdream/artifact/v1/query.lcd.js +159 -0
- package/esm/sparkdream/artifact/v1/query.rpc.Query.js +188 -0
- package/esm/sparkdream/artifact/v1/tx.amino.js +159 -0
- package/esm/sparkdream/artifact/v1/tx.js +5751 -0
- package/esm/sparkdream/artifact/v1/tx.registry.js +573 -0
- package/esm/sparkdream/artifact/v1/tx.rpc.msg.js +199 -0
- package/esm/sparkdream/artifact/v1/types.js +2603 -0
- package/esm/sparkdream/blog/v1/params.js +37 -1
- package/esm/sparkdream/blog/v1/post.js +38 -1
- package/esm/sparkdream/blog/v1/query.js +351 -0
- package/esm/sparkdream/blog/v1/query.lcd.js +12 -0
- package/esm/sparkdream/blog/v1/query.rpc.Query.js +21 -1
- package/esm/sparkdream/blog/v1/types.js +38 -1
- package/esm/sparkdream/bundle.js +521 -483
- package/esm/sparkdream/client.js +4 -1
- package/esm/sparkdream/collect/v1/params.js +102 -126
- package/esm/sparkdream/collect/v1/types.js +207 -123
- package/esm/sparkdream/common/v1/media_flag.js +63 -0
- package/esm/sparkdream/common/v1/moderation_reason.js +1 -1
- package/esm/sparkdream/commons/v1/query.js +27 -3
- package/esm/sparkdream/federation/v1/packet.js +13 -1
- package/esm/sparkdream/federation/v1/query.js +163 -0
- package/esm/sparkdream/federation/v1/query.lcd.js +7 -0
- package/esm/sparkdream/federation/v1/query.rpc.Query.js +12 -1
- package/esm/sparkdream/federation/v1/tx.js +13 -1
- package/esm/sparkdream/federation/v1/types.js +37 -1
- package/esm/sparkdream/forum/v1/params.js +37 -1
- package/esm/sparkdream/forum/v1/post.js +38 -1
- package/esm/sparkdream/forum/v1/query.js +176 -0
- package/esm/sparkdream/forum/v1/query.lcd.js +7 -0
- package/esm/sparkdream/forum/v1/query.rpc.Query.js +12 -1
- package/esm/sparkdream/lcd.js +5 -0
- package/esm/sparkdream/rep/v1/accountability.js +22 -0
- package/esm/sparkdream/rep/v1/genesis.js +18 -2
- package/esm/sparkdream/rep/v1/initiative_bounty.js +200 -0
- package/esm/sparkdream/rep/v1/member.js +97 -35
- package/esm/sparkdream/rep/v1/params.js +186 -66
- package/esm/sparkdream/rep/v1/query.js +530 -0
- package/esm/sparkdream/rep/v1/query.lcd.js +23 -0
- package/esm/sparkdream/rep/v1/query.rpc.Query.js +26 -1
- package/esm/sparkdream/rep/v1/tx.js +354 -7
- package/esm/sparkdream/rep/v1/tx.registry.js +38 -2
- package/esm/sparkdream/rep/v1/tx.rpc.msg.js +13 -1
- package/esm/sparkdream/rpc.query.js +3 -0
- package/esm/sparkdream/rpc.tx.js +3 -0
- package/esm/sparkdream/service/v1/checkpoint.js +125 -0
- package/esm/sparkdream/service/v1/genesis.js +17 -1
- package/esm/sparkdream/service/v1/query.js +317 -0
- package/esm/sparkdream/service/v1/query.lcd.js +18 -0
- package/esm/sparkdream/service/v1/query.rpc.Query.js +21 -1
- package/esm/sparkdream/service/v1/service_type_config.js +37 -1
- package/esm/sparkdream/service/v1/tx.amino.js +6 -1
- package/esm/sparkdream/service/v1/tx.js +169 -0
- package/esm/sparkdream/service/v1/tx.registry.js +20 -2
- package/esm/sparkdream/service/v1/tx.rpc.msg.js +10 -1
- package/esm/sparkdream/shield/v1/params.js +13 -1
- package/esm/sparkdream/shield/v1/types.js +66 -1
- package/esm/sparkdream/sparkdream/v1/query.js +176 -0
- package/esm/sparkdream/sparkdream/v1/query.lcd.js +9 -0
- package/esm/sparkdream/sparkdream/v1/query.rpc.Query.js +14 -1
- 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/module/v1/module.d.ts +54 -0
- package/sparkdream/artifact/module/v1/module.js +74 -0
- package/sparkdream/artifact/v1/genesis.d.ts +88 -0
- package/sparkdream/artifact/v1/genesis.js +282 -0
- package/sparkdream/artifact/v1/params.d.ts +251 -0
- package/sparkdream/artifact/v1/params.js +648 -0
- package/sparkdream/artifact/v1/query.d.ts +1986 -0
- package/sparkdream/artifact/v1/query.js +3418 -0
- package/sparkdream/artifact/v1/query.lcd.d.ts +27 -0
- package/sparkdream/artifact/v1/query.lcd.js +163 -0
- package/sparkdream/artifact/v1/query.rpc.Query.d.ts +88 -0
- package/sparkdream/artifact/v1/query.rpc.Query.js +193 -0
- package/sparkdream/artifact/v1/tx.amino.d.ts +158 -0
- package/sparkdream/artifact/v1/tx.amino.js +162 -0
- package/sparkdream/artifact/v1/tx.d.ts +3268 -0
- package/sparkdream/artifact/v1/tx.js +5755 -0
- package/sparkdream/artifact/v1/tx.registry.d.ts +385 -0
- package/sparkdream/artifact/v1/tx.registry.js +577 -0
- package/sparkdream/artifact/v1/tx.rpc.msg.d.ts +109 -0
- package/sparkdream/artifact/v1/tx.rpc.msg.js +204 -0
- package/sparkdream/artifact/v1/types.d.ts +1157 -0
- package/sparkdream/artifact/v1/types.js +2620 -0
- package/sparkdream/blog/v1/params.d.ts +46 -0
- package/sparkdream/blog/v1/params.js +37 -1
- package/sparkdream/blog/v1/post.d.ts +24 -0
- package/sparkdream/blog/v1/post.js +38 -1
- package/sparkdream/blog/v1/query.d.ts +195 -0
- package/sparkdream/blog/v1/query.js +352 -1
- package/sparkdream/blog/v1/query.lcd.d.ts +3 -1
- package/sparkdream/blog/v1/query.lcd.js +12 -0
- package/sparkdream/blog/v1/query.rpc.Query.d.ts +13 -1
- package/sparkdream/blog/v1/query.rpc.Query.js +20 -0
- package/sparkdream/blog/v1/types.d.ts +24 -0
- package/sparkdream/blog/v1/types.js +38 -1
- package/sparkdream/bundle.d.ts +20537 -17863
- package/sparkdream/bundle.js +521 -483
- package/sparkdream/client.d.ts +160 -0
- package/sparkdream/client.js +4 -1
- package/sparkdream/collect/v1/params.d.ts +0 -4
- package/sparkdream/collect/v1/params.js +102 -126
- package/sparkdream/collect/v1/types.d.ts +80 -4
- package/sparkdream/collect/v1/types.js +207 -123
- package/sparkdream/common/v1/media_flag.d.ts +23 -0
- package/sparkdream/common/v1/media_flag.js +68 -0
- package/sparkdream/common/v1/moderation_reason.d.ts +1 -1
- package/sparkdream/common/v1/moderation_reason.js +1 -1
- package/sparkdream/commons/v1/query.d.ts +19 -1
- package/sparkdream/commons/v1/query.js +26 -2
- package/sparkdream/federation/v1/packet.d.ts +14 -0
- package/sparkdream/federation/v1/packet.js +13 -1
- package/sparkdream/federation/v1/query.d.ts +92 -0
- package/sparkdream/federation/v1/query.js +164 -1
- package/sparkdream/federation/v1/query.lcd.d.ts +2 -1
- package/sparkdream/federation/v1/query.lcd.js +7 -0
- package/sparkdream/federation/v1/query.rpc.Query.d.ts +9 -1
- package/sparkdream/federation/v1/query.rpc.Query.js +11 -0
- package/sparkdream/federation/v1/tx.d.ts +18 -0
- package/sparkdream/federation/v1/tx.js +13 -1
- package/sparkdream/federation/v1/types.d.ts +34 -0
- package/sparkdream/federation/v1/types.js +37 -1
- package/sparkdream/forum/v1/params.d.ts +46 -0
- package/sparkdream/forum/v1/params.js +37 -1
- package/sparkdream/forum/v1/post.d.ts +30 -0
- package/sparkdream/forum/v1/post.js +38 -1
- package/sparkdream/forum/v1/query.d.ts +98 -0
- package/sparkdream/forum/v1/query.js +177 -1
- package/sparkdream/forum/v1/query.lcd.d.ts +2 -1
- package/sparkdream/forum/v1/query.lcd.js +7 -0
- package/sparkdream/forum/v1/query.rpc.Query.d.ts +9 -1
- package/sparkdream/forum/v1/query.rpc.Query.js +11 -0
- package/sparkdream/lcd.d.ts +3 -0
- package/sparkdream/lcd.js +5 -0
- package/sparkdream/rep/v1/accountability.d.ts +12 -0
- package/sparkdream/rep/v1/accountability.js +22 -0
- package/sparkdream/rep/v1/genesis.d.ts +18 -7
- package/sparkdream/rep/v1/genesis.js +18 -2
- package/sparkdream/rep/v1/initiative_bounty.d.ts +143 -0
- package/sparkdream/rep/v1/initiative_bounty.js +203 -0
- package/sparkdream/rep/v1/member.d.ts +82 -28
- package/sparkdream/rep/v1/member.js +97 -35
- package/sparkdream/rep/v1/params.d.ts +128 -28
- package/sparkdream/rep/v1/params.js +186 -66
- package/sparkdream/rep/v1/query.d.ts +315 -10
- package/sparkdream/rep/v1/query.js +531 -1
- package/sparkdream/rep/v1/query.lcd.d.ts +3 -1
- package/sparkdream/rep/v1/query.lcd.js +23 -0
- package/sparkdream/rep/v1/query.rpc.Query.d.ts +18 -1
- package/sparkdream/rep/v1/query.rpc.Query.js +25 -0
- package/sparkdream/rep/v1/tx.d.ts +245 -1
- package/sparkdream/rep/v1/tx.js +355 -8
- 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 +7 -1
- package/sparkdream/rep/v1/tx.rpc.msg.js +12 -0
- package/sparkdream/rpc.query.d.ts +32 -0
- package/sparkdream/rpc.query.js +3 -0
- package/sparkdream/rpc.tx.d.ts +3 -0
- package/sparkdream/rpc.tx.js +3 -0
- package/sparkdream/service/v1/checkpoint.d.ts +93 -0
- package/sparkdream/service/v1/checkpoint.js +128 -0
- package/sparkdream/service/v1/genesis.d.ts +15 -0
- package/sparkdream/service/v1/genesis.js +17 -1
- package/sparkdream/service/v1/query.d.ts +186 -0
- package/sparkdream/service/v1/query.js +318 -1
- package/sparkdream/service/v1/query.lcd.d.ts +3 -1
- package/sparkdream/service/v1/query.lcd.js +18 -0
- package/sparkdream/service/v1/query.rpc.Query.d.ts +13 -1
- package/sparkdream/service/v1/query.rpc.Query.js +20 -0
- package/sparkdream/service/v1/service_type_config.d.ts +48 -0
- package/sparkdream/service/v1/service_type_config.js +37 -1
- package/sparkdream/service/v1/tx.amino.d.ts +6 -1
- package/sparkdream/service/v1/tx.amino.js +5 -0
- package/sparkdream/service/v1/tx.d.ts +97 -0
- package/sparkdream/service/v1/tx.js +170 -1
- package/sparkdream/service/v1/tx.registry.d.ts +13 -1
- package/sparkdream/service/v1/tx.registry.js +19 -1
- package/sparkdream/service/v1/tx.rpc.msg.d.ts +9 -1
- package/sparkdream/service/v1/tx.rpc.msg.js +9 -0
- package/sparkdream/shield/v1/params.d.ts +16 -0
- package/sparkdream/shield/v1/params.js +13 -1
- package/sparkdream/shield/v1/tx.d.ts +2 -2
- package/sparkdream/shield/v1/types.d.ts +45 -2
- package/sparkdream/shield/v1/types.js +69 -2
- package/sparkdream/sparkdream/v1/query.d.ts +132 -0
- package/sparkdream/sparkdream/v1/query.js +177 -1
- package/sparkdream/sparkdream/v1/query.lcd.d.ts +2 -1
- package/sparkdream/sparkdream/v1/query.lcd.js +9 -0
- package/sparkdream/sparkdream/v1/query.rpc.Query.d.ts +11 -1
- package/sparkdream/sparkdream/v1/query.rpc.Query.js +13 -0
- package/tendermint/bundle.d.ts +844 -844
- package/tendermint/bundle.js +20 -20
|
@@ -6,11 +6,15 @@ import { CriteriaVote } from "./jury_review";
|
|
|
6
6
|
import { BinaryReader, BinaryWriter } from "../../../binary";
|
|
7
7
|
import { bytesFromBase64, base64FromBytes } from "../../../helpers";
|
|
8
8
|
import { Decimal } from "@interchainjs/math";
|
|
9
|
+
/**
|
|
10
|
+
* TransferPurpose selects which limits a MsgTransferDream is held to. Any
|
|
11
|
+
* other value is rejected. Bounties are not a transfer purpose: they are
|
|
12
|
+
* escrowed against an initiative with MsgFundInitiativeBounty.
|
|
13
|
+
*/
|
|
9
14
|
export var TransferPurpose;
|
|
10
15
|
(function (TransferPurpose) {
|
|
11
16
|
TransferPurpose[TransferPurpose["TRANSFER_PURPOSE_TIP"] = 0] = "TRANSFER_PURPOSE_TIP";
|
|
12
17
|
TransferPurpose[TransferPurpose["TRANSFER_PURPOSE_GIFT"] = 1] = "TRANSFER_PURPOSE_GIFT";
|
|
13
|
-
TransferPurpose[TransferPurpose["TRANSFER_PURPOSE_BOUNTY"] = 2] = "TRANSFER_PURPOSE_BOUNTY";
|
|
14
18
|
TransferPurpose[TransferPurpose["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
|
|
15
19
|
})(TransferPurpose || (TransferPurpose = {}));
|
|
16
20
|
export const TransferPurposeAmino = TransferPurpose;
|
|
@@ -22,9 +26,6 @@ export function transferPurposeFromJSON(object) {
|
|
|
22
26
|
case 1:
|
|
23
27
|
case "TRANSFER_PURPOSE_GIFT":
|
|
24
28
|
return TransferPurpose.TRANSFER_PURPOSE_GIFT;
|
|
25
|
-
case 2:
|
|
26
|
-
case "TRANSFER_PURPOSE_BOUNTY":
|
|
27
|
-
return TransferPurpose.TRANSFER_PURPOSE_BOUNTY;
|
|
28
29
|
case -1:
|
|
29
30
|
case "UNRECOGNIZED":
|
|
30
31
|
default:
|
|
@@ -37,8 +38,6 @@ export function transferPurposeToJSON(object) {
|
|
|
37
38
|
return "TRANSFER_PURPOSE_TIP";
|
|
38
39
|
case TransferPurpose.TRANSFER_PURPOSE_GIFT:
|
|
39
40
|
return "TRANSFER_PURPOSE_GIFT";
|
|
40
|
-
case TransferPurpose.TRANSFER_PURPOSE_BOUNTY:
|
|
41
|
-
return "TRANSFER_PURPOSE_BOUNTY";
|
|
42
41
|
case TransferPurpose.UNRECOGNIZED:
|
|
43
42
|
default:
|
|
44
43
|
return "UNRECOGNIZED";
|
|
@@ -508,7 +507,8 @@ export const MsgInviteMemberResponse = {
|
|
|
508
507
|
function createBaseMsgAcceptInvitation() {
|
|
509
508
|
return {
|
|
510
509
|
invitee: "",
|
|
511
|
-
invitationId: BigInt(0)
|
|
510
|
+
invitationId: BigInt(0),
|
|
511
|
+
acceptedContentLicense: ""
|
|
512
512
|
};
|
|
513
513
|
}
|
|
514
514
|
/**
|
|
@@ -527,6 +527,9 @@ export const MsgAcceptInvitation = {
|
|
|
527
527
|
if (message.invitationId !== BigInt(0)) {
|
|
528
528
|
writer.uint32(16).uint64(message.invitationId);
|
|
529
529
|
}
|
|
530
|
+
if (message.acceptedContentLicense !== "") {
|
|
531
|
+
writer.uint32(26).string(message.acceptedContentLicense);
|
|
532
|
+
}
|
|
530
533
|
return writer;
|
|
531
534
|
},
|
|
532
535
|
decode(input, length) {
|
|
@@ -542,6 +545,9 @@ export const MsgAcceptInvitation = {
|
|
|
542
545
|
case 2:
|
|
543
546
|
message.invitationId = reader.uint64();
|
|
544
547
|
break;
|
|
548
|
+
case 3:
|
|
549
|
+
message.acceptedContentLicense = reader.string();
|
|
550
|
+
break;
|
|
545
551
|
default:
|
|
546
552
|
reader.skipType(tag & 7);
|
|
547
553
|
break;
|
|
@@ -553,6 +559,7 @@ export const MsgAcceptInvitation = {
|
|
|
553
559
|
const message = createBaseMsgAcceptInvitation();
|
|
554
560
|
message.invitee = object.invitee ?? "";
|
|
555
561
|
message.invitationId = object.invitationId !== undefined && object.invitationId !== null ? BigInt(object.invitationId.toString()) : BigInt(0);
|
|
562
|
+
message.acceptedContentLicense = object.acceptedContentLicense ?? "";
|
|
556
563
|
return message;
|
|
557
564
|
},
|
|
558
565
|
fromAmino(object) {
|
|
@@ -563,12 +570,16 @@ export const MsgAcceptInvitation = {
|
|
|
563
570
|
if (object.invitation_id !== undefined && object.invitation_id !== null) {
|
|
564
571
|
message.invitationId = BigInt(object.invitation_id);
|
|
565
572
|
}
|
|
573
|
+
if (object.accepted_content_license !== undefined && object.accepted_content_license !== null) {
|
|
574
|
+
message.acceptedContentLicense = object.accepted_content_license;
|
|
575
|
+
}
|
|
566
576
|
return message;
|
|
567
577
|
},
|
|
568
578
|
toAmino(message) {
|
|
569
579
|
const obj = {};
|
|
570
580
|
obj.invitee = message.invitee === "" ? undefined : message.invitee;
|
|
571
581
|
obj.invitation_id = message.invitationId !== BigInt(0) ? message.invitationId?.toString() : undefined;
|
|
582
|
+
obj.accepted_content_license = message.acceptedContentLicense === "" ? undefined : message.acceptedContentLicense;
|
|
572
583
|
return obj;
|
|
573
584
|
},
|
|
574
585
|
fromAminoMsg(object) {
|
|
@@ -9486,3 +9497,339 @@ export const MsgReclaimReviewBountyResponse = {
|
|
|
9486
9497
|
};
|
|
9487
9498
|
}
|
|
9488
9499
|
};
|
|
9500
|
+
function createBaseMsgFundInitiativeBounty() {
|
|
9501
|
+
return {
|
|
9502
|
+
funder: "",
|
|
9503
|
+
initiativeId: BigInt(0),
|
|
9504
|
+
amount: ""
|
|
9505
|
+
};
|
|
9506
|
+
}
|
|
9507
|
+
/**
|
|
9508
|
+
* MsgFundInitiativeBounty escrows DREAM against an OPEN or ASSIGNED initiative,
|
|
9509
|
+
* paid to its assignee if it completes and refunded if it closes or is
|
|
9510
|
+
* rejected.
|
|
9511
|
+
*
|
|
9512
|
+
* The funder must not be affiliated with the initiative. The total bounty is
|
|
9513
|
+
* capped at initiative_bounty_max_budget_ratio of the budget, and each funder
|
|
9514
|
+
* at max_initiative_bounty_per_funder_epoch.
|
|
9515
|
+
* @name MsgFundInitiativeBounty
|
|
9516
|
+
* @package sparkdream.rep.v1
|
|
9517
|
+
* @see proto type: sparkdream.rep.v1.MsgFundInitiativeBounty
|
|
9518
|
+
*/
|
|
9519
|
+
export const MsgFundInitiativeBounty = {
|
|
9520
|
+
typeUrl: "/sparkdream.rep.v1.MsgFundInitiativeBounty",
|
|
9521
|
+
aminoType: "sparkdream/x/rep/MsgFundInitiativeBounty",
|
|
9522
|
+
encode(message, writer = BinaryWriter.create()) {
|
|
9523
|
+
if (message.funder !== "") {
|
|
9524
|
+
writer.uint32(10).string(message.funder);
|
|
9525
|
+
}
|
|
9526
|
+
if (message.initiativeId !== BigInt(0)) {
|
|
9527
|
+
writer.uint32(16).uint64(message.initiativeId);
|
|
9528
|
+
}
|
|
9529
|
+
if (message.amount !== "") {
|
|
9530
|
+
writer.uint32(26).string(message.amount);
|
|
9531
|
+
}
|
|
9532
|
+
return writer;
|
|
9533
|
+
},
|
|
9534
|
+
decode(input, length) {
|
|
9535
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
9536
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
9537
|
+
const message = createBaseMsgFundInitiativeBounty();
|
|
9538
|
+
while (reader.pos < end) {
|
|
9539
|
+
const tag = reader.uint32();
|
|
9540
|
+
switch (tag >>> 3) {
|
|
9541
|
+
case 1:
|
|
9542
|
+
message.funder = reader.string();
|
|
9543
|
+
break;
|
|
9544
|
+
case 2:
|
|
9545
|
+
message.initiativeId = reader.uint64();
|
|
9546
|
+
break;
|
|
9547
|
+
case 3:
|
|
9548
|
+
message.amount = reader.string();
|
|
9549
|
+
break;
|
|
9550
|
+
default:
|
|
9551
|
+
reader.skipType(tag & 7);
|
|
9552
|
+
break;
|
|
9553
|
+
}
|
|
9554
|
+
}
|
|
9555
|
+
return message;
|
|
9556
|
+
},
|
|
9557
|
+
fromPartial(object) {
|
|
9558
|
+
const message = createBaseMsgFundInitiativeBounty();
|
|
9559
|
+
message.funder = object.funder ?? "";
|
|
9560
|
+
message.initiativeId = object.initiativeId !== undefined && object.initiativeId !== null ? BigInt(object.initiativeId.toString()) : BigInt(0);
|
|
9561
|
+
message.amount = object.amount ?? "";
|
|
9562
|
+
return message;
|
|
9563
|
+
},
|
|
9564
|
+
fromAmino(object) {
|
|
9565
|
+
const message = createBaseMsgFundInitiativeBounty();
|
|
9566
|
+
if (object.funder !== undefined && object.funder !== null) {
|
|
9567
|
+
message.funder = object.funder;
|
|
9568
|
+
}
|
|
9569
|
+
if (object.initiative_id !== undefined && object.initiative_id !== null) {
|
|
9570
|
+
message.initiativeId = BigInt(object.initiative_id);
|
|
9571
|
+
}
|
|
9572
|
+
if (object.amount !== undefined && object.amount !== null) {
|
|
9573
|
+
message.amount = object.amount;
|
|
9574
|
+
}
|
|
9575
|
+
return message;
|
|
9576
|
+
},
|
|
9577
|
+
toAmino(message) {
|
|
9578
|
+
const obj = {};
|
|
9579
|
+
obj.funder = message.funder === "" ? undefined : message.funder;
|
|
9580
|
+
obj.initiative_id = message.initiativeId !== BigInt(0) ? message.initiativeId?.toString() : undefined;
|
|
9581
|
+
obj.amount = message.amount === "" ? undefined : message.amount;
|
|
9582
|
+
return obj;
|
|
9583
|
+
},
|
|
9584
|
+
fromAminoMsg(object) {
|
|
9585
|
+
return MsgFundInitiativeBounty.fromAmino(object.value);
|
|
9586
|
+
},
|
|
9587
|
+
toAminoMsg(message) {
|
|
9588
|
+
return {
|
|
9589
|
+
type: "sparkdream/x/rep/MsgFundInitiativeBounty",
|
|
9590
|
+
value: MsgFundInitiativeBounty.toAmino(message)
|
|
9591
|
+
};
|
|
9592
|
+
},
|
|
9593
|
+
fromProtoMsg(message) {
|
|
9594
|
+
return MsgFundInitiativeBounty.decode(message.value);
|
|
9595
|
+
},
|
|
9596
|
+
toProto(message) {
|
|
9597
|
+
return MsgFundInitiativeBounty.encode(message).finish();
|
|
9598
|
+
},
|
|
9599
|
+
toProtoMsg(message) {
|
|
9600
|
+
return {
|
|
9601
|
+
typeUrl: "/sparkdream.rep.v1.MsgFundInitiativeBounty",
|
|
9602
|
+
value: MsgFundInitiativeBounty.encode(message).finish()
|
|
9603
|
+
};
|
|
9604
|
+
}
|
|
9605
|
+
};
|
|
9606
|
+
function createBaseMsgFundInitiativeBountyResponse() {
|
|
9607
|
+
return {
|
|
9608
|
+
total: ""
|
|
9609
|
+
};
|
|
9610
|
+
}
|
|
9611
|
+
/**
|
|
9612
|
+
* MsgFundInitiativeBountyResponse defines the MsgFundInitiativeBounty response.
|
|
9613
|
+
* @name MsgFundInitiativeBountyResponse
|
|
9614
|
+
* @package sparkdream.rep.v1
|
|
9615
|
+
* @see proto type: sparkdream.rep.v1.MsgFundInitiativeBountyResponse
|
|
9616
|
+
*/
|
|
9617
|
+
export const MsgFundInitiativeBountyResponse = {
|
|
9618
|
+
typeUrl: "/sparkdream.rep.v1.MsgFundInitiativeBountyResponse",
|
|
9619
|
+
encode(message, writer = BinaryWriter.create()) {
|
|
9620
|
+
if (message.total !== "") {
|
|
9621
|
+
writer.uint32(10).string(message.total);
|
|
9622
|
+
}
|
|
9623
|
+
return writer;
|
|
9624
|
+
},
|
|
9625
|
+
decode(input, length) {
|
|
9626
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
9627
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
9628
|
+
const message = createBaseMsgFundInitiativeBountyResponse();
|
|
9629
|
+
while (reader.pos < end) {
|
|
9630
|
+
const tag = reader.uint32();
|
|
9631
|
+
switch (tag >>> 3) {
|
|
9632
|
+
case 1:
|
|
9633
|
+
message.total = reader.string();
|
|
9634
|
+
break;
|
|
9635
|
+
default:
|
|
9636
|
+
reader.skipType(tag & 7);
|
|
9637
|
+
break;
|
|
9638
|
+
}
|
|
9639
|
+
}
|
|
9640
|
+
return message;
|
|
9641
|
+
},
|
|
9642
|
+
fromPartial(object) {
|
|
9643
|
+
const message = createBaseMsgFundInitiativeBountyResponse();
|
|
9644
|
+
message.total = object.total ?? "";
|
|
9645
|
+
return message;
|
|
9646
|
+
},
|
|
9647
|
+
fromAmino(object) {
|
|
9648
|
+
const message = createBaseMsgFundInitiativeBountyResponse();
|
|
9649
|
+
if (object.total !== undefined && object.total !== null) {
|
|
9650
|
+
message.total = object.total;
|
|
9651
|
+
}
|
|
9652
|
+
return message;
|
|
9653
|
+
},
|
|
9654
|
+
toAmino(message) {
|
|
9655
|
+
const obj = {};
|
|
9656
|
+
obj.total = message.total === "" ? undefined : message.total;
|
|
9657
|
+
return obj;
|
|
9658
|
+
},
|
|
9659
|
+
fromAminoMsg(object) {
|
|
9660
|
+
return MsgFundInitiativeBountyResponse.fromAmino(object.value);
|
|
9661
|
+
},
|
|
9662
|
+
fromProtoMsg(message) {
|
|
9663
|
+
return MsgFundInitiativeBountyResponse.decode(message.value);
|
|
9664
|
+
},
|
|
9665
|
+
toProto(message) {
|
|
9666
|
+
return MsgFundInitiativeBountyResponse.encode(message).finish();
|
|
9667
|
+
},
|
|
9668
|
+
toProtoMsg(message) {
|
|
9669
|
+
return {
|
|
9670
|
+
typeUrl: "/sparkdream.rep.v1.MsgFundInitiativeBountyResponse",
|
|
9671
|
+
value: MsgFundInitiativeBountyResponse.encode(message).finish()
|
|
9672
|
+
};
|
|
9673
|
+
}
|
|
9674
|
+
};
|
|
9675
|
+
function createBaseMsgReclaimInitiativeBounty() {
|
|
9676
|
+
return {
|
|
9677
|
+
funder: "",
|
|
9678
|
+
initiativeId: BigInt(0)
|
|
9679
|
+
};
|
|
9680
|
+
}
|
|
9681
|
+
/**
|
|
9682
|
+
* MsgReclaimInitiativeBounty returns a funder's own matured contributions.
|
|
9683
|
+
*
|
|
9684
|
+
* Permitted only while the initiative is OPEN (unassigned) and only for
|
|
9685
|
+
* contributions older than initiative_bounty_reclaim_delay blocks. Once someone
|
|
9686
|
+
* is assigned they are working on the strength of the advertised bounty.
|
|
9687
|
+
* @name MsgReclaimInitiativeBounty
|
|
9688
|
+
* @package sparkdream.rep.v1
|
|
9689
|
+
* @see proto type: sparkdream.rep.v1.MsgReclaimInitiativeBounty
|
|
9690
|
+
*/
|
|
9691
|
+
export const MsgReclaimInitiativeBounty = {
|
|
9692
|
+
typeUrl: "/sparkdream.rep.v1.MsgReclaimInitiativeBounty",
|
|
9693
|
+
aminoType: "sparkdream/x/rep/MsgReclaimInitiativeBounty",
|
|
9694
|
+
encode(message, writer = BinaryWriter.create()) {
|
|
9695
|
+
if (message.funder !== "") {
|
|
9696
|
+
writer.uint32(10).string(message.funder);
|
|
9697
|
+
}
|
|
9698
|
+
if (message.initiativeId !== BigInt(0)) {
|
|
9699
|
+
writer.uint32(16).uint64(message.initiativeId);
|
|
9700
|
+
}
|
|
9701
|
+
return writer;
|
|
9702
|
+
},
|
|
9703
|
+
decode(input, length) {
|
|
9704
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
9705
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
9706
|
+
const message = createBaseMsgReclaimInitiativeBounty();
|
|
9707
|
+
while (reader.pos < end) {
|
|
9708
|
+
const tag = reader.uint32();
|
|
9709
|
+
switch (tag >>> 3) {
|
|
9710
|
+
case 1:
|
|
9711
|
+
message.funder = reader.string();
|
|
9712
|
+
break;
|
|
9713
|
+
case 2:
|
|
9714
|
+
message.initiativeId = reader.uint64();
|
|
9715
|
+
break;
|
|
9716
|
+
default:
|
|
9717
|
+
reader.skipType(tag & 7);
|
|
9718
|
+
break;
|
|
9719
|
+
}
|
|
9720
|
+
}
|
|
9721
|
+
return message;
|
|
9722
|
+
},
|
|
9723
|
+
fromPartial(object) {
|
|
9724
|
+
const message = createBaseMsgReclaimInitiativeBounty();
|
|
9725
|
+
message.funder = object.funder ?? "";
|
|
9726
|
+
message.initiativeId = object.initiativeId !== undefined && object.initiativeId !== null ? BigInt(object.initiativeId.toString()) : BigInt(0);
|
|
9727
|
+
return message;
|
|
9728
|
+
},
|
|
9729
|
+
fromAmino(object) {
|
|
9730
|
+
const message = createBaseMsgReclaimInitiativeBounty();
|
|
9731
|
+
if (object.funder !== undefined && object.funder !== null) {
|
|
9732
|
+
message.funder = object.funder;
|
|
9733
|
+
}
|
|
9734
|
+
if (object.initiative_id !== undefined && object.initiative_id !== null) {
|
|
9735
|
+
message.initiativeId = BigInt(object.initiative_id);
|
|
9736
|
+
}
|
|
9737
|
+
return message;
|
|
9738
|
+
},
|
|
9739
|
+
toAmino(message) {
|
|
9740
|
+
const obj = {};
|
|
9741
|
+
obj.funder = message.funder === "" ? undefined : message.funder;
|
|
9742
|
+
obj.initiative_id = message.initiativeId !== BigInt(0) ? message.initiativeId?.toString() : undefined;
|
|
9743
|
+
return obj;
|
|
9744
|
+
},
|
|
9745
|
+
fromAminoMsg(object) {
|
|
9746
|
+
return MsgReclaimInitiativeBounty.fromAmino(object.value);
|
|
9747
|
+
},
|
|
9748
|
+
toAminoMsg(message) {
|
|
9749
|
+
return {
|
|
9750
|
+
type: "sparkdream/x/rep/MsgReclaimInitiativeBounty",
|
|
9751
|
+
value: MsgReclaimInitiativeBounty.toAmino(message)
|
|
9752
|
+
};
|
|
9753
|
+
},
|
|
9754
|
+
fromProtoMsg(message) {
|
|
9755
|
+
return MsgReclaimInitiativeBounty.decode(message.value);
|
|
9756
|
+
},
|
|
9757
|
+
toProto(message) {
|
|
9758
|
+
return MsgReclaimInitiativeBounty.encode(message).finish();
|
|
9759
|
+
},
|
|
9760
|
+
toProtoMsg(message) {
|
|
9761
|
+
return {
|
|
9762
|
+
typeUrl: "/sparkdream.rep.v1.MsgReclaimInitiativeBounty",
|
|
9763
|
+
value: MsgReclaimInitiativeBounty.encode(message).finish()
|
|
9764
|
+
};
|
|
9765
|
+
}
|
|
9766
|
+
};
|
|
9767
|
+
function createBaseMsgReclaimInitiativeBountyResponse() {
|
|
9768
|
+
return {
|
|
9769
|
+
refunded: ""
|
|
9770
|
+
};
|
|
9771
|
+
}
|
|
9772
|
+
/**
|
|
9773
|
+
* MsgReclaimInitiativeBountyResponse defines the MsgReclaimInitiativeBounty response.
|
|
9774
|
+
* @name MsgReclaimInitiativeBountyResponse
|
|
9775
|
+
* @package sparkdream.rep.v1
|
|
9776
|
+
* @see proto type: sparkdream.rep.v1.MsgReclaimInitiativeBountyResponse
|
|
9777
|
+
*/
|
|
9778
|
+
export const MsgReclaimInitiativeBountyResponse = {
|
|
9779
|
+
typeUrl: "/sparkdream.rep.v1.MsgReclaimInitiativeBountyResponse",
|
|
9780
|
+
encode(message, writer = BinaryWriter.create()) {
|
|
9781
|
+
if (message.refunded !== "") {
|
|
9782
|
+
writer.uint32(10).string(message.refunded);
|
|
9783
|
+
}
|
|
9784
|
+
return writer;
|
|
9785
|
+
},
|
|
9786
|
+
decode(input, length) {
|
|
9787
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
9788
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
9789
|
+
const message = createBaseMsgReclaimInitiativeBountyResponse();
|
|
9790
|
+
while (reader.pos < end) {
|
|
9791
|
+
const tag = reader.uint32();
|
|
9792
|
+
switch (tag >>> 3) {
|
|
9793
|
+
case 1:
|
|
9794
|
+
message.refunded = reader.string();
|
|
9795
|
+
break;
|
|
9796
|
+
default:
|
|
9797
|
+
reader.skipType(tag & 7);
|
|
9798
|
+
break;
|
|
9799
|
+
}
|
|
9800
|
+
}
|
|
9801
|
+
return message;
|
|
9802
|
+
},
|
|
9803
|
+
fromPartial(object) {
|
|
9804
|
+
const message = createBaseMsgReclaimInitiativeBountyResponse();
|
|
9805
|
+
message.refunded = object.refunded ?? "";
|
|
9806
|
+
return message;
|
|
9807
|
+
},
|
|
9808
|
+
fromAmino(object) {
|
|
9809
|
+
const message = createBaseMsgReclaimInitiativeBountyResponse();
|
|
9810
|
+
if (object.refunded !== undefined && object.refunded !== null) {
|
|
9811
|
+
message.refunded = object.refunded;
|
|
9812
|
+
}
|
|
9813
|
+
return message;
|
|
9814
|
+
},
|
|
9815
|
+
toAmino(message) {
|
|
9816
|
+
const obj = {};
|
|
9817
|
+
obj.refunded = message.refunded === "" ? undefined : message.refunded;
|
|
9818
|
+
return obj;
|
|
9819
|
+
},
|
|
9820
|
+
fromAminoMsg(object) {
|
|
9821
|
+
return MsgReclaimInitiativeBountyResponse.fromAmino(object.value);
|
|
9822
|
+
},
|
|
9823
|
+
fromProtoMsg(message) {
|
|
9824
|
+
return MsgReclaimInitiativeBountyResponse.decode(message.value);
|
|
9825
|
+
},
|
|
9826
|
+
toProto(message) {
|
|
9827
|
+
return MsgReclaimInitiativeBountyResponse.encode(message).finish();
|
|
9828
|
+
},
|
|
9829
|
+
toProtoMsg(message) {
|
|
9830
|
+
return {
|
|
9831
|
+
typeUrl: "/sparkdream.rep.v1.MsgReclaimInitiativeBountyResponse",
|
|
9832
|
+
value: MsgReclaimInitiativeBountyResponse.encode(message).finish()
|
|
9833
|
+
};
|
|
9834
|
+
}
|
|
9835
|
+
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { MsgUpdateParams, MsgUpdateOperationalParams, MsgInviteMember, MsgAcceptInvitation, MsgTransferDream, MsgCreateInterim, MsgAssignInterim, MsgSubmitInterimWork, MsgApproveInterim, MsgAbandonInterim, MsgCompleteInterim, MsgProposeProject, MsgApproveProjectBudget, MsgCancelProject, MsgCreateInitiative, MsgAssignInitiative, MsgSubmitInitiativeWork, MsgApproveInitiative, MsgUnassignInitiative, MsgCompleteInitiative, MsgStake, MsgUnstake, MsgClaimStakingRewards, MsgCompoundStakingRewards, MsgCreateChallenge, MsgRespondToChallenge, MsgSubmitJurorVote, MsgAcceptJuryDuty, MsgSubmitInitiativeReview, MsgSetVerificationPolicy, MsgResolveReviewEscalation, MsgDeclineJuryDuty, MsgFundReviewBounty, MsgReclaimReviewBounty, MsgSubmitExpertTestimony, MsgChallengeContent, MsgRespondToContentChallenge, MsgRegisterZkPublicKey, MsgCreateTag, MsgReportTag, MsgResolveTagReport, MsgCreateTagBudget, MsgAwardFromTagBudget, MsgTopUpTagBudget, MsgToggleTagBudget, MsgWithdrawTagBudget, MsgBondRole, MsgUnbondRole, MsgCancelUnbondRole, MsgReportMember, MsgCosignMemberReport, MsgResolveMemberReport, MsgDefendMemberReport, MsgAppealGovAction, MsgResolveGovActionAppeal, MsgCloseInitiative } from "./tx";
|
|
2
|
-
export const registry = [["/sparkdream.rep.v1.MsgUpdateParams", MsgUpdateParams], ["/sparkdream.rep.v1.MsgUpdateOperationalParams", MsgUpdateOperationalParams], ["/sparkdream.rep.v1.MsgInviteMember", MsgInviteMember], ["/sparkdream.rep.v1.MsgAcceptInvitation", MsgAcceptInvitation], ["/sparkdream.rep.v1.MsgTransferDream", MsgTransferDream], ["/sparkdream.rep.v1.MsgCreateInterim", MsgCreateInterim], ["/sparkdream.rep.v1.MsgAssignInterim", MsgAssignInterim], ["/sparkdream.rep.v1.MsgSubmitInterimWork", MsgSubmitInterimWork], ["/sparkdream.rep.v1.MsgApproveInterim", MsgApproveInterim], ["/sparkdream.rep.v1.MsgAbandonInterim", MsgAbandonInterim], ["/sparkdream.rep.v1.MsgCompleteInterim", MsgCompleteInterim], ["/sparkdream.rep.v1.MsgProposeProject", MsgProposeProject], ["/sparkdream.rep.v1.MsgApproveProjectBudget", MsgApproveProjectBudget], ["/sparkdream.rep.v1.MsgCancelProject", MsgCancelProject], ["/sparkdream.rep.v1.MsgCreateInitiative", MsgCreateInitiative], ["/sparkdream.rep.v1.MsgAssignInitiative", MsgAssignInitiative], ["/sparkdream.rep.v1.MsgSubmitInitiativeWork", MsgSubmitInitiativeWork], ["/sparkdream.rep.v1.MsgApproveInitiative", MsgApproveInitiative], ["/sparkdream.rep.v1.MsgUnassignInitiative", MsgUnassignInitiative], ["/sparkdream.rep.v1.MsgCompleteInitiative", MsgCompleteInitiative], ["/sparkdream.rep.v1.MsgStake", MsgStake], ["/sparkdream.rep.v1.MsgUnstake", MsgUnstake], ["/sparkdream.rep.v1.MsgClaimStakingRewards", MsgClaimStakingRewards], ["/sparkdream.rep.v1.MsgCompoundStakingRewards", MsgCompoundStakingRewards], ["/sparkdream.rep.v1.MsgCreateChallenge", MsgCreateChallenge], ["/sparkdream.rep.v1.MsgRespondToChallenge", MsgRespondToChallenge], ["/sparkdream.rep.v1.MsgSubmitJurorVote", MsgSubmitJurorVote], ["/sparkdream.rep.v1.MsgAcceptJuryDuty", MsgAcceptJuryDuty], ["/sparkdream.rep.v1.MsgSubmitInitiativeReview", MsgSubmitInitiativeReview], ["/sparkdream.rep.v1.MsgSetVerificationPolicy", MsgSetVerificationPolicy], ["/sparkdream.rep.v1.MsgResolveReviewEscalation", MsgResolveReviewEscalation], ["/sparkdream.rep.v1.MsgDeclineJuryDuty", MsgDeclineJuryDuty], ["/sparkdream.rep.v1.MsgFundReviewBounty", MsgFundReviewBounty], ["/sparkdream.rep.v1.MsgReclaimReviewBounty", MsgReclaimReviewBounty], ["/sparkdream.rep.v1.MsgSubmitExpertTestimony", MsgSubmitExpertTestimony], ["/sparkdream.rep.v1.MsgChallengeContent", MsgChallengeContent], ["/sparkdream.rep.v1.MsgRespondToContentChallenge", MsgRespondToContentChallenge], ["/sparkdream.rep.v1.MsgRegisterZkPublicKey", MsgRegisterZkPublicKey], ["/sparkdream.rep.v1.MsgCreateTag", MsgCreateTag], ["/sparkdream.rep.v1.MsgReportTag", MsgReportTag], ["/sparkdream.rep.v1.MsgResolveTagReport", MsgResolveTagReport], ["/sparkdream.rep.v1.MsgCreateTagBudget", MsgCreateTagBudget], ["/sparkdream.rep.v1.MsgAwardFromTagBudget", MsgAwardFromTagBudget], ["/sparkdream.rep.v1.MsgTopUpTagBudget", MsgTopUpTagBudget], ["/sparkdream.rep.v1.MsgToggleTagBudget", MsgToggleTagBudget], ["/sparkdream.rep.v1.MsgWithdrawTagBudget", MsgWithdrawTagBudget], ["/sparkdream.rep.v1.MsgBondRole", MsgBondRole], ["/sparkdream.rep.v1.MsgUnbondRole", MsgUnbondRole], ["/sparkdream.rep.v1.MsgCancelUnbondRole", MsgCancelUnbondRole], ["/sparkdream.rep.v1.MsgReportMember", MsgReportMember], ["/sparkdream.rep.v1.MsgCosignMemberReport", MsgCosignMemberReport], ["/sparkdream.rep.v1.MsgResolveMemberReport", MsgResolveMemberReport], ["/sparkdream.rep.v1.MsgDefendMemberReport", MsgDefendMemberReport], ["/sparkdream.rep.v1.MsgAppealGovAction", MsgAppealGovAction], ["/sparkdream.rep.v1.MsgResolveGovActionAppeal", MsgResolveGovActionAppeal], ["/sparkdream.rep.v1.MsgCloseInitiative", MsgCloseInitiative]];
|
|
1
|
+
import { MsgUpdateParams, MsgUpdateOperationalParams, MsgInviteMember, MsgAcceptInvitation, MsgTransferDream, MsgCreateInterim, MsgAssignInterim, MsgSubmitInterimWork, MsgApproveInterim, MsgAbandonInterim, MsgCompleteInterim, MsgProposeProject, MsgApproveProjectBudget, MsgCancelProject, MsgCreateInitiative, MsgAssignInitiative, MsgSubmitInitiativeWork, MsgApproveInitiative, MsgUnassignInitiative, MsgCompleteInitiative, MsgStake, MsgUnstake, MsgClaimStakingRewards, MsgCompoundStakingRewards, MsgCreateChallenge, MsgRespondToChallenge, MsgSubmitJurorVote, MsgAcceptJuryDuty, MsgSubmitInitiativeReview, MsgSetVerificationPolicy, MsgResolveReviewEscalation, MsgDeclineJuryDuty, MsgFundReviewBounty, MsgReclaimReviewBounty, MsgSubmitExpertTestimony, MsgChallengeContent, MsgRespondToContentChallenge, MsgRegisterZkPublicKey, MsgCreateTag, MsgReportTag, MsgResolveTagReport, MsgCreateTagBudget, MsgAwardFromTagBudget, MsgTopUpTagBudget, MsgToggleTagBudget, MsgWithdrawTagBudget, MsgBondRole, MsgUnbondRole, MsgCancelUnbondRole, MsgReportMember, MsgCosignMemberReport, MsgResolveMemberReport, MsgDefendMemberReport, MsgAppealGovAction, MsgResolveGovActionAppeal, MsgCloseInitiative, MsgFundInitiativeBounty, MsgReclaimInitiativeBounty } from "./tx";
|
|
2
|
+
export const registry = [["/sparkdream.rep.v1.MsgUpdateParams", MsgUpdateParams], ["/sparkdream.rep.v1.MsgUpdateOperationalParams", MsgUpdateOperationalParams], ["/sparkdream.rep.v1.MsgInviteMember", MsgInviteMember], ["/sparkdream.rep.v1.MsgAcceptInvitation", MsgAcceptInvitation], ["/sparkdream.rep.v1.MsgTransferDream", MsgTransferDream], ["/sparkdream.rep.v1.MsgCreateInterim", MsgCreateInterim], ["/sparkdream.rep.v1.MsgAssignInterim", MsgAssignInterim], ["/sparkdream.rep.v1.MsgSubmitInterimWork", MsgSubmitInterimWork], ["/sparkdream.rep.v1.MsgApproveInterim", MsgApproveInterim], ["/sparkdream.rep.v1.MsgAbandonInterim", MsgAbandonInterim], ["/sparkdream.rep.v1.MsgCompleteInterim", MsgCompleteInterim], ["/sparkdream.rep.v1.MsgProposeProject", MsgProposeProject], ["/sparkdream.rep.v1.MsgApproveProjectBudget", MsgApproveProjectBudget], ["/sparkdream.rep.v1.MsgCancelProject", MsgCancelProject], ["/sparkdream.rep.v1.MsgCreateInitiative", MsgCreateInitiative], ["/sparkdream.rep.v1.MsgAssignInitiative", MsgAssignInitiative], ["/sparkdream.rep.v1.MsgSubmitInitiativeWork", MsgSubmitInitiativeWork], ["/sparkdream.rep.v1.MsgApproveInitiative", MsgApproveInitiative], ["/sparkdream.rep.v1.MsgUnassignInitiative", MsgUnassignInitiative], ["/sparkdream.rep.v1.MsgCompleteInitiative", MsgCompleteInitiative], ["/sparkdream.rep.v1.MsgStake", MsgStake], ["/sparkdream.rep.v1.MsgUnstake", MsgUnstake], ["/sparkdream.rep.v1.MsgClaimStakingRewards", MsgClaimStakingRewards], ["/sparkdream.rep.v1.MsgCompoundStakingRewards", MsgCompoundStakingRewards], ["/sparkdream.rep.v1.MsgCreateChallenge", MsgCreateChallenge], ["/sparkdream.rep.v1.MsgRespondToChallenge", MsgRespondToChallenge], ["/sparkdream.rep.v1.MsgSubmitJurorVote", MsgSubmitJurorVote], ["/sparkdream.rep.v1.MsgAcceptJuryDuty", MsgAcceptJuryDuty], ["/sparkdream.rep.v1.MsgSubmitInitiativeReview", MsgSubmitInitiativeReview], ["/sparkdream.rep.v1.MsgSetVerificationPolicy", MsgSetVerificationPolicy], ["/sparkdream.rep.v1.MsgResolveReviewEscalation", MsgResolveReviewEscalation], ["/sparkdream.rep.v1.MsgDeclineJuryDuty", MsgDeclineJuryDuty], ["/sparkdream.rep.v1.MsgFundReviewBounty", MsgFundReviewBounty], ["/sparkdream.rep.v1.MsgReclaimReviewBounty", MsgReclaimReviewBounty], ["/sparkdream.rep.v1.MsgSubmitExpertTestimony", MsgSubmitExpertTestimony], ["/sparkdream.rep.v1.MsgChallengeContent", MsgChallengeContent], ["/sparkdream.rep.v1.MsgRespondToContentChallenge", MsgRespondToContentChallenge], ["/sparkdream.rep.v1.MsgRegisterZkPublicKey", MsgRegisterZkPublicKey], ["/sparkdream.rep.v1.MsgCreateTag", MsgCreateTag], ["/sparkdream.rep.v1.MsgReportTag", MsgReportTag], ["/sparkdream.rep.v1.MsgResolveTagReport", MsgResolveTagReport], ["/sparkdream.rep.v1.MsgCreateTagBudget", MsgCreateTagBudget], ["/sparkdream.rep.v1.MsgAwardFromTagBudget", MsgAwardFromTagBudget], ["/sparkdream.rep.v1.MsgTopUpTagBudget", MsgTopUpTagBudget], ["/sparkdream.rep.v1.MsgToggleTagBudget", MsgToggleTagBudget], ["/sparkdream.rep.v1.MsgWithdrawTagBudget", MsgWithdrawTagBudget], ["/sparkdream.rep.v1.MsgBondRole", MsgBondRole], ["/sparkdream.rep.v1.MsgUnbondRole", MsgUnbondRole], ["/sparkdream.rep.v1.MsgCancelUnbondRole", MsgCancelUnbondRole], ["/sparkdream.rep.v1.MsgReportMember", MsgReportMember], ["/sparkdream.rep.v1.MsgCosignMemberReport", MsgCosignMemberReport], ["/sparkdream.rep.v1.MsgResolveMemberReport", MsgResolveMemberReport], ["/sparkdream.rep.v1.MsgDefendMemberReport", MsgDefendMemberReport], ["/sparkdream.rep.v1.MsgAppealGovAction", MsgAppealGovAction], ["/sparkdream.rep.v1.MsgResolveGovActionAppeal", MsgResolveGovActionAppeal], ["/sparkdream.rep.v1.MsgCloseInitiative", MsgCloseInitiative], ["/sparkdream.rep.v1.MsgFundInitiativeBounty", MsgFundInitiativeBounty], ["/sparkdream.rep.v1.MsgReclaimInitiativeBounty", MsgReclaimInitiativeBounty]];
|
|
3
3
|
export const load = (protoRegistry) => {
|
|
4
4
|
registry.forEach(([typeUrl, mod]) => {
|
|
5
5
|
protoRegistry.register(typeUrl, mod);
|
|
@@ -342,6 +342,18 @@ export const MessageComposer = {
|
|
|
342
342
|
typeUrl: "/sparkdream.rep.v1.MsgCloseInitiative",
|
|
343
343
|
value: MsgCloseInitiative.encode(value).finish()
|
|
344
344
|
};
|
|
345
|
+
},
|
|
346
|
+
fundInitiativeBounty(value) {
|
|
347
|
+
return {
|
|
348
|
+
typeUrl: "/sparkdream.rep.v1.MsgFundInitiativeBounty",
|
|
349
|
+
value: MsgFundInitiativeBounty.encode(value).finish()
|
|
350
|
+
};
|
|
351
|
+
},
|
|
352
|
+
reclaimInitiativeBounty(value) {
|
|
353
|
+
return {
|
|
354
|
+
typeUrl: "/sparkdream.rep.v1.MsgReclaimInitiativeBounty",
|
|
355
|
+
value: MsgReclaimInitiativeBounty.encode(value).finish()
|
|
356
|
+
};
|
|
345
357
|
}
|
|
346
358
|
},
|
|
347
359
|
withTypeUrl: {
|
|
@@ -680,6 +692,18 @@ export const MessageComposer = {
|
|
|
680
692
|
typeUrl: "/sparkdream.rep.v1.MsgCloseInitiative",
|
|
681
693
|
value
|
|
682
694
|
};
|
|
695
|
+
},
|
|
696
|
+
fundInitiativeBounty(value) {
|
|
697
|
+
return {
|
|
698
|
+
typeUrl: "/sparkdream.rep.v1.MsgFundInitiativeBounty",
|
|
699
|
+
value
|
|
700
|
+
};
|
|
701
|
+
},
|
|
702
|
+
reclaimInitiativeBounty(value) {
|
|
703
|
+
return {
|
|
704
|
+
typeUrl: "/sparkdream.rep.v1.MsgReclaimInitiativeBounty",
|
|
705
|
+
value
|
|
706
|
+
};
|
|
683
707
|
}
|
|
684
708
|
},
|
|
685
709
|
fromPartial: {
|
|
@@ -1018,6 +1042,18 @@ export const MessageComposer = {
|
|
|
1018
1042
|
typeUrl: "/sparkdream.rep.v1.MsgCloseInitiative",
|
|
1019
1043
|
value: MsgCloseInitiative.fromPartial(value)
|
|
1020
1044
|
};
|
|
1045
|
+
},
|
|
1046
|
+
fundInitiativeBounty(value) {
|
|
1047
|
+
return {
|
|
1048
|
+
typeUrl: "/sparkdream.rep.v1.MsgFundInitiativeBounty",
|
|
1049
|
+
value: MsgFundInitiativeBounty.fromPartial(value)
|
|
1050
|
+
};
|
|
1051
|
+
},
|
|
1052
|
+
reclaimInitiativeBounty(value) {
|
|
1053
|
+
return {
|
|
1054
|
+
typeUrl: "/sparkdream.rep.v1.MsgReclaimInitiativeBounty",
|
|
1055
|
+
value: MsgReclaimInitiativeBounty.fromPartial(value)
|
|
1056
|
+
};
|
|
1021
1057
|
}
|
|
1022
1058
|
}
|
|
1023
1059
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { BinaryReader } from "../../../binary";
|
|
2
|
-
import { MsgUpdateParams, MsgUpdateParamsResponse, MsgUpdateOperationalParams, MsgUpdateOperationalParamsResponse, MsgInviteMember, MsgInviteMemberResponse, MsgAcceptInvitation, MsgAcceptInvitationResponse, MsgTransferDream, MsgTransferDreamResponse, MsgCreateInterim, MsgCreateInterimResponse, MsgAssignInterim, MsgAssignInterimResponse, MsgSubmitInterimWork, MsgSubmitInterimWorkResponse, MsgApproveInterim, MsgApproveInterimResponse, MsgAbandonInterim, MsgAbandonInterimResponse, MsgCompleteInterim, MsgCompleteInterimResponse, MsgProposeProject, MsgProposeProjectResponse, MsgApproveProjectBudget, MsgApproveProjectBudgetResponse, MsgCancelProject, MsgCancelProjectResponse, MsgCreateInitiative, MsgCreateInitiativeResponse, MsgAssignInitiative, MsgAssignInitiativeResponse, MsgSubmitInitiativeWork, MsgSubmitInitiativeWorkResponse, MsgApproveInitiative, MsgApproveInitiativeResponse, MsgUnassignInitiative, MsgUnassignInitiativeResponse, MsgCompleteInitiative, MsgCompleteInitiativeResponse, MsgStake, MsgStakeResponse, MsgUnstake, MsgUnstakeResponse, MsgClaimStakingRewards, MsgClaimStakingRewardsResponse, MsgCompoundStakingRewards, MsgCompoundStakingRewardsResponse, MsgCreateChallenge, MsgCreateChallengeResponse, MsgRespondToChallenge, MsgRespondToChallengeResponse, MsgSubmitJurorVote, MsgSubmitJurorVoteResponse, MsgAcceptJuryDuty, MsgAcceptJuryDutyResponse, MsgSubmitInitiativeReview, MsgSubmitInitiativeReviewResponse, MsgSetVerificationPolicy, MsgSetVerificationPolicyResponse, MsgResolveReviewEscalation, MsgResolveReviewEscalationResponse, MsgDeclineJuryDuty, MsgDeclineJuryDutyResponse, MsgFundReviewBounty, MsgFundReviewBountyResponse, MsgReclaimReviewBounty, MsgReclaimReviewBountyResponse, MsgSubmitExpertTestimony, MsgSubmitExpertTestimonyResponse, MsgChallengeContent, MsgChallengeContentResponse, MsgRespondToContentChallenge, MsgRespondToContentChallengeResponse, MsgRegisterZkPublicKey, MsgRegisterZkPublicKeyResponse, MsgCreateTag, MsgCreateTagResponse, MsgReportTag, MsgReportTagResponse, MsgResolveTagReport, MsgResolveTagReportResponse, MsgCreateTagBudget, MsgCreateTagBudgetResponse, MsgAwardFromTagBudget, MsgAwardFromTagBudgetResponse, MsgTopUpTagBudget, MsgTopUpTagBudgetResponse, MsgToggleTagBudget, MsgToggleTagBudgetResponse, MsgWithdrawTagBudget, MsgWithdrawTagBudgetResponse, MsgBondRole, MsgBondRoleResponse, MsgUnbondRole, MsgUnbondRoleResponse, MsgCancelUnbondRole, MsgCancelUnbondRoleResponse, MsgReportMember, MsgReportMemberResponse, MsgCosignMemberReport, MsgCosignMemberReportResponse, MsgResolveMemberReport, MsgResolveMemberReportResponse, MsgDefendMemberReport, MsgDefendMemberReportResponse, MsgAppealGovAction, MsgAppealGovActionResponse, MsgResolveGovActionAppeal, MsgResolveGovActionAppealResponse, MsgCloseInitiative, MsgCloseInitiativeResponse } from "./tx";
|
|
2
|
+
import { MsgUpdateParams, MsgUpdateParamsResponse, MsgUpdateOperationalParams, MsgUpdateOperationalParamsResponse, MsgInviteMember, MsgInviteMemberResponse, MsgAcceptInvitation, MsgAcceptInvitationResponse, MsgTransferDream, MsgTransferDreamResponse, MsgCreateInterim, MsgCreateInterimResponse, MsgAssignInterim, MsgAssignInterimResponse, MsgSubmitInterimWork, MsgSubmitInterimWorkResponse, MsgApproveInterim, MsgApproveInterimResponse, MsgAbandonInterim, MsgAbandonInterimResponse, MsgCompleteInterim, MsgCompleteInterimResponse, MsgProposeProject, MsgProposeProjectResponse, MsgApproveProjectBudget, MsgApproveProjectBudgetResponse, MsgCancelProject, MsgCancelProjectResponse, MsgCreateInitiative, MsgCreateInitiativeResponse, MsgAssignInitiative, MsgAssignInitiativeResponse, MsgSubmitInitiativeWork, MsgSubmitInitiativeWorkResponse, MsgApproveInitiative, MsgApproveInitiativeResponse, MsgUnassignInitiative, MsgUnassignInitiativeResponse, MsgCompleteInitiative, MsgCompleteInitiativeResponse, MsgStake, MsgStakeResponse, MsgUnstake, MsgUnstakeResponse, MsgClaimStakingRewards, MsgClaimStakingRewardsResponse, MsgCompoundStakingRewards, MsgCompoundStakingRewardsResponse, MsgCreateChallenge, MsgCreateChallengeResponse, MsgRespondToChallenge, MsgRespondToChallengeResponse, MsgSubmitJurorVote, MsgSubmitJurorVoteResponse, MsgAcceptJuryDuty, MsgAcceptJuryDutyResponse, MsgSubmitInitiativeReview, MsgSubmitInitiativeReviewResponse, MsgSetVerificationPolicy, MsgSetVerificationPolicyResponse, MsgResolveReviewEscalation, MsgResolveReviewEscalationResponse, MsgDeclineJuryDuty, MsgDeclineJuryDutyResponse, MsgFundReviewBounty, MsgFundReviewBountyResponse, MsgReclaimReviewBounty, MsgReclaimReviewBountyResponse, MsgSubmitExpertTestimony, MsgSubmitExpertTestimonyResponse, MsgChallengeContent, MsgChallengeContentResponse, MsgRespondToContentChallenge, MsgRespondToContentChallengeResponse, MsgRegisterZkPublicKey, MsgRegisterZkPublicKeyResponse, MsgCreateTag, MsgCreateTagResponse, MsgReportTag, MsgReportTagResponse, MsgResolveTagReport, MsgResolveTagReportResponse, MsgCreateTagBudget, MsgCreateTagBudgetResponse, MsgAwardFromTagBudget, MsgAwardFromTagBudgetResponse, MsgTopUpTagBudget, MsgTopUpTagBudgetResponse, MsgToggleTagBudget, MsgToggleTagBudgetResponse, MsgWithdrawTagBudget, MsgWithdrawTagBudgetResponse, MsgBondRole, MsgBondRoleResponse, MsgUnbondRole, MsgUnbondRoleResponse, MsgCancelUnbondRole, MsgCancelUnbondRoleResponse, MsgReportMember, MsgReportMemberResponse, MsgCosignMemberReport, MsgCosignMemberReportResponse, MsgResolveMemberReport, MsgResolveMemberReportResponse, MsgDefendMemberReport, MsgDefendMemberReportResponse, MsgAppealGovAction, MsgAppealGovActionResponse, MsgResolveGovActionAppeal, MsgResolveGovActionAppealResponse, MsgCloseInitiative, MsgCloseInitiativeResponse, MsgFundInitiativeBounty, MsgFundInitiativeBountyResponse, MsgReclaimInitiativeBounty, MsgReclaimInitiativeBountyResponse } from "./tx";
|
|
3
3
|
export class MsgClientImpl {
|
|
4
4
|
rpc;
|
|
5
5
|
constructor(rpc) {
|
|
@@ -351,6 +351,18 @@ export class MsgClientImpl {
|
|
|
351
351
|
const promise = this.rpc.request("sparkdream.rep.v1.Msg", "CloseInitiative", data);
|
|
352
352
|
return promise.then(data => MsgCloseInitiativeResponse.decode(new BinaryReader(data)));
|
|
353
353
|
};
|
|
354
|
+
/* FundInitiativeBounty defines the FundInitiativeBounty RPC. */
|
|
355
|
+
fundInitiativeBounty = async (request) => {
|
|
356
|
+
const data = MsgFundInitiativeBounty.encode(request).finish();
|
|
357
|
+
const promise = this.rpc.request("sparkdream.rep.v1.Msg", "FundInitiativeBounty", data);
|
|
358
|
+
return promise.then(data => MsgFundInitiativeBountyResponse.decode(new BinaryReader(data)));
|
|
359
|
+
};
|
|
360
|
+
/* ReclaimInitiativeBounty defines the ReclaimInitiativeBounty RPC. */
|
|
361
|
+
reclaimInitiativeBounty = async (request) => {
|
|
362
|
+
const data = MsgReclaimInitiativeBounty.encode(request).finish();
|
|
363
|
+
const promise = this.rpc.request("sparkdream.rep.v1.Msg", "ReclaimInitiativeBounty", data);
|
|
364
|
+
return promise.then(data => MsgReclaimInitiativeBountyResponse.decode(new BinaryReader(data)));
|
|
365
|
+
};
|
|
354
366
|
}
|
|
355
367
|
export const createClientImpl = (rpc) => {
|
|
356
368
|
return new MsgClientImpl(rpc);
|
|
@@ -65,6 +65,9 @@ export const createRPCQueryClient = async ({ rpcEndpoint }) => {
|
|
|
65
65
|
}
|
|
66
66
|
},
|
|
67
67
|
sparkdream: {
|
|
68
|
+
artifact: {
|
|
69
|
+
v1: (await import("./artifact/v1/query.rpc.Query")).createRpcQueryExtension(client)
|
|
70
|
+
},
|
|
68
71
|
blog: {
|
|
69
72
|
v1: (await import("./blog/v1/query.rpc.Query")).createRpcQueryExtension(client)
|
|
70
73
|
},
|
package/esm/sparkdream/rpc.tx.js
CHANGED
|
@@ -51,6 +51,9 @@ export const createRPCMsgClient = async ({ rpc }) => ({
|
|
|
51
51
|
}
|
|
52
52
|
},
|
|
53
53
|
sparkdream: {
|
|
54
|
+
artifact: {
|
|
55
|
+
v1: new (await import("./artifact/v1/tx.rpc.msg")).MsgClientImpl(rpc)
|
|
56
|
+
},
|
|
54
57
|
blog: {
|
|
55
58
|
v1: new (await import("./blog/v1/tx.rpc.msg")).MsgClientImpl(rpc)
|
|
56
59
|
},
|