@sparkdreamnft/sparkdreamjs 0.0.37 → 0.0.39
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/rep/v1/challenge.js +13 -2
- package/esm/sparkdream/rep/v1/genesis.js +362 -2
- package/esm/sparkdream/rep/v1/initiative.js +11 -14
- package/esm/sparkdream/rep/v1/interim.js +58 -1
- package/esm/sparkdream/rep/v1/member.js +25 -1
- package/esm/sparkdream/rep/v1/params.js +361 -1
- package/esm/sparkdream/rep/v1/query.js +16 -16
- package/esm/sparkdream/rep/v1/tx.amino.js +66 -5
- package/esm/sparkdream/rep/v1/tx.js +88 -64
- package/esm/sparkdream/rep/v1/tx.registry.js +18 -18
- package/esm/sparkdream/rep/v1/tx.rpc.msg.js +11 -11
- package/package.json +1 -1
- package/sparkdream/bundle.d.ts +128 -55
- package/sparkdream/client.d.ts +48 -3
- package/sparkdream/rep/v1/challenge.d.ts +23 -0
- package/sparkdream/rep/v1/challenge.js +13 -2
- package/sparkdream/rep/v1/genesis.d.ts +170 -1
- package/sparkdream/rep/v1/genesis.js +362 -2
- package/sparkdream/rep/v1/initiative.d.ts +7 -5
- package/sparkdream/rep/v1/initiative.js +11 -14
- package/sparkdream/rep/v1/interim.d.ts +32 -0
- package/sparkdream/rep/v1/interim.js +61 -2
- package/sparkdream/rep/v1/member.d.ts +54 -0
- package/sparkdream/rep/v1/member.js +25 -1
- package/sparkdream/rep/v1/params.d.ts +388 -2
- package/sparkdream/rep/v1/params.js +361 -1
- package/sparkdream/rep/v1/query.d.ts +26 -4
- package/sparkdream/rep/v1/query.js +16 -16
- package/sparkdream/rep/v1/tx.amino.d.ts +49 -4
- package/sparkdream/rep/v1/tx.amino.js +65 -4
- package/sparkdream/rep/v1/tx.d.ts +158 -110
- package/sparkdream/rep/v1/tx.js +90 -66
- package/sparkdream/rep/v1/tx.registry.d.ts +11 -11
- package/sparkdream/rep/v1/tx.registry.js +17 -17
- package/sparkdream/rep/v1/tx.rpc.msg.d.ts +7 -7
- package/sparkdream/rep/v1/tx.rpc.msg.js +10 -10
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
//@ts-nocheck
|
|
2
1
|
import { BinaryReader, BinaryWriter } from "../../../binary";
|
|
3
2
|
export var ChallengeStatus;
|
|
4
3
|
(function (ChallengeStatus) {
|
|
@@ -69,7 +68,8 @@ function createBaseChallenge() {
|
|
|
69
68
|
createdAt: BigInt(0),
|
|
70
69
|
resolvedAt: BigInt(0),
|
|
71
70
|
responseDeadline: BigInt(0),
|
|
72
|
-
criteriaId: ""
|
|
71
|
+
criteriaId: "",
|
|
72
|
+
statusBeforeChallenge: 0
|
|
73
73
|
};
|
|
74
74
|
}
|
|
75
75
|
/**
|
|
@@ -114,6 +114,9 @@ export const Challenge = {
|
|
|
114
114
|
if (message.criteriaId !== "") {
|
|
115
115
|
writer.uint32(90).string(message.criteriaId);
|
|
116
116
|
}
|
|
117
|
+
if (message.statusBeforeChallenge !== 0) {
|
|
118
|
+
writer.uint32(96).int32(message.statusBeforeChallenge);
|
|
119
|
+
}
|
|
117
120
|
return writer;
|
|
118
121
|
},
|
|
119
122
|
decode(input, length) {
|
|
@@ -156,6 +159,9 @@ export const Challenge = {
|
|
|
156
159
|
case 11:
|
|
157
160
|
message.criteriaId = reader.string();
|
|
158
161
|
break;
|
|
162
|
+
case 12:
|
|
163
|
+
message.statusBeforeChallenge = reader.int32();
|
|
164
|
+
break;
|
|
159
165
|
default:
|
|
160
166
|
reader.skipType(tag & 7);
|
|
161
167
|
break;
|
|
@@ -176,6 +182,7 @@ export const Challenge = {
|
|
|
176
182
|
message.resolvedAt = object.resolvedAt !== undefined && object.resolvedAt !== null ? BigInt(object.resolvedAt.toString()) : BigInt(0);
|
|
177
183
|
message.responseDeadline = object.responseDeadline !== undefined && object.responseDeadline !== null ? BigInt(object.responseDeadline.toString()) : BigInt(0);
|
|
178
184
|
message.criteriaId = object.criteriaId ?? "";
|
|
185
|
+
message.statusBeforeChallenge = object.statusBeforeChallenge ?? 0;
|
|
179
186
|
return message;
|
|
180
187
|
},
|
|
181
188
|
fromAmino(object) {
|
|
@@ -211,6 +218,9 @@ export const Challenge = {
|
|
|
211
218
|
if (object.criteria_id !== undefined && object.criteria_id !== null) {
|
|
212
219
|
message.criteriaId = object.criteria_id;
|
|
213
220
|
}
|
|
221
|
+
if (object.status_before_challenge !== undefined && object.status_before_challenge !== null) {
|
|
222
|
+
message.statusBeforeChallenge = object.status_before_challenge;
|
|
223
|
+
}
|
|
214
224
|
return message;
|
|
215
225
|
},
|
|
216
226
|
toAmino(message) {
|
|
@@ -231,6 +241,7 @@ export const Challenge = {
|
|
|
231
241
|
obj.resolved_at = message.resolvedAt !== BigInt(0) ? message.resolvedAt?.toString() : undefined;
|
|
232
242
|
obj.response_deadline = message.responseDeadline !== BigInt(0) ? message.responseDeadline?.toString() : undefined;
|
|
233
243
|
obj.criteria_id = message.criteriaId === "" ? undefined : message.criteriaId;
|
|
244
|
+
obj.status_before_challenge = message.statusBeforeChallenge === 0 ? undefined : message.statusBeforeChallenge;
|
|
234
245
|
return obj;
|
|
235
246
|
},
|
|
236
247
|
fromAminoMsg(object) {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
//@ts-nocheck
|
|
2
2
|
import { Params } from "./params";
|
|
3
|
-
import { Member } from "./member";
|
|
3
|
+
import { Member, GiftRecord } from "./member";
|
|
4
4
|
import { Invitation } from "./invitation";
|
|
5
5
|
import { Project } from "./project";
|
|
6
6
|
import { Initiative } from "./initiative";
|
|
@@ -66,7 +66,9 @@ function createBaseGenesisState() {
|
|
|
66
66
|
initiativeReviewList: [],
|
|
67
67
|
escalatedReviewList: [],
|
|
68
68
|
roleRewardDayFundingList: [],
|
|
69
|
-
reviewBountyList: []
|
|
69
|
+
reviewBountyList: [],
|
|
70
|
+
economicState: undefined,
|
|
71
|
+
giftRecordList: []
|
|
70
72
|
};
|
|
71
73
|
}
|
|
72
74
|
/**
|
|
@@ -206,6 +208,12 @@ export const GenesisState = {
|
|
|
206
208
|
for (const v of message.reviewBountyList) {
|
|
207
209
|
ReviewBounty.encode(v, writer.uint32(338).fork()).ldelim();
|
|
208
210
|
}
|
|
211
|
+
if (message.economicState !== undefined) {
|
|
212
|
+
EconomicState.encode(message.economicState, writer.uint32(346).fork()).ldelim();
|
|
213
|
+
}
|
|
214
|
+
for (const v of message.giftRecordList) {
|
|
215
|
+
GiftRecordEntry.encode(v, writer.uint32(354).fork()).ldelim();
|
|
216
|
+
}
|
|
209
217
|
return writer;
|
|
210
218
|
},
|
|
211
219
|
decode(input, length) {
|
|
@@ -349,6 +357,12 @@ export const GenesisState = {
|
|
|
349
357
|
case 42:
|
|
350
358
|
message.reviewBountyList.push(ReviewBounty.decode(reader, reader.uint32()));
|
|
351
359
|
break;
|
|
360
|
+
case 43:
|
|
361
|
+
message.economicState = EconomicState.decode(reader, reader.uint32());
|
|
362
|
+
break;
|
|
363
|
+
case 44:
|
|
364
|
+
message.giftRecordList.push(GiftRecordEntry.decode(reader, reader.uint32()));
|
|
365
|
+
break;
|
|
352
366
|
default:
|
|
353
367
|
reader.skipType(tag & 7);
|
|
354
368
|
break;
|
|
@@ -400,6 +414,8 @@ export const GenesisState = {
|
|
|
400
414
|
message.escalatedReviewList = object.escalatedReviewList?.map(e => BigInt(e.toString())) || [];
|
|
401
415
|
message.roleRewardDayFundingList = object.roleRewardDayFundingList?.map(e => RoleRewardDayFunding.fromPartial(e)) || [];
|
|
402
416
|
message.reviewBountyList = object.reviewBountyList?.map(e => ReviewBounty.fromPartial(e)) || [];
|
|
417
|
+
message.economicState = object.economicState !== undefined && object.economicState !== null ? EconomicState.fromPartial(object.economicState) : undefined;
|
|
418
|
+
message.giftRecordList = object.giftRecordList?.map(e => GiftRecordEntry.fromPartial(e)) || [];
|
|
403
419
|
return message;
|
|
404
420
|
},
|
|
405
421
|
fromAmino(object) {
|
|
@@ -472,6 +488,10 @@ export const GenesisState = {
|
|
|
472
488
|
message.escalatedReviewList = object.escalated_review_list?.map(e => BigInt(e)) || [];
|
|
473
489
|
message.roleRewardDayFundingList = object.role_reward_day_funding_list?.map(e => RoleRewardDayFunding.fromAmino(e)) || [];
|
|
474
490
|
message.reviewBountyList = object.review_bounty_list?.map(e => ReviewBounty.fromAmino(e)) || [];
|
|
491
|
+
if (object.economic_state !== undefined && object.economic_state !== null) {
|
|
492
|
+
message.economicState = EconomicState.fromAmino(object.economic_state);
|
|
493
|
+
}
|
|
494
|
+
message.giftRecordList = object.gift_record_list?.map(e => GiftRecordEntry.fromAmino(e)) || [];
|
|
475
495
|
return message;
|
|
476
496
|
},
|
|
477
497
|
toAmino(message) {
|
|
@@ -663,6 +683,13 @@ export const GenesisState = {
|
|
|
663
683
|
else {
|
|
664
684
|
obj.review_bounty_list = message.reviewBountyList;
|
|
665
685
|
}
|
|
686
|
+
obj.economic_state = message.economicState ? EconomicState.toAmino(message.economicState) : undefined;
|
|
687
|
+
if (message.giftRecordList) {
|
|
688
|
+
obj.gift_record_list = message.giftRecordList.map(e => e ? GiftRecordEntry.toAmino(e) : undefined);
|
|
689
|
+
}
|
|
690
|
+
else {
|
|
691
|
+
obj.gift_record_list = message.giftRecordList;
|
|
692
|
+
}
|
|
666
693
|
return obj;
|
|
667
694
|
},
|
|
668
695
|
fromAminoMsg(object) {
|
|
@@ -681,6 +708,339 @@ export const GenesisState = {
|
|
|
681
708
|
};
|
|
682
709
|
}
|
|
683
710
|
};
|
|
711
|
+
function createBaseEconomicState() {
|
|
712
|
+
return {
|
|
713
|
+
treasuryBalance: "",
|
|
714
|
+
seasonMinted: "",
|
|
715
|
+
seasonBurned: "",
|
|
716
|
+
seasonInitiativeRewardsMinted: "",
|
|
717
|
+
seasonStakingRewardsMinted: "",
|
|
718
|
+
seasonInterimRewardsMinted: "",
|
|
719
|
+
seasonTreasuryInflow: "",
|
|
720
|
+
seasonTreasuryOutflow: "",
|
|
721
|
+
seasonalPoolRemaining: "",
|
|
722
|
+
seasonalPoolAccPerShare: "",
|
|
723
|
+
seasonalPoolSeason: BigInt(0),
|
|
724
|
+
seasonalPoolStartEpoch: BigInt(0),
|
|
725
|
+
epochMintedEpoch: BigInt(0),
|
|
726
|
+
epochMintedAmount: "",
|
|
727
|
+
decayLastProcessedEpoch: BigInt(0)
|
|
728
|
+
};
|
|
729
|
+
}
|
|
730
|
+
/**
|
|
731
|
+
* EconomicState carries x/rep's token ledger across a genesis round trip.
|
|
732
|
+
* Int and Dec values travel as strings so an absent field reads as zero rather
|
|
733
|
+
* than as a malformed number.
|
|
734
|
+
* @name EconomicState
|
|
735
|
+
* @package sparkdream.rep.v1
|
|
736
|
+
* @see proto type: sparkdream.rep.v1.EconomicState
|
|
737
|
+
*/
|
|
738
|
+
export const EconomicState = {
|
|
739
|
+
typeUrl: "/sparkdream.rep.v1.EconomicState",
|
|
740
|
+
encode(message, writer = BinaryWriter.create()) {
|
|
741
|
+
if (message.treasuryBalance !== "") {
|
|
742
|
+
writer.uint32(10).string(message.treasuryBalance);
|
|
743
|
+
}
|
|
744
|
+
if (message.seasonMinted !== "") {
|
|
745
|
+
writer.uint32(18).string(message.seasonMinted);
|
|
746
|
+
}
|
|
747
|
+
if (message.seasonBurned !== "") {
|
|
748
|
+
writer.uint32(26).string(message.seasonBurned);
|
|
749
|
+
}
|
|
750
|
+
if (message.seasonInitiativeRewardsMinted !== "") {
|
|
751
|
+
writer.uint32(34).string(message.seasonInitiativeRewardsMinted);
|
|
752
|
+
}
|
|
753
|
+
if (message.seasonStakingRewardsMinted !== "") {
|
|
754
|
+
writer.uint32(42).string(message.seasonStakingRewardsMinted);
|
|
755
|
+
}
|
|
756
|
+
if (message.seasonInterimRewardsMinted !== "") {
|
|
757
|
+
writer.uint32(50).string(message.seasonInterimRewardsMinted);
|
|
758
|
+
}
|
|
759
|
+
if (message.seasonTreasuryInflow !== "") {
|
|
760
|
+
writer.uint32(58).string(message.seasonTreasuryInflow);
|
|
761
|
+
}
|
|
762
|
+
if (message.seasonTreasuryOutflow !== "") {
|
|
763
|
+
writer.uint32(66).string(message.seasonTreasuryOutflow);
|
|
764
|
+
}
|
|
765
|
+
if (message.seasonalPoolRemaining !== "") {
|
|
766
|
+
writer.uint32(74).string(message.seasonalPoolRemaining);
|
|
767
|
+
}
|
|
768
|
+
if (message.seasonalPoolAccPerShare !== "") {
|
|
769
|
+
writer.uint32(82).string(message.seasonalPoolAccPerShare);
|
|
770
|
+
}
|
|
771
|
+
if (message.seasonalPoolSeason !== BigInt(0)) {
|
|
772
|
+
writer.uint32(88).uint64(message.seasonalPoolSeason);
|
|
773
|
+
}
|
|
774
|
+
if (message.seasonalPoolStartEpoch !== BigInt(0)) {
|
|
775
|
+
writer.uint32(96).uint64(message.seasonalPoolStartEpoch);
|
|
776
|
+
}
|
|
777
|
+
if (message.epochMintedEpoch !== BigInt(0)) {
|
|
778
|
+
writer.uint32(104).uint64(message.epochMintedEpoch);
|
|
779
|
+
}
|
|
780
|
+
if (message.epochMintedAmount !== "") {
|
|
781
|
+
writer.uint32(114).string(message.epochMintedAmount);
|
|
782
|
+
}
|
|
783
|
+
if (message.decayLastProcessedEpoch !== BigInt(0)) {
|
|
784
|
+
writer.uint32(120).uint64(message.decayLastProcessedEpoch);
|
|
785
|
+
}
|
|
786
|
+
return writer;
|
|
787
|
+
},
|
|
788
|
+
decode(input, length) {
|
|
789
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
790
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
791
|
+
const message = createBaseEconomicState();
|
|
792
|
+
while (reader.pos < end) {
|
|
793
|
+
const tag = reader.uint32();
|
|
794
|
+
switch (tag >>> 3) {
|
|
795
|
+
case 1:
|
|
796
|
+
message.treasuryBalance = reader.string();
|
|
797
|
+
break;
|
|
798
|
+
case 2:
|
|
799
|
+
message.seasonMinted = reader.string();
|
|
800
|
+
break;
|
|
801
|
+
case 3:
|
|
802
|
+
message.seasonBurned = reader.string();
|
|
803
|
+
break;
|
|
804
|
+
case 4:
|
|
805
|
+
message.seasonInitiativeRewardsMinted = reader.string();
|
|
806
|
+
break;
|
|
807
|
+
case 5:
|
|
808
|
+
message.seasonStakingRewardsMinted = reader.string();
|
|
809
|
+
break;
|
|
810
|
+
case 6:
|
|
811
|
+
message.seasonInterimRewardsMinted = reader.string();
|
|
812
|
+
break;
|
|
813
|
+
case 7:
|
|
814
|
+
message.seasonTreasuryInflow = reader.string();
|
|
815
|
+
break;
|
|
816
|
+
case 8:
|
|
817
|
+
message.seasonTreasuryOutflow = reader.string();
|
|
818
|
+
break;
|
|
819
|
+
case 9:
|
|
820
|
+
message.seasonalPoolRemaining = reader.string();
|
|
821
|
+
break;
|
|
822
|
+
case 10:
|
|
823
|
+
message.seasonalPoolAccPerShare = reader.string();
|
|
824
|
+
break;
|
|
825
|
+
case 11:
|
|
826
|
+
message.seasonalPoolSeason = reader.uint64();
|
|
827
|
+
break;
|
|
828
|
+
case 12:
|
|
829
|
+
message.seasonalPoolStartEpoch = reader.uint64();
|
|
830
|
+
break;
|
|
831
|
+
case 13:
|
|
832
|
+
message.epochMintedEpoch = reader.uint64();
|
|
833
|
+
break;
|
|
834
|
+
case 14:
|
|
835
|
+
message.epochMintedAmount = reader.string();
|
|
836
|
+
break;
|
|
837
|
+
case 15:
|
|
838
|
+
message.decayLastProcessedEpoch = reader.uint64();
|
|
839
|
+
break;
|
|
840
|
+
default:
|
|
841
|
+
reader.skipType(tag & 7);
|
|
842
|
+
break;
|
|
843
|
+
}
|
|
844
|
+
}
|
|
845
|
+
return message;
|
|
846
|
+
},
|
|
847
|
+
fromPartial(object) {
|
|
848
|
+
const message = createBaseEconomicState();
|
|
849
|
+
message.treasuryBalance = object.treasuryBalance ?? "";
|
|
850
|
+
message.seasonMinted = object.seasonMinted ?? "";
|
|
851
|
+
message.seasonBurned = object.seasonBurned ?? "";
|
|
852
|
+
message.seasonInitiativeRewardsMinted = object.seasonInitiativeRewardsMinted ?? "";
|
|
853
|
+
message.seasonStakingRewardsMinted = object.seasonStakingRewardsMinted ?? "";
|
|
854
|
+
message.seasonInterimRewardsMinted = object.seasonInterimRewardsMinted ?? "";
|
|
855
|
+
message.seasonTreasuryInflow = object.seasonTreasuryInflow ?? "";
|
|
856
|
+
message.seasonTreasuryOutflow = object.seasonTreasuryOutflow ?? "";
|
|
857
|
+
message.seasonalPoolRemaining = object.seasonalPoolRemaining ?? "";
|
|
858
|
+
message.seasonalPoolAccPerShare = object.seasonalPoolAccPerShare ?? "";
|
|
859
|
+
message.seasonalPoolSeason = object.seasonalPoolSeason !== undefined && object.seasonalPoolSeason !== null ? BigInt(object.seasonalPoolSeason.toString()) : BigInt(0);
|
|
860
|
+
message.seasonalPoolStartEpoch = object.seasonalPoolStartEpoch !== undefined && object.seasonalPoolStartEpoch !== null ? BigInt(object.seasonalPoolStartEpoch.toString()) : BigInt(0);
|
|
861
|
+
message.epochMintedEpoch = object.epochMintedEpoch !== undefined && object.epochMintedEpoch !== null ? BigInt(object.epochMintedEpoch.toString()) : BigInt(0);
|
|
862
|
+
message.epochMintedAmount = object.epochMintedAmount ?? "";
|
|
863
|
+
message.decayLastProcessedEpoch = object.decayLastProcessedEpoch !== undefined && object.decayLastProcessedEpoch !== null ? BigInt(object.decayLastProcessedEpoch.toString()) : BigInt(0);
|
|
864
|
+
return message;
|
|
865
|
+
},
|
|
866
|
+
fromAmino(object) {
|
|
867
|
+
const message = createBaseEconomicState();
|
|
868
|
+
if (object.treasury_balance !== undefined && object.treasury_balance !== null) {
|
|
869
|
+
message.treasuryBalance = object.treasury_balance;
|
|
870
|
+
}
|
|
871
|
+
if (object.season_minted !== undefined && object.season_minted !== null) {
|
|
872
|
+
message.seasonMinted = object.season_minted;
|
|
873
|
+
}
|
|
874
|
+
if (object.season_burned !== undefined && object.season_burned !== null) {
|
|
875
|
+
message.seasonBurned = object.season_burned;
|
|
876
|
+
}
|
|
877
|
+
if (object.season_initiative_rewards_minted !== undefined && object.season_initiative_rewards_minted !== null) {
|
|
878
|
+
message.seasonInitiativeRewardsMinted = object.season_initiative_rewards_minted;
|
|
879
|
+
}
|
|
880
|
+
if (object.season_staking_rewards_minted !== undefined && object.season_staking_rewards_minted !== null) {
|
|
881
|
+
message.seasonStakingRewardsMinted = object.season_staking_rewards_minted;
|
|
882
|
+
}
|
|
883
|
+
if (object.season_interim_rewards_minted !== undefined && object.season_interim_rewards_minted !== null) {
|
|
884
|
+
message.seasonInterimRewardsMinted = object.season_interim_rewards_minted;
|
|
885
|
+
}
|
|
886
|
+
if (object.season_treasury_inflow !== undefined && object.season_treasury_inflow !== null) {
|
|
887
|
+
message.seasonTreasuryInflow = object.season_treasury_inflow;
|
|
888
|
+
}
|
|
889
|
+
if (object.season_treasury_outflow !== undefined && object.season_treasury_outflow !== null) {
|
|
890
|
+
message.seasonTreasuryOutflow = object.season_treasury_outflow;
|
|
891
|
+
}
|
|
892
|
+
if (object.seasonal_pool_remaining !== undefined && object.seasonal_pool_remaining !== null) {
|
|
893
|
+
message.seasonalPoolRemaining = object.seasonal_pool_remaining;
|
|
894
|
+
}
|
|
895
|
+
if (object.seasonal_pool_acc_per_share !== undefined && object.seasonal_pool_acc_per_share !== null) {
|
|
896
|
+
message.seasonalPoolAccPerShare = object.seasonal_pool_acc_per_share;
|
|
897
|
+
}
|
|
898
|
+
if (object.seasonal_pool_season !== undefined && object.seasonal_pool_season !== null) {
|
|
899
|
+
message.seasonalPoolSeason = BigInt(object.seasonal_pool_season);
|
|
900
|
+
}
|
|
901
|
+
if (object.seasonal_pool_start_epoch !== undefined && object.seasonal_pool_start_epoch !== null) {
|
|
902
|
+
message.seasonalPoolStartEpoch = BigInt(object.seasonal_pool_start_epoch);
|
|
903
|
+
}
|
|
904
|
+
if (object.epoch_minted_epoch !== undefined && object.epoch_minted_epoch !== null) {
|
|
905
|
+
message.epochMintedEpoch = BigInt(object.epoch_minted_epoch);
|
|
906
|
+
}
|
|
907
|
+
if (object.epoch_minted_amount !== undefined && object.epoch_minted_amount !== null) {
|
|
908
|
+
message.epochMintedAmount = object.epoch_minted_amount;
|
|
909
|
+
}
|
|
910
|
+
if (object.decay_last_processed_epoch !== undefined && object.decay_last_processed_epoch !== null) {
|
|
911
|
+
message.decayLastProcessedEpoch = BigInt(object.decay_last_processed_epoch);
|
|
912
|
+
}
|
|
913
|
+
return message;
|
|
914
|
+
},
|
|
915
|
+
toAmino(message) {
|
|
916
|
+
const obj = {};
|
|
917
|
+
obj.treasury_balance = message.treasuryBalance === "" ? undefined : message.treasuryBalance;
|
|
918
|
+
obj.season_minted = message.seasonMinted === "" ? undefined : message.seasonMinted;
|
|
919
|
+
obj.season_burned = message.seasonBurned === "" ? undefined : message.seasonBurned;
|
|
920
|
+
obj.season_initiative_rewards_minted = message.seasonInitiativeRewardsMinted === "" ? undefined : message.seasonInitiativeRewardsMinted;
|
|
921
|
+
obj.season_staking_rewards_minted = message.seasonStakingRewardsMinted === "" ? undefined : message.seasonStakingRewardsMinted;
|
|
922
|
+
obj.season_interim_rewards_minted = message.seasonInterimRewardsMinted === "" ? undefined : message.seasonInterimRewardsMinted;
|
|
923
|
+
obj.season_treasury_inflow = message.seasonTreasuryInflow === "" ? undefined : message.seasonTreasuryInflow;
|
|
924
|
+
obj.season_treasury_outflow = message.seasonTreasuryOutflow === "" ? undefined : message.seasonTreasuryOutflow;
|
|
925
|
+
obj.seasonal_pool_remaining = message.seasonalPoolRemaining === "" ? undefined : message.seasonalPoolRemaining;
|
|
926
|
+
obj.seasonal_pool_acc_per_share = message.seasonalPoolAccPerShare === "" ? undefined : message.seasonalPoolAccPerShare;
|
|
927
|
+
obj.seasonal_pool_season = message.seasonalPoolSeason !== BigInt(0) ? message.seasonalPoolSeason?.toString() : undefined;
|
|
928
|
+
obj.seasonal_pool_start_epoch = message.seasonalPoolStartEpoch !== BigInt(0) ? message.seasonalPoolStartEpoch?.toString() : undefined;
|
|
929
|
+
obj.epoch_minted_epoch = message.epochMintedEpoch !== BigInt(0) ? message.epochMintedEpoch?.toString() : undefined;
|
|
930
|
+
obj.epoch_minted_amount = message.epochMintedAmount === "" ? undefined : message.epochMintedAmount;
|
|
931
|
+
obj.decay_last_processed_epoch = message.decayLastProcessedEpoch !== BigInt(0) ? message.decayLastProcessedEpoch?.toString() : undefined;
|
|
932
|
+
return obj;
|
|
933
|
+
},
|
|
934
|
+
fromAminoMsg(object) {
|
|
935
|
+
return EconomicState.fromAmino(object.value);
|
|
936
|
+
},
|
|
937
|
+
fromProtoMsg(message) {
|
|
938
|
+
return EconomicState.decode(message.value);
|
|
939
|
+
},
|
|
940
|
+
toProto(message) {
|
|
941
|
+
return EconomicState.encode(message).finish();
|
|
942
|
+
},
|
|
943
|
+
toProtoMsg(message) {
|
|
944
|
+
return {
|
|
945
|
+
typeUrl: "/sparkdream.rep.v1.EconomicState",
|
|
946
|
+
value: EconomicState.encode(message).finish()
|
|
947
|
+
};
|
|
948
|
+
}
|
|
949
|
+
};
|
|
950
|
+
function createBaseGiftRecordEntry() {
|
|
951
|
+
return {
|
|
952
|
+
sender: "",
|
|
953
|
+
recipient: "",
|
|
954
|
+
record: undefined
|
|
955
|
+
};
|
|
956
|
+
}
|
|
957
|
+
/**
|
|
958
|
+
* GiftRecordEntry is one (sender, recipient) gift cooldown record, flattened
|
|
959
|
+
* for genesis because the live collection is keyed by the pair.
|
|
960
|
+
* @name GiftRecordEntry
|
|
961
|
+
* @package sparkdream.rep.v1
|
|
962
|
+
* @see proto type: sparkdream.rep.v1.GiftRecordEntry
|
|
963
|
+
*/
|
|
964
|
+
export const GiftRecordEntry = {
|
|
965
|
+
typeUrl: "/sparkdream.rep.v1.GiftRecordEntry",
|
|
966
|
+
encode(message, writer = BinaryWriter.create()) {
|
|
967
|
+
if (message.sender !== "") {
|
|
968
|
+
writer.uint32(10).string(message.sender);
|
|
969
|
+
}
|
|
970
|
+
if (message.recipient !== "") {
|
|
971
|
+
writer.uint32(18).string(message.recipient);
|
|
972
|
+
}
|
|
973
|
+
if (message.record !== undefined) {
|
|
974
|
+
GiftRecord.encode(message.record, writer.uint32(26).fork()).ldelim();
|
|
975
|
+
}
|
|
976
|
+
return writer;
|
|
977
|
+
},
|
|
978
|
+
decode(input, length) {
|
|
979
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
980
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
981
|
+
const message = createBaseGiftRecordEntry();
|
|
982
|
+
while (reader.pos < end) {
|
|
983
|
+
const tag = reader.uint32();
|
|
984
|
+
switch (tag >>> 3) {
|
|
985
|
+
case 1:
|
|
986
|
+
message.sender = reader.string();
|
|
987
|
+
break;
|
|
988
|
+
case 2:
|
|
989
|
+
message.recipient = reader.string();
|
|
990
|
+
break;
|
|
991
|
+
case 3:
|
|
992
|
+
message.record = GiftRecord.decode(reader, reader.uint32());
|
|
993
|
+
break;
|
|
994
|
+
default:
|
|
995
|
+
reader.skipType(tag & 7);
|
|
996
|
+
break;
|
|
997
|
+
}
|
|
998
|
+
}
|
|
999
|
+
return message;
|
|
1000
|
+
},
|
|
1001
|
+
fromPartial(object) {
|
|
1002
|
+
const message = createBaseGiftRecordEntry();
|
|
1003
|
+
message.sender = object.sender ?? "";
|
|
1004
|
+
message.recipient = object.recipient ?? "";
|
|
1005
|
+
message.record = object.record !== undefined && object.record !== null ? GiftRecord.fromPartial(object.record) : undefined;
|
|
1006
|
+
return message;
|
|
1007
|
+
},
|
|
1008
|
+
fromAmino(object) {
|
|
1009
|
+
const message = createBaseGiftRecordEntry();
|
|
1010
|
+
if (object.sender !== undefined && object.sender !== null) {
|
|
1011
|
+
message.sender = object.sender;
|
|
1012
|
+
}
|
|
1013
|
+
if (object.recipient !== undefined && object.recipient !== null) {
|
|
1014
|
+
message.recipient = object.recipient;
|
|
1015
|
+
}
|
|
1016
|
+
if (object.record !== undefined && object.record !== null) {
|
|
1017
|
+
message.record = GiftRecord.fromAmino(object.record);
|
|
1018
|
+
}
|
|
1019
|
+
return message;
|
|
1020
|
+
},
|
|
1021
|
+
toAmino(message) {
|
|
1022
|
+
const obj = {};
|
|
1023
|
+
obj.sender = message.sender === "" ? undefined : message.sender;
|
|
1024
|
+
obj.recipient = message.recipient === "" ? undefined : message.recipient;
|
|
1025
|
+
obj.record = message.record ? GiftRecord.toAmino(message.record) : undefined;
|
|
1026
|
+
return obj;
|
|
1027
|
+
},
|
|
1028
|
+
fromAminoMsg(object) {
|
|
1029
|
+
return GiftRecordEntry.fromAmino(object.value);
|
|
1030
|
+
},
|
|
1031
|
+
fromProtoMsg(message) {
|
|
1032
|
+
return GiftRecordEntry.decode(message.value);
|
|
1033
|
+
},
|
|
1034
|
+
toProto(message) {
|
|
1035
|
+
return GiftRecordEntry.encode(message).finish();
|
|
1036
|
+
},
|
|
1037
|
+
toProtoMsg(message) {
|
|
1038
|
+
return {
|
|
1039
|
+
typeUrl: "/sparkdream.rep.v1.GiftRecordEntry",
|
|
1040
|
+
value: GiftRecordEntry.encode(message).finish()
|
|
1041
|
+
};
|
|
1042
|
+
}
|
|
1043
|
+
};
|
|
684
1044
|
function createBaseRoleRewardDayFunding() {
|
|
685
1045
|
return {
|
|
686
1046
|
day: BigInt(0),
|
|
@@ -135,13 +135,15 @@ export var InitiativeStatus;
|
|
|
135
135
|
InitiativeStatus[InitiativeStatus["INITIATIVE_STATUS_CHALLENGED"] = 4] = "INITIATIVE_STATUS_CHALLENGED";
|
|
136
136
|
InitiativeStatus[InitiativeStatus["INITIATIVE_STATUS_COMPLETED"] = 5] = "INITIATIVE_STATUS_COMPLETED";
|
|
137
137
|
InitiativeStatus[InitiativeStatus["INITIATIVE_STATUS_REJECTED"] = 6] = "INITIATIVE_STATUS_REJECTED";
|
|
138
|
-
InitiativeStatus[InitiativeStatus["INITIATIVE_STATUS_ABANDONED"] = 7] = "INITIATIVE_STATUS_ABANDONED";
|
|
139
138
|
/**
|
|
140
|
-
*
|
|
141
|
-
*
|
|
142
|
-
*
|
|
139
|
+
* INITIATIVE_STATUS_CLOSED - Retired by the project creator or the Operations Committee. The work is
|
|
140
|
+
* not being done and its budget has gone back to the project.
|
|
141
|
+
*
|
|
142
|
+
* Distinct from COMPLETED, which is narrower: COMPLETED means the work was
|
|
143
|
+
* delivered, passed its gates and paid out. CLOSED carries no claim about
|
|
144
|
+
* the work at all, only that the project stopped funding it.
|
|
143
145
|
*/
|
|
144
|
-
InitiativeStatus[InitiativeStatus["
|
|
146
|
+
InitiativeStatus[InitiativeStatus["INITIATIVE_STATUS_CLOSED"] = 7] = "INITIATIVE_STATUS_CLOSED";
|
|
145
147
|
InitiativeStatus[InitiativeStatus["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
|
|
146
148
|
})(InitiativeStatus || (InitiativeStatus = {}));
|
|
147
149
|
export const InitiativeStatusAmino = InitiativeStatus;
|
|
@@ -169,11 +171,8 @@ export function initiativeStatusFromJSON(object) {
|
|
|
169
171
|
case "INITIATIVE_STATUS_REJECTED":
|
|
170
172
|
return InitiativeStatus.INITIATIVE_STATUS_REJECTED;
|
|
171
173
|
case 7:
|
|
172
|
-
case "
|
|
173
|
-
return InitiativeStatus.
|
|
174
|
-
case 8:
|
|
175
|
-
case "INITIATIVE_STATUS_CANCELLED":
|
|
176
|
-
return InitiativeStatus.INITIATIVE_STATUS_CANCELLED;
|
|
174
|
+
case "INITIATIVE_STATUS_CLOSED":
|
|
175
|
+
return InitiativeStatus.INITIATIVE_STATUS_CLOSED;
|
|
177
176
|
case -1:
|
|
178
177
|
case "UNRECOGNIZED":
|
|
179
178
|
default:
|
|
@@ -196,10 +195,8 @@ export function initiativeStatusToJSON(object) {
|
|
|
196
195
|
return "INITIATIVE_STATUS_COMPLETED";
|
|
197
196
|
case InitiativeStatus.INITIATIVE_STATUS_REJECTED:
|
|
198
197
|
return "INITIATIVE_STATUS_REJECTED";
|
|
199
|
-
case InitiativeStatus.
|
|
200
|
-
return "
|
|
201
|
-
case InitiativeStatus.INITIATIVE_STATUS_CANCELLED:
|
|
202
|
-
return "INITIATIVE_STATUS_CANCELLED";
|
|
198
|
+
case InitiativeStatus.INITIATIVE_STATUS_CLOSED:
|
|
199
|
+
return "INITIATIVE_STATUS_CLOSED";
|
|
203
200
|
case InitiativeStatus.UNRECOGNIZED:
|
|
204
201
|
default:
|
|
205
202
|
return "UNRECOGNIZED";
|
|
@@ -1,5 +1,50 @@
|
|
|
1
1
|
//@ts-nocheck
|
|
2
2
|
import { BinaryReader, BinaryWriter } from "../../../binary";
|
|
3
|
+
/**
|
|
4
|
+
* AdjudicationDecision is the Operations Committee's verdict on the challenge
|
|
5
|
+
* an ADJUDICATION interim was raised to settle — the terminal path for an
|
|
6
|
+
* inconclusive jury, and for challenges escalated when no jury could be seated.
|
|
7
|
+
*/
|
|
8
|
+
export var AdjudicationDecision;
|
|
9
|
+
(function (AdjudicationDecision) {
|
|
10
|
+
AdjudicationDecision[AdjudicationDecision["ADJUDICATION_DECISION_UNSPECIFIED"] = 0] = "ADJUDICATION_DECISION_UNSPECIFIED";
|
|
11
|
+
/** ADJUDICATION_DECISION_UPHOLD - The challenge stands: the work failed. Resolves the challenge as UPHELD. */
|
|
12
|
+
AdjudicationDecision[AdjudicationDecision["ADJUDICATION_DECISION_UPHOLD"] = 1] = "ADJUDICATION_DECISION_UPHOLD";
|
|
13
|
+
/** ADJUDICATION_DECISION_REJECT - The challenge fails: the work stands. Resolves the challenge as REJECTED. */
|
|
14
|
+
AdjudicationDecision[AdjudicationDecision["ADJUDICATION_DECISION_REJECT"] = 2] = "ADJUDICATION_DECISION_REJECT";
|
|
15
|
+
AdjudicationDecision[AdjudicationDecision["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
|
|
16
|
+
})(AdjudicationDecision || (AdjudicationDecision = {}));
|
|
17
|
+
export const AdjudicationDecisionAmino = AdjudicationDecision;
|
|
18
|
+
export function adjudicationDecisionFromJSON(object) {
|
|
19
|
+
switch (object) {
|
|
20
|
+
case 0:
|
|
21
|
+
case "ADJUDICATION_DECISION_UNSPECIFIED":
|
|
22
|
+
return AdjudicationDecision.ADJUDICATION_DECISION_UNSPECIFIED;
|
|
23
|
+
case 1:
|
|
24
|
+
case "ADJUDICATION_DECISION_UPHOLD":
|
|
25
|
+
return AdjudicationDecision.ADJUDICATION_DECISION_UPHOLD;
|
|
26
|
+
case 2:
|
|
27
|
+
case "ADJUDICATION_DECISION_REJECT":
|
|
28
|
+
return AdjudicationDecision.ADJUDICATION_DECISION_REJECT;
|
|
29
|
+
case -1:
|
|
30
|
+
case "UNRECOGNIZED":
|
|
31
|
+
default:
|
|
32
|
+
return AdjudicationDecision.UNRECOGNIZED;
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
export function adjudicationDecisionToJSON(object) {
|
|
36
|
+
switch (object) {
|
|
37
|
+
case AdjudicationDecision.ADJUDICATION_DECISION_UNSPECIFIED:
|
|
38
|
+
return "ADJUDICATION_DECISION_UNSPECIFIED";
|
|
39
|
+
case AdjudicationDecision.ADJUDICATION_DECISION_UPHOLD:
|
|
40
|
+
return "ADJUDICATION_DECISION_UPHOLD";
|
|
41
|
+
case AdjudicationDecision.ADJUDICATION_DECISION_REJECT:
|
|
42
|
+
return "ADJUDICATION_DECISION_REJECT";
|
|
43
|
+
case AdjudicationDecision.UNRECOGNIZED:
|
|
44
|
+
default:
|
|
45
|
+
return "UNRECOGNIZED";
|
|
46
|
+
}
|
|
47
|
+
}
|
|
3
48
|
export var InterimType;
|
|
4
49
|
(function (InterimType) {
|
|
5
50
|
/** INTERIM_TYPE_JURY_DUTY - Jury and dispute resolution */
|
|
@@ -222,7 +267,8 @@ function createBaseInterim() {
|
|
|
222
267
|
createdAt: BigInt(0),
|
|
223
268
|
completedAt: BigInt(0),
|
|
224
269
|
status: 0,
|
|
225
|
-
completionNotes: ""
|
|
270
|
+
completionNotes: "",
|
|
271
|
+
decision: 0
|
|
226
272
|
};
|
|
227
273
|
}
|
|
228
274
|
/**
|
|
@@ -273,6 +319,9 @@ export const Interim = {
|
|
|
273
319
|
if (message.completionNotes !== "") {
|
|
274
320
|
writer.uint32(106).string(message.completionNotes);
|
|
275
321
|
}
|
|
322
|
+
if (message.decision !== 0) {
|
|
323
|
+
writer.uint32(112).int32(message.decision);
|
|
324
|
+
}
|
|
276
325
|
return writer;
|
|
277
326
|
},
|
|
278
327
|
decode(input, length) {
|
|
@@ -321,6 +370,9 @@ export const Interim = {
|
|
|
321
370
|
case 13:
|
|
322
371
|
message.completionNotes = reader.string();
|
|
323
372
|
break;
|
|
373
|
+
case 14:
|
|
374
|
+
message.decision = reader.int32();
|
|
375
|
+
break;
|
|
324
376
|
default:
|
|
325
377
|
reader.skipType(tag & 7);
|
|
326
378
|
break;
|
|
@@ -343,6 +395,7 @@ export const Interim = {
|
|
|
343
395
|
message.completedAt = object.completedAt !== undefined && object.completedAt !== null ? BigInt(object.completedAt.toString()) : BigInt(0);
|
|
344
396
|
message.status = object.status ?? 0;
|
|
345
397
|
message.completionNotes = object.completionNotes ?? "";
|
|
398
|
+
message.decision = object.decision ?? 0;
|
|
346
399
|
return message;
|
|
347
400
|
},
|
|
348
401
|
fromAmino(object) {
|
|
@@ -384,6 +437,9 @@ export const Interim = {
|
|
|
384
437
|
if (object.completion_notes !== undefined && object.completion_notes !== null) {
|
|
385
438
|
message.completionNotes = object.completion_notes;
|
|
386
439
|
}
|
|
440
|
+
if (object.decision !== undefined && object.decision !== null) {
|
|
441
|
+
message.decision = object.decision;
|
|
442
|
+
}
|
|
387
443
|
return message;
|
|
388
444
|
},
|
|
389
445
|
toAmino(message) {
|
|
@@ -406,6 +462,7 @@ export const Interim = {
|
|
|
406
462
|
obj.completed_at = message.completedAt !== BigInt(0) ? message.completedAt?.toString() : undefined;
|
|
407
463
|
obj.status = message.status === 0 ? undefined : message.status;
|
|
408
464
|
obj.completion_notes = message.completionNotes === "" ? undefined : message.completionNotes;
|
|
465
|
+
obj.decision = message.decision === 0 ? undefined : message.decision;
|
|
409
466
|
return obj;
|
|
410
467
|
},
|
|
411
468
|
fromAminoMsg(object) {
|